在 IIS6 默认网站下添加新的虚拟目录并将 .net Framework 更改为 4.0
我有 Windows 2003 和 IIS6。我有一个用 .net 4.0 编写的 WCF 服务。 IIS6 下的默认网站在 .net 2.0 下运行。如何添加新的虚拟目录以指向将在 .net 4.0 下运行的 wcf 服务?当前默认网站下有 3 个正在运行的网站。我知道我可以简单地添加新网站,但随后我将不得不使用不同的端口运行它,不是吗?
I have windows 2003 and IIS6. I have a WCF service written in .net 4.0.
Default web site under IIS6 runs under .net 2.0. How can I add new virtual directory that will point to my wcf service which will be running under .net 4.0? Currently under Default web sites there are 3 web sites running. I know I can simply add new web site but then I will have to run it using different port, isn't right?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您首先需要在 IIS 6 中安装 .Net 4.0。您可以使用 Web 平台来完成此操作安装程序。完成此操作后,您可以从虚拟目录属性表上的 ASP.NET 选项卡设置虚拟目录的框架版本。您可能还需要在 Web 服务扩展。
You will first need to install .Net 4.0 in IIS 6. You can do this with the Web Platform Installer. Once this is done you can set the framework version of the virtual directory from the ASP.NET tab on the virtual directory property sheet. You may also need to enable ASP.NET 4.0 under Web Service Extensions.