【问题标题】:Windows Azure application crashes IISConfigurator.exeWindows Azure 应用程序崩溃 IISConfigurator.exe
【发布时间】:2012-07-17 19:28:41
【问题描述】:

我正在使用 Visual Studio Express 2012 和 Windows Azure SDK for .NET v11.0.5022,它安装了 IIS Express 8。当我尝试运行 Windows Azure 应用程序时,IISConfigurator.exe 会崩溃

这是日志文件

IISConfigurator Information: 0 : [00011404:00000001, 2012/07/17 19:18:56.304] Started 

iisconfigurator with args /start
IISConfigurator Information: 0 : [00011404:00000001, 2012/07/17 19:18:56.32] StartForeground selected. Check if an instance is already running
IISConfigurator Information: 0 : [00011404:00000001, 2012/07/17 19:18:56.341] Starting service WAS
IISConfigurator Information: 0 : [00011404:00000001, 2012/07/17 19:18:56.51] Starting service w3svc
IISConfigurator Information: 0 : [00011404:00000001, 2012/07/17 19:18:56.516] Starting service apphostsvc
IISConfigurator Information: 0 : [00011404:00000001, 2012/07/17 19:18:56.583] Unhandled exception: IsTerminating 'True', Message 'System.IO.FileNotFoundException: Could not load file or assembly 'Microsoft.Web.Administration, Version=7.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its dependencies. The system cannot find the file specified.
File name: 'Microsoft.Web.Administration, Version=7.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35'
   at Microsoft.WindowsAzure.ServiceRuntime.IISConfigurator.HostingEnvironment.ConfigureAnonymousAuthentication(String configPath)
   at Microsoft.WindowsAzure.ServiceRuntime.IISConfigurator.HostingEnvironment.Initialize(Boolean setupRewrite, String configPath)
   at Microsoft.WindowsAzure.ServiceRuntime.IISConfigurator.HostingEnvironment.Initialize(Boolean setupRewrite, String configPath)
   at Microsoft.WindowsAzure.ServiceRuntime.IISConfigurator.IISConfigurator.Initialize()
   at Microsoft.WindowsAzure.ServiceRuntime.IISConfigurator.WCFServiceHost.Open()
   at Microsoft.WindowsAzure.ServiceRuntime.IISConfigurator.Program.StartForgroundProcess()
   at Microsoft.WindowsAzure.ServiceRuntime.IISConfigurator.Program.DoActions(String[] args)
   at Microsoft.WindowsAzure.ServiceRuntime.IISConfigurator.Program.Main(String[] args)

WRN: Assembly binding logging is turned OFF.
To enable assembly bind failure logging, set the registry value [HKLM\Software\Microsoft\Fusion!EnableLog] (DWORD) to 1.
Note: There is some performance penalty associated with assembly bind failure logging.
To turn this feature off, remove the registry value [HKLM\Software\Microsoft\Fusion!EnableLog].
'
IISConfigurator Information: 0 : [00010228:00000001, 2012/07/17 19:19:07.934] Started iisconfigurator with args /start
IISConfigurator Information: 0 : [00010228:00000001, 2012/07/17 19:19:07.941] StartForeground selected. Check if an instance is already running
IISConfigurator Information: 0 : [00010228:00000001, 2012/07/17 19:19:07.963] Starting service WAS
IISConfigurator Information: 0 : [00010228:00000001, 2012/07/17 19:19:08.032] Starting service w3svc
IISConfigurator Information: 0 : [00010228:00000001, 2012/07/17 19:19:08.037] Starting service apphostsvc
IISConfigurator Information: 0 : [00010228:00000001, 2012/07/17 19:19:08.106] Unhandled exception: IsTerminating 'True', Message 'System.IO.FileNotFoundException: Could not load file or assembly 'Microsoft.Web.Administration, Version=7.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its dependencies. The system cannot find the file specified.
File name: 'Microsoft.Web.Administration, Version=7.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35'
   at Microsoft.WindowsAzure.ServiceRuntime.IISConfigurator.HostingEnvironment.ConfigureAnonymousAuthentication(String configPath)
   at Microsoft.WindowsAzure.ServiceRuntime.IISConfigurator.HostingEnvironment.Initialize(Boolean setupRewrite, String configPath)
   at Microsoft.WindowsAzure.ServiceRuntime.IISConfigurator.HostingEnvironment.Initialize(Boolean setupRewrite, String configPath)
   at Microsoft.WindowsAzure.ServiceRuntime.IISConfigurator.IISConfigurator.Initialize()
   at Microsoft.WindowsAzure.ServiceRuntime.IISConfigurator.WCFServiceHost.Open()
   at Microsoft.WindowsAzure.ServiceRuntime.IISConfigurator.Program.StartForgroundProcess()
   at Microsoft.WindowsAzure.ServiceRuntime.IISConfigurator.Program.DoActions(String[] args)
   at Microsoft.WindowsAzure.ServiceRuntime.IISConfigurator.Program.Main(String[] args)

WRN: Assembly binding logging is turned OFF.
To enable assembly bind failure logging, set the registry value [HKLM\Software\Microsoft\Fusion!EnableLog] (DWORD) to 1.
Note: There is some performance penalty associated with assembly bind failure logging.
To turn this feature off, remove the registry value [HKLM\Software\Microsoft\Fusion!EnableLog].
'

应用程序似乎正在尝试绑定到安装了 IIS 7.9.0.0(IIS 8 Release Candidate)的 IIS 7.0。

有什么办法可以解决这个问题吗?

【问题讨论】:

    标签: asp.net iis azure iis-express


    【解决方案1】:

    遇到同样的问题,使用 MS Web 平台安装程序安装“IIS 管理控制台”,它解决了问题。

    发生这种情况是因为 IISConfigurator.exe 正在尝试使用对“Microsoft.Web.Administration, Version=7.0.0.0...”的引用,而我在安装管理控制台之前没有这个引用。

    【讨论】:

    • 这为我节省了数小时的故障排除时间……救命稻草。谢谢!
    • 也为我工作,谢谢!我使用控制面板 > 添加/删除 Windows 功能来安装“IIS 管理控制台”并解决了问题。
    【解决方案2】:

    如果 IIS Express 不起作用,您始终可以使用完整的 IIS。在 Windows Azure 项目的属性页,点击 Web 标签,可以选择使用完整的 IIS。

    从屏幕截图来看,您使用的是 Windows 7(因为您的窗口有圆角)。请注意,Windows 7 仅支持完整的 IIS 7。还请确保您已在 Windows 功能中启用完整的 IIS。如果要使用完整的 IIS 8,则需要使用 Windows 8 或 Windows Server 8。

    【讨论】:

    • 谢谢明旭。我想坚持一些简单的事情,避免管理 IISExpress 的麻烦。另外,我希望能够完全遵循 Azure 示例,这样我可以排除构建过程失败的原因。
    • 那么请尝试重新安装 Windows Azure SDK 和 IIS Express 看看是否有帮助。
    • 在我安装了 IIS 管理控制台和 IIS HWC 后,这个问题神奇地消失了。有关详细信息,请参阅goo.gl/K3ZAJ 我很想了解错误的根源,因为我在互联网上看到了很多类似的帖子。希望其他人也可以避免这个错误
    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 2017-03-26
    • 2015-12-28
    • 2013-04-11
    • 2017-08-04
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多