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

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

Export SharePoint 2010 List to Excel with PowerShell