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:

2 Comments:

  • You must do this:
    - Delete your cs file referent to EventReceiver
    - Inside properties find Receiver Assembly and Receiver Class and clear all that they said.
    - Then add again de event reciever to the feature.

    you will see that before in that properties was a class name, but when you delete this names and add again the receiver, now the properties name are reference, something like that
    Receiver Assembly is $SharePoint.Project.AssemblyFullName$
    and
    Receiver Class is $SharePoint.Type.1795546c-5c12-41e8-b323-d5f0a177bf00.FullName$

    I did my solution with software Factory it's free and you can download from codeplex.

    By Blogger Unknown, at 2:19 AM  

  • The properties you will find on feature properties dialog box

    By Blogger Unknown, at 2:20 AM  

Post a Comment

<< Home