简体   繁体   English

如何使用Visual Studio在IIS上托管WCF Web服务

[英]how to host wcf web service on iis wihtout using Visual studio

I am not very much clear about web services. 我对Web服务不是很清楚。 I have created a web service and hosted it on IIS using publish option in visual studio. 我已经创建了一个Web服务,并使用Visual Studio中的“发布”选项将其托管在IIS上。 Is there any way by which I can host my application on IIS (without using visual studio) only from IIS manager. 有什么方法可以仅通过IIS管理器将应用程序托管在IIS上(不使用Visual Studio)。

You do not need to use the publish function from within Visual Studio to deploy the service. 您不需要使用Visual Studio中的发布功能来部署服务。 Roughly what you need to do is: 大致需要做的是:

1) Create the website in IIS Manager where you wish to host the service. 1)在要托管服务的IIS管理器中创建网站。 Make sure your application pool is running the correct version of the .Net framework. 确保您的应用程序池正在运行正确版本的.Net框架。

2) Copy your binaries to /bin relative to the root of your website. 2)将您的二进制文件复制到/ bin相对于您网站的根目录。

3) Copy your web.config, .asmx, .svc and other needed files to your website root. 3)将您的web.config,.asmx,.svc和其他所需文件复制到您的网站根目录。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM