An attempt was made to load an assembly with an incorrect format microsoft.sharepoint.search.dll

I recently came across the following error message when I gotten compile the project in release - after success in debug

An attempt was made to load an assembly with an incorrect format microsoft.sharepoint.search.dll


The solution is simple

go to Project Properies -> Build ...
and trun off the Generate serialization assembly

Generate serialization assembly

Yours,
Roi

Comments

Popular posts from this blog

A sharepoint list view of the current month

SharePoint Service Provisioning - the service stuck on starting

The specified path, file name, or both are too long. The fully qualified file name must be less than 260 characters