Could not load file or assembly ‘Microsoft.Crm, Version=5.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35’ or one of its dependencies. The system cannot find the file specified or Deploying custom web application inside...
To deploy our custom web application inside ISV folder of CRM 2011 we need to follow the below steps
Make following changes in the web.config
<configuration>
<configSections>
<remove name=“crm.authentication“ />
</configSections>
<system.web>
<httpModules>
<clear/>
</httpModules>
……………………
And after deploying the application within the ISV folder, place the following dlls within its bin folder
- AntiXssLibrary.dll
- Microsoft.Crm.dll
- Microsoft.Crm.Sdk.dll
- Microsoft.Crm.Platform.Sdk.dll
We can find these dll’s inside
../Microsoft Dynamics CRM/Server/Bin folder.
The above solution worked perfectly for Beta Versions of CRM 2011.
Recently we upgraded to RTM, and we had to deploy a WCF Service and custom web site inside isv.
For WCF service we had to make following changes to the web.config apart from the changes mentioned above
<serviceHostingEnvironment aspNetCompatibilityEnabled=”false”>
</serviceHostingEnvironment>
</system.serviceModel>
And in case of custom web site we had to add the following additional dll’s
- Microsoft.Crm.Sdk.Proxy.dll
- Microsoft.Xrm.Sdk.dll
Hope it helps!
Filed under: CRM, CRM 2011, Microsoft Dynamics CRM Tagged: CRM, CRM 2011
This was originally posted here.

Like
Report
*This post is locked for comments