安装 .net Framework 1.1 全局配置我的所有网站为 1.1 如何撤消此操作/永久地将它们重新配置回 asp.net 2.0?

发布于 2024-08-26 00:24:23 字数 477 浏览 6 评论 0原文

我有一台 Windows 7 机器,正在使用 VS2005。其上安装了.Net 2.0和.Net 3.5。

一个应用程序声称需要 .NET Framework 1.1 才能运行。 因此我安装了框架 1.1 并且它现在可以运行。

问题: 现在,每当我尝试在 VS2005 中打开网站时,我都会收到一条消息,说它配置为 1.1 而不是 2.0。 VS2005 提供配置网站的功能 - 但它所做的任何更改都是非永久性的,当我下次打开网站时,我会收到相同的消息。

我尝试删除并重新添加网站:仍配置为 1.1。

我似乎有一个名为“ASP.NET 1.1”的新应用程序池 - 但没有任何应用程序与之关联。

有没有办法撤消安装 1.1 对我的网站所做的全局更改?

安装 1.1 时,我看到“aspnet_regiis /i”作为安装的一部分被调用: 我曾尝试偶尔运行 Framework 2.0 版本的“aspnet_regiis /i” - 没有什么乐趣。

I have a Windows 7 machine on which I am using VS2005. .Net 2.0 and .Net 3.5 are installed on it.

An app claimed it needed .NET framework 1.1 before it would run.
I therefore installed framework 1.1 and it now runs.

Problem:
Now whenever I try to open a website in VS2005 I get a messages saying it is configured for 1.1 rather than 2.0. VS2005 offers to configure the website - but whatever changes it makes are non-permanent and when next I open the website I get the same message.

I have tried removing and re-adding a website: still configured for 1.1.

I appear to have a new AppPool named "ASP.NET 1.1" - but no applications are associated with that.

Is there a way to un-do the global change installing 1.1 made to my websites?

When 1.1 installed I saw "aspnet_regiis /i" being invoked as part of the install:
I have tried running the Framework 2.0 version of "aspnet_regiis /i" on the off chance - no joy.

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

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

发布评论

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

评论(1

身边 2024-09-02 00:24:23

如果您确定任何 Web 应用程序都不需要 .NET 1.1,则可以运行 C:\WINDOWS\Microsoft.NET\Framework\v1.1.4322\aspnet_regiis.exe -u -e > 删除 v1.1 挂钩。然后您可以运行 C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\aspnet_regiis.exe -i -r -enable 重新启用所有 v2.0 挂钩。 (或者您可以在 IIS 控制面板的 Web 服务扩展部分下将 ASP.NET 1.1 设置为“禁止”。)

否则,您将需要使用 IIS 控制面板手动将 ASP.NET 版本设置回来在每个需要它的虚拟目录上升级到 2.0。带有橙色齿轮的那些是使用动态内容的,因此如果您右键单击它们并转到 ASP.NET 选项卡,您将看到可以在哪里将版本更改回 v2.0。

If you are sure you don't need .NET 1.1 for any of the web applications, you can run C:\WINDOWS\Microsoft.NET\Framework\v1.1.4322\aspnet_regiis.exe -u -e to remove the v1.1 hooks. Then you can run C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\aspnet_regiis.exe -i -r -enable to re-enable all the v2.0 hooks. (Or you may be able to just set ASP.NET 1.1 to "Prohibit" under the Web Service Extensions section of the IIS control panel.)

Otherwise, you will need to use the IIS control panel to manually set the ASP.NET version back to 2.0 on each of the virtual directories which need it. The ones with the orangish gears are the ones using dynamic content, so if you right-click them and go to the ASP.NET tab, you'll see where you can change the version back to v2.0.

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