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

Export SharePoint 2010 List to Excel with PowerShell

SharePoint Service Provisioning - the service stuck on starting