1

我正在使用 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。

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

4

2 回答 2

4

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

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

于 2012-09-27T20:42:47.337 回答
3

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

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

于 2012-07-18T11:13:12.213 回答