up vote 0 down vote favorite
share [g+] share [fb]

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=12.0.0.0, 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?

link|improve this question

8% accept rate
feedback

1 Answer

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

link|improve this answer
I did that. still the same. Will SharePoint 2007 64 + Os 64 + Vs2010 will support? – ItsMeSri Jan 28 at 2:29
feedback

Your Answer

 
or
required, but never shown

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