문제

I have a weird problem. I have a Sharepoint 2013 solution with two features, one of which has a feature receiver with some code in it. If I deploy this solution either through SPSD or Visual Studio 2013, I get an error

Error occured in deployment step 'Activate Features': Failed to load receiver assembly '...' for feature '...'

I can only deploy my solution if I delete the feature receiver, I don't even need to have any code other than that which Visual Studio generates in the receiver for it to fail. The deployment target of my solution is GAC, as I read somewhere else that feature receivers cannot be deployed to WebApps.

Can anybody help me here?

도움이 되었습니까?

해결책

My solution to the problem was to change assembly version from 1.0.0.0 to 1.0.0.1 and build the SharePoint project. After that I deleted feature receiver and added feature receiver again so that feature manifest XML file gets updated with correct version of feature receiver assembly.

More details on http://slavensemper.blogspot.hr/2015/08/failed-to-load-receiver-assembly.html.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 sharepoint.stackexchange
scroll top