New answers tagged wcf
The problem was solved for me, by setting the target platform to x64 in the Build section of the Web Service project properties. I was then able to open a site and a web using your code without elevation! However, the Web Service User is SP Farm Admin (dev machine) and the service is running on a SharePoint Server.
Top 50 recent answers are included