开发者

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.

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