tekiegreg
tekiegreg

Reputation: 1707

WSDL Not Loading in .NET WCF Service

So I created a basic WCF Web Service, with one Operation Contract and a Data Contract, all built ok. However after deploy to my test web server, an attempt to download the WSDL it redirects me to the main service screen or "You have created a service", nothing shows up in error messages or event logs, Fiddler reports nothing and while I can attach to the web service ok via remote debugging, no errors show up in code. What are some other easy checks to see what is going on? This is C# on the .NET 3.5 framework.

Upvotes: 2

Views: 3642

Answers (3)

jaccso
jaccso

Reputation: 342

Same happened here when I forget to decorate the service interface with [ServiceContract] attribute.

Upvotes: 0

tekiegreg
tekiegreg

Reputation: 1707

Figured it out, for some reason the code behind in the markup for the service was not set to the proper class. Fixed.

Upvotes: 1

lockstock
lockstock

Reputation: 2427

Make sure you have set the 'serviceMetadata' values correctly in the server web.config file.

<serviceMetadata httpGetEnabled="true" httpsGetEnabled="true" />

depending on whether you want to expose via http and/or https

Upvotes: 4

Related Questions