简体   繁体   English

IIS 7.5不会重置

[英]IIS 7.5 Does Not Reset

Setup: Windows Server 2008 R2, IIS 7.5 安装程序:Windows Server 2008 R2,IIS 7.5

We currently have multiple ASP.NET applications hooked up to the "Default Web Site" site in IIS on a server. 当前,我们有多个ASP.NET应用程序连接到服务器上IIS中的“默认网站”站点。

  • Sites 网站
    • Default Web Site 默认网站
      • aspnet_client aspnet_client
      • Site_v1 Site_v1
      • Site_v2 Site_v2
      • Site_v3 Site_v3

I have recompiled the binary for the site, and copied over the files for "Site_v1", then done an IISRESET command. 我已经重新编译了该站点的二进制文件,并复制了“ Site_v1”的文件,然后执行了IISRESET命令。

My issue is that the web app does not actually reset. 我的问题是该网络应用实际上并未重置。 Our app logs initialization of certain core objects, and the logs do not show that the app is restarting. 我们的应用记录了某些核心对象的初始化,并且日志没有显示该应用正在重启。

Our current theory is that some user has a browser open to one of the default web sites, and that's preventing me from correctly resetting IIS. 我们当前的理论是,某些用户的浏览器打开了默认网站之一,这使我无法正确重置IIS。

Anyone seen anything like this? 有人看到过这样的东西吗?

Thanks in advance. 提前致谢。

Note: I'm posting this to Stack Overflow and not Super User because this is a problem on a development server. 注意:我将其发布到Stack Overflow,而不是Super User,因为这是开发服务器上的问题。 I'd like to solve this as a developer correctly compiling an application, rather than as a sys admin changing server settings. 作为开发人员正确地编译应用程序,而不是作为系统管理员更改服务器设置,我想解决此问题。 Hope that makes sense. 希望有道理。

UPDATE: 更新:

From Werner's suggestion in the comments, I deleted the temporary files for Site_v2, but could not delete them for Site_v1. 根据Werner在评论中的建议,我删除了Site_v2的临时文件,但无法删除Site_v1的临时文件。 Some process was locking the files. 某些进程正在锁定文件。 After resetting IIS, Site_v1 was working properly, but not Site_v2. 重置IIS后,Site_v1正常工作,但Site_v2无效。

Superconfused! 超级困惑!

MS have stopped support for the IISReset command, which means that your approach is OK, but will not work any more. MS已停止了对IISReset命令的支持,这意味着您的方法还可以,但将不再起作用。 It works for IIS6.0, but not 7.0 or 7.5. 它适用于IIS6.0,但不适用于7.0或7.5。

Ref: http://technet.microsoft.com/en-au/library/dd364308%28v=ws.10%29.aspx 参考: http : //technet.microsoft.com/zh-cn/library/dd364308%28v=ws.10%29.aspx

It can be done "by hand" using the GUI, but that is not scripted. 可以使用GUI“手动”完成,但是没有编写脚本。 I have the same issue, working on an alternative. 我有一个相同的问题,正在寻找替代方案。

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

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