开发者

wcf service not showing Publish option Why?

开发者 https://www.devze.com 2023-01-01 12:49 出处:网络
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 wh

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.

0

精彩评论

暂无评论...
验证码 换一张
取 消