WCF: Failed to add a service. Service metadata may not be accessible. Make sure your service is running and exposing metadata

.net, 64-bit, c#, wcf

Solution

When using IIS Express and VS2013, you need to check the following option in VS Options when debugging x64 web project:

`Tools -> Options -> Projects and Solutions -> Web Projects -> Use the 64 bit version of IIS Express for web sites and projects`

Problem

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.

Original source

Related problems