Stopped-extension-dll-exceptions in User Profile Sync

February 4 2013 125 comments

Symptons: You get stopped-extension-dll-exceptions in MIIS client while running full or incremental user profile sync.
MIIS Client

At the same time you will get following exceptions in Application log:
Application Log

Fix: This problem arises from user profiles that have URL in PictureURL field, but the picture is not accessible. You can fix this issue by running the following PS script. The script loops through every user profile and makes a HTTP request to the picture URL. If the URL cannot be accessed the script clears PictureURL field.

# Get user profile service
$UserProfileService = @(Get-SPServiceApplication | ? { $_.TypeName -eq "User Profile Service Application" })[0]

if($UserProfileService)
{
    $serviceContext = [Microsoft.SharePoint.SPServiceContext]::GetContext($UserProfileService.ServiceApplicationProxyGroup, [Microsoft.SharePoint.SPSiteSubscriptionIdentifier]::Default);
    $profileManager = New-Object Microsoft.Office.Server.UserProfiles.UserProfileManager($serviceContext)

    # Get all profiles
    $allProfiles = $profileManager.GetEnumerator();

    $counter = 0;
    $decCounter = 0;

    # Loop through every profile
    foreach($profile in $allProfiles)
    {
        $counter++;
        $decCounter++;

        $url = $Profile['PictureURL'] -as [string];

        if($url)
        {
            # Create HTTP Request
            $req = [system.Net.WebRequest]::Create($url)
            $req.UseDefaultCredentials = $true
            try {
                $res = $req.GetResponse()
            }
            catch [System.Net.WebException] {
                $res = $_.Exception.Response
            }

            $int = [int]$res.StatusCode
            $status = $res.StatusCode

            # If the image cannot be accessed clear the field
            if($int -gt 400)
            {
                Write-Host -NoNewLine $Profile['PreferredName'] "profile picture broken "
                $Profile['PictureURL'].Value = $null;
                $Profile.Commit();
                Write-Host -ForegroundColor Green "[FIXED]";
            }
        }

        if($deccounter -eq 10)
        {
            Write-Host $counter" user profile checked";
            $decCounter=0;
        }
    }
}

After running this script the User Profile Sync started to work immediately.

Popularity: 5% [?]

