I am working on a webservice(.asmx) file with web methods written to connect and do crud operations to share point 2010 lists,which is consumed by my c# application. When I try to run my asmx file, it throws the below error. I have included all related dlls and also Microsoft.Office.Search dll with same version. I tried lot of research on this part but couldn't find reasonable solution.
I took all dlls from the machine where sharepoint is installed. I tried this and tried to change platform to X64, tried referring office.server dll, took dlls from C:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\14\ISAPI\ Any idea would really help.
Could not load file or assembly 'Microsoft.Office.Server.Search, Version=14.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c' or one of its dependencies. An attempt was made to load a program with an incorrect format.