I was trying to remote debug a webservice which was using CRM code and I started getting this error.

Could not load file or assembly ‘Microsoft.Crm, Version=5.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35′

I have never seen this error and I wasn’t sure if it was because I was trying to run it from my machine where certain dll’s are not in the GAC? or I have no idea.

but after I copied some dll’s into the bin directory of my web application or added them as reference the problem was fixed.

to read how to resolve the problem go to the blog below

http://nishantrana.wordpress.com/2011/01/20/could-not-load-file-or-assembly-microsoft-crm-version5-0-0-0-cultureneutral-publickeytoken31bf3856ad364e35-or-one-of-its-dependencies-the-system-cannot-find-the-file-specified-or-deploying/


Filed under: CRM 2011