125 comments to “Stopped-extension-dll-exceptions in User Profile Sync”

  1. Howard S. Loose says:

    One of the fundamental focuses of Site improvement is to develop traffic to your website page. There are various ways to deal with doing this, for example, driving your site for unequivocal articulations, and making top notch fulfilled. By stretching out traffic to your site, you can guarantee that more potential clients will see your things and associations. This can incite more plans and more business progression. Check for more Wpgio It Solutions

  2. Domeng says:

    Just in time! This resources is what I am needing right now. Thank you for sharing. Coquitlam Window Cleaners

  3. Mary Z. Samaniego says:

    Adding certifications to your LinkedIn profile is a great way to show potential employers that you have the skills and knowledge they are looking for. In this step-by-step guide, we will walk you through how to add certifications on LinkedIn. Check for more Wpgio It Solutions

  4. Aeron says:

    Thanks, You’ve got one of a kind creative ability and have come up with a few of the foremost inventive thoughts. Insulation Pros of Coquitlam

  5. Ellen S. Holland says:

    Envision what’s going on where someone needs to pick after the deadline. When in doubt, we can oblige late choices with an additional rush charge. Expecting no one really minds, talk with your serious event facilitator with any late people. see here

  6. Raizen says:

    Glad I came here! Thanks for updating this article. Thanks! Concrete Services

  7. Piiper says:

    Your site is so good and informative thanks for sharing this post! Piiper Digital Solutions Sherwood Park AB

  8. Venice says:

    Thanks, You’ve got one of a kind creative ability and have come up with a few of the foremost inventive thoughts. click here

  9. Ellen S. Holland says:

    We have a 10-15 man least, contingent upon the class. go to website

  10. Yusuf Suhaib says:

    You have presented a compelling case. The information was really useful in clarifying the procedure for me. I found it quite moving. This is a great deal of helpful data, so please accept my gratitude. Here’s a link to a website
    Islami lecture

  11. eastmta.hu says:

    It’s in fact very difficult in this busy life to listen news on TV,
    thus I simply use web for that reason, and obtain the most recent information.

  12. Perfect timing! This is exactly what I’m looking for right now. Thank you for your contribution.

  13. Transladies says:

    Transladies ist eine Dating-Seite mit dem Schwerpunkt Erotik, auf der Männer, Frauen und Paare nach Gleichgesinnten suchen können. Jeder ab 18 Jahren, der auf der Suche nach einem aufregenden Abenteuer ist, kann auf der Website Mitglied werden. Obwohl die Website nicht speziell auf gebundene Menschen ausgerichtet ist, ist sie bei dieser Kategorie von Männern und Frauen sehr beliebt.

  14. shemal bordeaux is the best web place for finding casual contacts in France

  15. Vince says:

    Awesome post. Looking forward to more content! chimney sweep lexington ma

  16. Amdaj Kahas says:

    Thank you so much for this kind of information. I hope that there’s more to come. I love it! By the way, please visit our website to know more

  17. Trans Sesso Milano web place created for your own sexy contacts in Italy

  18. Angel17 says:

    Thanks for sharing this information. Keep sharing! Fence Installation Spring Hill, FL

  19. builder16 says:

    Thanks for sharing the information it’s really helpful and informative.
    Concrete Calgary Ab

  20. builder16 says:

    Great work. Very helpful and informative.
    Tree Services Owenboro

  21. pf45 says:

    I’m impressed, I have to admit. Rarely do I encounter a blog that’s both
    educative and interesting, and let me tell you, you’ve hit
    the nail on the head. The problem is an issue that too few men and
    women are speaking intelligently about. I’m very happy I
    came across this in my search for something regarding this.

  22. This is a fantastic resource for discovering information on a wide range of subjects. The articles are well-written and provide valuable information. This website is something I would suggest to others. International People news

  23. เรื่องราวของหนังออนไลน์เริ่มต้นในช่วงปี
    1990 โดยมีการใช้เทคโนโลยีอินเทอร์เน็ตเพื่อแลกเปลี่ยนข้อมูลและไฟล์วิดีโอต่างๆระหว่างผู้ใช้งานโดยเฉพาะในกรุ๊ปของชาวเทคโนโลยีสารสนเทศ
    ที่มีความสนใจสำหรับการแบ่งปันรวมทั้งดูคลิปวิดีโอต่างๆผ่านเครือข่ายอินเทอร์เน็ต

    ในปี 1994 มีการทำเว็บไซต์ที่แรกที่เป็นเว็บสำหรับมองภาพยนตร์ออนไลน์ แต่ระบบการเชื่อมต่ออินเทอร์เน็ตในสมัยนั้นยังไม่เสถียรพอที่จะรองรับการสตรีมมิ่งวิดีโอออนไลน์ได้อย่างสมบูรณ์ ด้วยเหตุผลดังกล่าวการดูหนังออนไลน์ในสมัยนั้นก็เลยยังไม่ได้รับความนิยมมากแค่ไหน

    ในปี 1997 มีการปรับปรุง RealPlayer ซึ่งเป็นโปรแกรมสำหรับเล่นไฟล์เสียงรวมทั้งวิดีโอผ่านอินเทอร์เน็ต ทำให้ผู้ใช้งานสามารถมองวิดีโอออนไลน์ได้ง่ายขึ้น รวมทั้งในตอนปีถัดมา มีการพัฒนาเว็บไซต์ที่เป็นเว็บสำหรับดูภาพยนตร์ออนไลน์เพิ่มมากขึ้น โดยเฉพาะอย่างยิ่งในตอนปี 2000-2010 มีการเขียนเว็บไซต์ดัง Netflix, Hulu, Amazon Prime ซึ่งเป็นบริการสตรีมมิ่งหนังออนไลน์ที่มีความนิยมชมชอบมากที่

    นับจากปี 2010 เป็นต้นมา การดูหนังออนไลน์เริ่มเป็นที่ชื่นชอบเยอะขึ้นเรื่อยๆ โดยยิ่งไปกว่านั้นในช่วงสมัยที่มีการพัฒนาเทคโนโลยีการสตรีมมิ่งวิดีโอออนไลน์เยอะขึ้นเรื่อยๆ ซึ่งทำให้ผู้ใช้งานสามารถดูหนังผ่านเน็ตได้ง่ายและสบายเยอะขึ้น ไม่ต้องออกมาจากบ้านหรือเดินทางไปยังโรงภาพยนตร์เพื่อดูหนัง

    ในตอนนี้ หนังออนไลน์ได้รับความนิยมเป็นอย่างมาก โดยมีการให้บริการสตรีมมิ่งหนังออนไลน์จากบริษัทมากหมายอาทิเช่น
    Netflix, Amazon Prime, Disney+, HBO Max และก็อื่นๆที่มีการผลิตและก็เผยแพร่หนังออนไลน์ที่นานาประการ โดยสามารถมองได้ทั้งบนโทรศัพท์มือถือ
    แท็บเล็ต และก็คอมพิวเตอร์ ทำให้ผู้คนสามารถดูหนังออนไลน์ได้ทุกหนทุกแห่งตามความสะดวกของตนเอง

  24. builder16 says:

    very informative article!!! thank you so much

    Accountants St Albert

  25. Allisa says:

    There are various ways in Midland to deal with doing this, for example, driving your site for unequivocal articulations, and making top-notch fulfilled.

Leave a Reply