wcf service not showing Publish option Why?
I written one WCF service after that i am trying to Publish(after Build) this service. But solution not showing Publish Option and also not creati开发者_如何学Pythonng any .svc file in the solution why?
Thanks in advance.
Regards,
Rajesh
Did you create a WCF Service Library, or a Windows Service to which you then added a WCF Service class and scaffold?
If so, then this will explain it.
The Publish option only appears for web projects in VS - so that's either the Website or the Web Application Project. Also, .svc files are only required for services that are hosted in Asp.Net as a file extension is needed (before any rewrite rules) to 'activate' the service host.
Create a new Website Application.
Add a new WCF service to it (which should also add the .svc), and then update the dummy interfaces & stub class with your service code.
精彩评论