Our team has found there are some things that can't be done in the out of box SharePoint web services, so we've decided to build our own web service wrapper, to wrap around Microsoft.SharePoint.dll and Microsoft.Office.Server.UserProfiles.dll.
My problem is, those dlls are 64 bit, so the web service must be 64 bit. When I set the project to x64 bit, asp.net throws BadImageFormatException.
Is there a working we开发者_StackOverflow中文版b service that can call the SharePoint 2010 native libraries that I could use to see a work around, or does anybody know a work around? Most grateful!
How are the Microsoft dll's referenced? If they are in the web services's /bin folder, remove them there, so .net attempts to load them from the GAC.
Ive developed several wrappers and never had a 32/64 bit issue when i deployed the service to SharePoint.
精彩评论