Stopped-extension-dll-exceptions in User Profile Sync
Symptons: You get stopped-extension-dll-exceptions in MIIS client while running full or incremental user profile sync.
![]()
At the same time you will get following exceptions in 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.
$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: 1% [?]
Ty Ty Ty, spot on. I have been trying to figure that damn thing out for weeks.
Thanks very much Marko. I got these errrors after a MySite WebApplication name change, and it solved the problem.
You need to take component in a contest for among the most desirable blogs on the internet. I will suggest this website!
christian louboutin outlets
After Web app restore, problem has started. This helped a lot, thank you very much!!