Deployment WAISHOST在部署时崩溃

Deployment WAISHOST在部署时崩溃,deployment,azure,servicebus,Deployment,Azure,Servicebus,我已经设置了一个环境,应该在本地运行我的azure项目 它从一个简单的批处理文件开始: 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_Procureme

我已经设置了一个环境,应该在本地运行我的azure项目

它从一个简单的批处理文件开始:

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)
该项目在我使用VisualStudio调试时运行,甚至在另一台服务器上运行相同的批处理脚本时也可以运行

提前谢谢

我找到了解决办法

该错误是由试图通过azure诊断激活WCF跟踪引起的。 从stacktrace中可以看出,“System.ServiceModel”(对于任何不知道它是WCF的一部分的人来说)中出现了一些错误,这是由my web.config中的错误引起的。
除此之外,我还忘记了我的脚本指向使用“Release”-buildconfiguration编译的构建,而实际上我是使用“Debug”配置编译的。

找到了解决方案!当我被允许的时候,我会把它作为答案发布!(Rep below 100=在我发布问题后8小时内无法回答我自己的问题)您现在应该可以返回并发布您的答案。这将整理这个问题。@DOOMDUDEMX我如何将您的shell与Azure SDK 2.1一起使用?我一直在重复类似的问题。您的网络配置中具体是什么问题导致了上述异常?不幸的是,自从我发布此问题以来,我已经换了工作,并参与了许多不同的项目,我甚至无法再访问该项目。我建议您删除Web.config中指定的任何日志记录/跟踪,如果您的调试和发布版本配置有不同的配置文件,请确保更改正确。