运行 aspnet_regiis.exe -ir 会产生任何问题吗?

发布于 2024-07-24 10:45:58 字数 629 浏览 0 评论 0原文

我问了一个有关更改 IIS 中 .Net 站点版本的问题。 如果它影响经典的 asp 网站等(请参阅 asp. net设置影响经典asp(IIS 6设置)) 这看起来不错。 所以我的后续问题是,运行这个命令会让我被解雇吗? 它的作用是将 .net 版本的默认值(以及所有现有的?)更改为 2.0。

这不会影响任何 .net 站点,因为它们的版本已全部升级到 2.0。 经典的 asp 页面需要更新其应用程序池,以便其在 2.0 中正常运行,但我可能会遇到任何其他麻烦吗?

我已经尝试在测试环境中执行此操作,并且在安装期间(通过命令)没有任何站点下降,但我没有任何经典的 asp 站点或任何正在运行的 .net 站点(我应该测试它,来考虑一下它)但其他东西可能会损坏吗?

这个命令还有其他作用吗? 我们有一些非常大的站点正在运行,我们不能有停机时间,所以我需要 100% 确定这个命令是安全的。 由于每次我们更改新网站的 .net 版本号时,所有网站都会出现故障,因此我们需要尽快修复此问题。

有什么好主意吗?

I've asked a question about changing the version of .Net sites in the IIS. If it affects classic asp sites etc (See Does asp.net setting affect classic asp (IIS 6 settings))
And that seems fine. So my follow-up question is, will running this command get me fired? What it does is changing the default value (and all existing?) of the .net version to 2.0.

This wont affect any of the .net sites since they're allready versioned to 2.0.
The classic asp pages needs to get its app pools updated so its functionoal with 2.0 but may I run into any other troubles?

I've tried doing this on a test environment and no sites whet down during the installation period (from the command) but I did not have any classic asp sites or any .net sites running though (which I should test, come to think about it) but may something else break?

Is this command doing anything else? We have some very large sites running and we cannot have downtime periods so I need to be 100% sure that this command is safe. Since all sites go down everytime we change a new sites .net version number we need to get this fix live asap.

Any good ideas?

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

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

发布评论

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

评论(2

北恋 2024-07-31 10:45:59

自从我问这个问题以来已经很长时间了,但是 Dror,感谢您的编辑。 我一定会尝试一下。

事实上,几个月前我就找到了解决这个问题的方法。

您可以导出站点配置,然后获得一个 XML 文件,编辑此文件并将站点名称等设置为某些内容(例如 dev1)。 然后导入它,您就得到了一个预先配置了 .net 的新站点。 只需确保您更改名称和其他不能与另一个站点相同的内容(例如主机内容,无法准确记住有哪些参数),因为我猜这会导致问题。

快乐出国

long time since I asked, but Dror, thanks for your edit. I'll be sure to try it.

I actually found a solution to this problem some months ago.

You can export a sites configuration, and you get a XML file, edit this file and set the site name etc to something (like dev1). Then you import this and you got yourself a new site with .net pre-configured. Just make sure you change the name and other things that cannot be the same as another site (like host things, cant remember exactly what parameters there were) because that would cause a problem I guess.

Happy iising

我很OK 2024-07-31 10:45:58

这不会造成任何副作用,因为它与 IIS 对 .NET 页面(例如 aspx 扩展)的操作有关。
由于经典的 asp 页面不是由 IIS 中的 .NET 扩展处理的,所以我认为没有理由担心。
编辑:
根据 MSDN 您可以使用一个选项

-norestart - 在安装或更新 ASP.NET 脚本映射后禁止重新启动万维网发布服务。 如果不使用此选项,所有应用程序池都会被回收。

所以你可以从应用程序池中看到被回收。

This should not cause any side affect as it relates to what the IIS does with .NET pages (e.g. aspx extensions).
Since the classic asp pages are not handled by the .NET extensions in the IIS I can see no reason to worry.
EDIT:
According to MSDN you can use an option

-norestart - inhibits the restart of the World Wide Web Publishing Service after installing or updating ASP.NET script maps. If you do not use this option, all application pools are recycled.

so you can see from that application pools will be recycled.

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