ver
ver

Reputation: 938

Why does my web service show WSDL instead of svc?

I have a WCF web service running on HTTPS. When I compile and run it in Visual Studio 2008 and access the Service.svc file in browser, I expect to see the standard initial page beginning with:

You have created a service.

To test this service, you will need to create a client and use it to call the service. You can do this using the svcutil.exe tool from the command line with the following syntax:

Instead, the service's WSDL file is shown. Is this some kind of a configuration error? How can I fix it?

Upvotes: 2

Views: 383

Answers (1)

Enrico Campidoglio
Enrico Campidoglio

Reputation: 60023

The WCF HTML help page may have been disabled for HTTPS in the <serviceDebug> configuration section.

Look for something like this in your configuration file:

<serviceDebug httpsHelpPageEnabled="false" />

Upvotes: 2

Related Questions