简体   繁体   English

如何使用控制台在IIS中承载普通Web服务而不是WCF

[英]How to host a normal Web Service not WCF in IIS using Console

Is there any way that I can host a Web Service in IIS from my C# code? 有什么方法可以通过C#代码在IIS中托管Web服务?

Thanx 谢谢

I have written a couple of web apps that use web services. 我已经编写了几个使用Web服务的Web应用程序。 If you just want the web service installed in IIS with the web application installer you can just create a web installer project within the solution and add the project output from the web service and this should get installed along side the web site. 如果只想通过Web应用程序安装程序将Web服务安装在IIS中,则可以在解决方案中创建Web安装程序项目,并添加Web服务的项目输出,并且应该在网站旁边安装该项目。

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

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