Reputation: 1707
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
Reputation: 342
Same happened here when I forget to decorate the service interface with [ServiceContract] attribute.
Upvotes: 0
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
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