Error on Loading CCA

Nov 20, 2012 at 3:10 PM


I have done one test setup for CCA server machine working fine for using Custom credentials.

But, when I try to run Agentdesktop.exe in client machine, no Visual studio on this machine. 

It shows the below error in CCA log file.


CCA: Unable to load DLL 'windowsaccessbridge.dll': The specified module could not be found. (Exception from HRESULT: 0x8007007E)
 Cca: Unable to login - Please make sure your login details are correct and try again. Contact administrator if the problem persists.

System.IO.FileNotFoundException: Could not load file or assembly 'Microsoft.IdentityModel, Version=, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its dependencies. The system cannot find the file specified.
File name: 'Microsoft.IdentityModel, Version=, Culture=neutral, PublicKeyToken=31bf3856ad364e35'
   at Microsoft.Xrm.Sdk.Client.ServiceConfiguration`1.CreateLocalChannelFactory()
   at Microsoft.Xrm.Sdk.Client.ServiceConfiguration`1.CreateChannelFactory(ClientCredentials clientCredentials)
   at Microsoft.Xrm.Sdk.Client.OrganizationServiceConfiguration.CreateChannelFactory(ClientCredentials clientCredentials)
   at Microsoft.Xrm.Sdk.Client.ServiceProxy`1.get_ChannelFactory()
   at Microsoft.Xrm.Sdk.Client.ServiceProxy`1.CreateNewServiceChannel()
   at Microsoft.Xrm.Sdk.Client.ServiceProxy`1.ValidateAuthentication()
   at Microsoft.Xrm.Sdk.Client.ServiceContextInitializer`1.Initialize(ServiceProxy`1 proxy)
   at Microsoft.Xrm.Sdk.Client.OrganizationServiceProxy.ExecuteCore(OrganizationRequest request)
   at Microsoft.Uii.AifServices.AuthenticationService.ValidateConnect()
   at Microsoft.Uii.AifServices.AuthenticationService.Connect(Uri organizationServiceUri, Uri homeRealmUri, ClientCredentials clientCredentials, ClientCredentials deviceCredentials)
   at Microsoft.Uii.AifServices.AuthenticationService.Connect(Uri organizationServiceUri, NetworkCredential networkCredential)
   at Microsoft.Crm.Accelerator.Cca.WpfDesktop.MainWindow..ctor() in D:\CCA\bk_Solution\Microsoft Uii\CCA\Source Code\AgentDesktop\MainWindow.xaml.cs:line 152

WRN: Assembly binding logging is turned OFF.
To enable assembly bind failure logging, set the registry value [HKLM\Software\Microsoft\Fusion!EnableLog] (DWORD) to 1.
Note: There is some performance penalty associated with assembly bind failure logging.
To turn this feature off, remove the registry value [HKLM\Software\Microsoft\Fusion!EnableLog].
 CCA: Agentdesktop exited.


Any one help me.




Nov 20, 2012 at 4:45 PM

You need to download and install in the cliente de Windows Identity Foundation (


Nov 20, 2012 at 6:47 PM
Edited Nov 20, 2012 at 6:50 PM

This is the direct download Links for WIF for Vista, Servers, and Windows 7

if your client is XP,  you need to copy the DLL ( Microsoft.IdentityModel.dll) into the directory where the agent desktop is running from.

For Windows 8, its shipped with the OS and you need to enable it via Add/Remove Windows Features.

Also, as you build and begin to think about your deployment process,  you can package the WIF Dll ( Microsoft.IdentiyModel.dll ) with your solution.


Nov 21, 2012 at 5:19 AM

Thank you Matt and canikra. Now Worked.

Save my days.