DotNet Programming World

Friday, June 17, 2011

Error occurred in deployment step 'Add Solution': Failed to load receiver assembly

Error occurred in deployment step 'Add Solution': Failed to load receiver assembly "xxx" for feature "PoliciesProcedures_Feature1" (ID: ########-####-####-####-##########).: System.IO.FileNotFoundException: Could not load file or assembly 'xxx' or one of its dependencies. The system cannot find the file specified.

I've got this error message when deploying to my local sharepoint from Visual Studio 2010. I've spent couple days and nights to figure it out. Googling trouble shooting blogs and reconfiguring sharepoint 2010, none was working for me.

I hope this short blog save someone.

In my case, it turned out that one of my class file name was too long to deploy to sharepoint. What I mean by that is sharepoint has a filepath restriction up to 255 characters, and somehow, one of my class file name exceeded the limitation. Check that your filename and path is not exceeded to the limit.

Once I changed to a shorten file name, everything ran seamlessly.

Labels: