I am running Visual studio 2010 on OS 64 bit and one of my asp.net web service application that sharepoint code throwing an error.

Exception Details: System.BadImageFormatException: Could not load file or assembly 'Microsoft.Office.Server.Search, Version=, Culture=neutral, PublicKeyToken=71e9bce111e9429c' or one of its dependencies. An attempt was made to load a program with an incorrect format.

How to resolve this?

1 Answer 1


What is the platform selected in your project's properties Build section? It should be Any CPU.

  • I did that. still the same. Will SharePoint 2007 64 + Os 64 + Vs2010 will support?
    – James123
    Jan 28, 2012 at 2:29

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.