I created a simple WCF application. The platform is set to Any CPU. I can build and run the application successfully. But when I change the platform to x64 I get the following error:
Failed to add a service. Service metadata may not be accessible. Make sure your service is running and exposing metadata
My system has 64 bit OS. Actually i have to set the platform to x64 to laod a dll in my app. What would be the possible reasons for this error. Please help me.
I am using IIS Express.
使用IIS Express和VS2013时,需要在调试x64 Web项目时检查VS Options中的以下选项:
Tools -> Options -> Projects and Solutions -> Web Projects -> Use the 64 bit version of IIS Express for web sites and projects
IIS -> Advanced Settings of Application Pool. Set "Enable 32-bit Applications" to true. Also check if the Service is depending on a library that is not x64.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.