2012-05-02 93 views
0

我建立了一個應該在本地運行我的azure項目的環境。waiishost在部署時崩潰

它從一個簡單的批處理文件:

E: 
cd "E:\Procurement\Source\Procurement\trunk\Azure_Procurement\Azure_Procurement" 
MSBuild.exe Azure_Procurement.ccproj /p:PackageForComputeEmulator=true /p:PackageWebRole=False 
MSBuild.exe Azure_Procurement.ccproj /t:Publish 
"C:\Program Files\Windows Azure Emulator\emulator\CSRun.exe" "E:\Procurement\Source\Procurement\trunk\Azure_Procurement\Azure_Procurement\csx\Release" "E:\Procurement\Source\Procurement\trunk\Azure_Procurement\Azure_Procurement\bin\Release\ServiceConfiguration.cscfg" 

當我運行這個文件,我的項目被編譯並部署到IIS。 然而,幾秒鐘後,模擬主機崩潰,我設法讓我的手以下信息:

Problem signature: 
    Problem Event Name: CLR20r3 
    Problem Signature 01: waiishost.exe 
    Problem Signature 02: 1.6.0.0 
    Problem Signature 03: 4eb3102e 
    Problem Signature 04: System.ServiceModel 
    Problem Signature 05: 4.0.0.0 
    Problem Signature 06: 4d930801 
    Problem Signature 07: 573e 
    Problem Signature 08: 1bd 
    Problem Signature 09: KFM023AO4DTNWT0EKMSKUWE5BRORH3FC 
    OS Version: 6.1.7601.2.1.0.272.7 
    Locale ID: 1053 
    Additional Information 1: af3a 
    Additional Information 2: af3a02be113369c664147fe8f0201429 
    Additional Information 3: 9edf 
    Additional Information 4: 9edf9a509c5231db61e45a805b3d35ff 

異常消息: 方法失敗,出現意外錯誤代碼3.

Stack Trace: 
    at System.Security.AccessControl.NativeObjectSecurity.CreateInternal(ResourceType resourceType, Boolean isContainer, String name, SafeHandle handle, AccessControlSections includeSections, Boolean createByName, ExceptionFromErrorCode exceptionFromErrorCode, Object exceptionContext) 
    at System.Security.AccessControl.DirectorySecurity..ctor(String name, AccessControlSections includeSections) 
    at System.IO.DirectoryInfo.GetAccessControl(AccessControlSections includeSections) 
    at Microsoft.WindowsAzure.ServiceRuntime.IISConfigurator.FileManager.AddAllowAceIterative(DirectoryInfo dir, FileSystemRights rights, IdentityReference[] accounts) 
    at Microsoft.WindowsAzure.ServiceRuntime.IISConfigurator.FileManager.AddAllowAce(DirectoryInfo dir, FileSystemRights rights, Boolean inherit, IdentityReference[] accounts) 
    at Microsoft.WindowsAzure.ServiceRuntime.IISConfigurator.Security.AddAppPoolSidAceToVdir(String appPoolName, String sitePath, String appPoolSid) 
    at Microsoft.WindowsAzure.ServiceRuntime.IISConfigurator.IISConfigurator.Deploy(String roleId, WebAppModel appModel, String roleRootDirectory, String sitesDestinationDirectory, String diagnosticsRootFolder, String roleGuid, Dictionary`2 globalEnvironment) 
    at SyncInvokeDeploy(Object , Object[] , Object[]) 
    at System.ServiceModel.Dispatcher.SyncMethodInvoker.Invoke(Object instance, Object[] inputs, Object[]& outputs) 
    at System.ServiceModel.Dispatcher.DispatchOperationRuntime.InvokeBegin(MessageRpc& rpc) 
    at System.ServiceModel.Dispatcher.ImmutableDispatchRuntime.ProcessMessage5(MessageRpc& rpc) 
    at System.ServiceModel.Dispatcher.ImmutableDispatchRuntime.ProcessMessage4(MessageRpc& rpc) 
    at System.ServiceModel.Dispatcher.MessageRpc.Process(Boolean isOperationContextSet) 

的項目運行時,我用Visual Studio調試它,甚至當我在另一臺服務器上運行相同的批處理腳本時,它運行。

在此先感謝!

+0

找到解決方案! 當我允許時,我會發布它作爲答案! (Rep低於100 =無法在我發佈問題後的8小時內回答我自己的問題) – DOOMDUDEMX

+0

您現在應該能夠回去發佈您的答案。這將清理這個問題。 –

+0

@DOOMDUDEMX如何將您的shell與Azure SDK 2.1一起使用? –

回答

1

我找到了解決方案!

錯誤是由嘗試通過天青診斷激活WCF跟蹤導致的。 正如在Stacktrace中看到的,「System.ServiceModel」中的錯誤(對於任何不知道的人都是WCF的一部分),它是由我的web.config中的錯誤引起的。 除此之外,我還忘記了我的腳本指向使用「Release」-buildconfiguration編譯的構建,而實際上我正在使用「Debug」配置進行編譯。

+0

我有一個類似的問題,我不斷回來。什麼是你的webconfig導致上述異常的問題? – TBD

+0

不幸的是,我發佈了這個問題後,我改變了工作機會,並在一些不同的項目上工作,我甚至無法再訪問這個項目。 我建議您刪除Web.config中指定的任何日誌記錄/跟蹤,並且如果您的調試和發佈版本配置有不同的配置文件,請確保在正確的配置文件中進行更改。 – DOOMDUDEMX