[英]Publishing WCF Rest on IIS
I just started with WCF rest services and I've created a very simple project. 我刚开始使用WCF休息服务,我创建了一个非常简单的项目。
I can access it by 我可以访问它
http://localhost:3349/VUXServicePrototype.svc/test
and see the text on the browser. 并在浏览器上查看文本。
Now my question is how can I deploy it on the IIS? 现在我的问题是我如何在IIS上部署它? I can see it on IIS Express but how can I move it on the IIS?
我可以在IIS Express上看到它但是如何在IIS上移动它?
You can build (I prefer publishing) to a directory. 您可以构建(我更喜欢发布)到目录。
To deploy a WCF service once you've finished development, an easy way is to use the visual studio deploy tool. 要在完成开发后部署WCF服务,一种简单的方法是使用visual studio部署工具。 Right click on your service project, and click publish.
右键单击您的服务项目,然后单击“发布”。 Click the dropdown, and create a new profile.
单击下拉列表,然后创建新的配置文件。
You can either deploy directly to the IIS server, or deploy to the file system so that you can setup IIS yourself. 您可以直接部署到IIS服务器,也可以部署到文件系统,以便自己设置IIS。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.