如何使用命令行工具将 .net 4 安装到 IIS

发布于 2024-08-16 09:22:28 字数 858 浏览 1 评论 0原文

我正在尝试将 WCF RIA 服务应用程序部署到我们的内部服务器进行测试。我一直在遵循此博客网站的说明和评论: http://timheuer。 com/blog/archive/2009/12/10/tips-to-deploy-ria-services-troubleshoot.aspx

最后有人指出了这个问题:

如何解决“HTTP 错误 404.3 - 未找到”错误?

尝试使用 .net 4.0 运行相同的工具,但它一直给我一个错误:

[Warning]The HTTP namespace reservation already exists.

我正在运行我在 C:\Windows\Microsoft.NET\Framework\v4.0.21006

还有 C:\Windows\Microsoft.NET\Framework\v3.0\Windows Communication Foundation 其中有(我假设是)相同的 exe,我可以使用它美好的。我尝试在安装 4.0 版本之前卸载 3.0 版本,但仍然收到相同的警告和失败。有人用.net 4.0成功地做到了这一点吗?

I'm trying to deploy my WCF RIA services application to our in-house server for testing. I've been following the instructions and comments from this blog site:
http://timheuer.com/blog/archive/2009/12/10/tips-to-deploy-ria-services-troubleshoot.aspx

At the end someone points to this question:

How to solve a "HTTP Error 404.3 - Not Found" error?

I've been trying to run that same tool with .net 4.0 but it keeps giving me an error:

[Warning]The HTTP namespace reservation already exists.

I am running the version of the exe that I found inside of C:\Windows\Microsoft.NET\Framework\v4.0.21006

There is also C:\Windows\Microsoft.NET\Framework\v3.0\Windows Communication Foundation that has (what I assume is) the same exe in it, and I can use it just fine. I've tried to un-install the 3.0 version before installing the 4.0 version, but I am still getting the same warning and failure. Has anyone successfully done this with .net 4.0?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

烟沫凡尘 2024-08-23 09:22:28

我终于设法让它发挥作用。我按照此处找到的说明进行操作我删除了引用 Temporary_Listen_Addresses 的 HTTP 命名空间。完成此操作后,我能够成功运行 ServiceModelReg 工具并使用 .NET 4.0 安装这些内容

。 简而言之:

netsh http show urlacl
netsh http delete urlacl url=INSERT THE RESERVED URL NAME HERE

I finally managed to get this to work. I followed the instructions found Here and I removed an HTTP namespaces that was referencing Temporary_Listen_Addresses. after I did that I was able to successfully run the ServiceModelReg tool and install the stuff with .NET 4.0

In a nutshell:

netsh http show urlacl
netsh http delete urlacl url=INSERT THE RESERVED URL NAME HERE
~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文