2012-07-17 84 views
1

我使用的Visual Studio Express的2012,和Windows Azure的SDK用於.NET v11.0.5022,它安裝IIS快遞8.當我嘗試運行Windows Azure的應用程序,IISConfigurator.exe會崩潰Windows Azure的應用程序崩潰IISConfigurator.exe

enter image description here

這是日誌文件

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.0,其中IIS版本7.9.0.0(IIS 8候選發佈版)安裝。

什麼辦法可以解決這個問題?

回答

3

如果IIS Express沒有工作,你總是可以使用完整的IIS。在Windows Azure項目的屬性頁面中,單擊Web選項卡,然後可以選擇使用完整的IIS。

從截圖,它看起來像你的Windows 7(如您的窗口有圓角)。請注意,Windows 7只支持完整的IIS 7.請確保您已啓用Windows功能中的完整IIS。如果您想使用完整的IIS 8時,需要使用Windows 8或Windows Server 8

+0

謝謝,許明。我想堅持一些簡單的事情,並避免管理IISExpress的麻煩。另外,我希望能夠嚴格遵循Azure示例,因此我可以排除構建過程失敗時的原因。 – hanxue 2012-07-18 22:46:58

+0

然後請嘗試重新安裝Windows Azure SDK和IIS Express以查看是否有幫助。 – 2012-07-19 14:34:16

+0

安裝IIS管理控制檯和IIS HWC後,問題奇蹟般消失。見http://goo.gl/K3ZAJ的細節 我很想去錯誤的底部,因爲我看到了很多在互聯網上類似的帖子。希望這個錯誤可以避免爲其他人 – hanxue 2012-07-20 02:09:12

4

有同樣的問題,使用MS Web平臺安裝程序安裝「IIS管理控制檯」,它解決了這個問題。

發生這種情況是因爲IISConfigurator.exe嘗試使用對「Microsoft.Web.Administration,Version = 7.0.0.0 ...」的引用,而在安裝管理控制檯之前我沒有這樣做。

+0

這節省了我幾個小時的麻煩拍攝...救生員。謝謝! – christophersw 2012-11-03 03:07:45

+2

也爲我工作,謝謝!我使用了控制面板>添加/刪除Windows功能來安裝「IIS管理控制檯」並解決了問題。 – Michael 2012-12-24 02:33:54