简体   繁体   English

如何使用Windows XP IIS 5.1部署WCF服务应用程序(框架4.0)?

[英]How to deploy WCF Service Application (Framework 4.0) using Windows XP IIS 5.1?

如何在Windows XP IIS 5.1中部署使用Visual Studio 2010(框架4.0)制作的WCF服务应用程序?

Create a new virtual directory in IIS to host your WCF service application - you can either put the application in inetpub\\wwwroot, or have the virtual directory point to the physical location of the application. 在IIS中创建一个新的虚拟目录来承载WCF服务应用程序-您可以将应用程序放在inetpub \\ wwwroot中,也可以使虚拟目录指向应用程序的物理位置。

In the properties for the virtual directory, ensure that the ASP.NET tab has ASP.NET version set to 4.0.30319. 在虚拟目录的属性中,确保“ ASP.NET”选项卡的ASP.NET版本设置为4.0.30319。

Also make sure your Web.config file has the proper settings for the environment your deploying to (ie, service address and anything else that might be specific to the environment). 另外,请确保您的Web.config文件具有与要部署到的环境相对应的设置(即服务地址以及该环境可能有的其他任何内容)。

You won't have WAS in 5.1, so you won't be able to use NetTcpBinding. 您将在5.1中没有WAS,因此将无法使用NetTcpBinding。

You can also look on MSDN for more information - How to: Host a WCF Service in IIS , though it's written for later versions of IIS. 您也可以在MSDN上查看更多信息- 如何:在IIS中托管WCF服务 ,尽管它是为更高版本的IIS编写的。

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

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