FIM 2010 R2 Troubleshooting: SSPR Error 3000:could not load file or assembly: 0x80131047
Environment
- Forefront Identity Manager 2010 R2 Self-Service Password Reset (SSPR)
Issue
Attempts to reset a password in the portal fails with the following error. An error has occurred. Please try again, and if the problem persists, contact your help desk or system administrator. (Error 3000)
The following event is logged.
Forefront Identity Manager Event Log
Log Name: Forefront Identity Manager
Source: Microsoft.CredentialManagement.ResetPortal
Event ID: 3
Task Category: None
Level: Error
Keywords: Classic
User: N/A
Computer: PwdReset.contoso.com
Description:
mscorlib: System.IO.FileLoadException: Could not load file or assembly 'Microsoft.IdentityManagement.CredentialManagement.Portal.Gates\ Version\{BuildVersion}\ Culture\neutral\ PublicKeyToken\31bf3856ad364e35' or one of its dependencies. The given assembly name or codebase was invalid. (Exception from HRESULT: 0x80131047)
File name: 'Microsoft.IdentityManagement.CredentialManagement.Portal.Gates\ Version\{BuildVersion}\ Culture\neutral\ PublicKeyToken\31bf3856ad364e35'
at System.Reflection.AssemblyName.nInit(Assembly& assembly, Boolean forIntrospection, Boolean raiseResolveEvent)
at System.Reflection.Assembly.InternalLoad(String assemblyString, Evidence assemblySecurity, StackCrawlMark& stackMark, Boolean forIntrospection)
at System.Reflection.Assembly.Load(String assemblyString)
at Microsoft.IdentityManagement.CredentialManagement.Portal.Common.GateLoader.LoadGate(Guid gateIdentifier)
Cause
In the password reset web.config file there are four "add gateId" entries. In each of these entries the build version was missing. It was listed as Version={BuildVersion}.
E.g.: <add gateId="45C4D8BB-D34C-453d-8346-C9061A2A1E4C" registrationType="Microsoft.IdentityManagement.CredentialManagement.Portal.Gates.QAGateControl, Microsoft.IdentityManagement.CredentialManagement.Portal.Gates, Version={BuildVersion}, Culture=neutral, PublicKeyToken=31bf3856ad364e35"
Resolution
Change the version to the actual version in use, e.g. Version=4.1.2273.0.
E.g.:
<add gateId="45C4D8BB-D34C-453d-8346-C9061A2A1E4C" registrationType="Microsoft.IdentityManagement.CredentialManagement.Portal.Gates.QAGateControl, Microsoft.IdentityManagement.CredentialManagement.Portal.Gates, Version=4.1.2273.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" validationType="Microsoft.IdentityManagement.CredentialManagement.Portal.Gates.QAGateControl, Microsoft.IdentityManagement.CredentialManagement.Portal.Gates, Version=4.1.2273.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" />