Background:
I am building a MVC3 project in C# that calls up a SharePoint project to request data. Both projects will live on the same server, but in separate app pools.
Problem:
After adding the necessary references to SP, I can get my MVC project to build correctly; however, when I debug, I get this error:
Could not load file or assembly 'Microsoft.SharePoint.Search' or one of its dependencies. An attempt was made to load a program with an incorrect format.
I have referenced the 'Microsoft.SharePoint.Search' dll, but still no luck.
Any ideas? Many thanks!