【发布时间】:2014-10-30 16:03:37
【问题描述】:
我有一些设置和拆卸脚本,它们使用 csrun.exe 为一些自动化测试准备本地计算模拟器。
C:\Program Files\Microsoft SDKs\Azure\Emulator\csrun.exe /removeall C:\Program Files\Microsoft SDKs\Azure\Emulator\csrun.exe /devfabric:clean C:\Program Files\Microsoft SDKs\Azure\Emulator\csrun.exe /run:"c:\myapp\csx\Release";"c:\myapp\bin\Release\app.publish\ServiceConfiguration.Local.cscfg"对 removeall 的 csrun 调用不一致地失败并出现以下错误:
遇到意外错误通信对象 System.ServiceModel.Channels.ServiceChannel 无法用于通信,因为它处于故障状态。 服务器堆栈跟踪: 在 System.ServiceModel.Channels.CommunicationObject.Close(时间跨度超时) 在 [0] 处重新抛出异常: 在 System.Runtime.Remoting.Proxies.RealProxy.HandleReturnMessage(IMessage reqMsg,IMessage retMsg) 在 System.Runtime.Remoting.Proxies.RealProxy.PrivateInvoke(MessageData& msgData,Int32 类型) 在 System.IDisposable.Dispose() 在 Microsoft.ServiceHosting.Tools.DevelopmentFabric.SingleInstanceFabricClient.Connect() 在 Microsoft.ServiceHosting.Tools.DevelopmentFabric.DevFabric.EnsureClient(布尔检查连接) 在 Microsoft.ServiceHosting.Tools.DevelopmentFabric.DevFabric.d__0.MoveNext() 在 Microsoft.ServiceHosting.Tools.CloudServiceRun.DoActions.RemoveAll() 在 Microsoft.ServiceHosting.Tools.CloudServiceRun.DoActions.ParseArguments(字符串 [] args,布尔 doActions) 在 Microsoft.ServiceHosting.Tools.CloudServiceRun.DoActions.ExecuteActions(String[] args)。部署的 csrun 调用也不一致地失败并出现相同的错误(堆栈跟踪略有不同):
遇到意外错误通信对象 System.ServiceModel.Channels.ServiceChannel 无法用于通信,因为它处于故障状态。 服务器堆栈跟踪: 在 System.ServiceModel.Channels.CommunicationObject.Close(时间跨度超时) 在 [0] 处重新抛出异常: 在 System.Runtime.Remoting.Proxies.RealProxy.HandleReturnMessage(IMessage reqMsg,IMessage retMsg) 在 System.Runtime.Remoting.Proxies.RealProxy.PrivateInvoke(MessageData& msgData,Int32 类型) 在 System.IDisposable.Dispose() 在 Microsoft.ServiceHosting.Tools.DevelopmentFabric.SingleInstanceFabricClient.RunServiceDeployment(字符串租户名称) 在 Microsoft.ServiceHosting.Tools.DevelopmentFabric.Deployment.Start() 在 Microsoft.ServiceHosting.Tools.CloudServiceRun.DoActions.Run(DirectoryInfo 目录,FileInfo serviceConfiguration,布尔启动浏览器,布尔暂停,字符串调试器,布尔 useIISExpress,列表`1 portOverrides) 在 Microsoft.ServiceHosting.Tools.CloudServiceRun.DoActions.ParseArguments(字符串 [] args,布尔 doActions) 在 Microsoft.ServiceHosting.Tools.CloudServiceRun.DoActions.ExecuteActions(String[] args)。这是计算模拟器 v2.4。
我已确认 web.config 是可写且有效的。 (正如this thread 所建议的那样。)
我在另一台机器上进行了类似的设置,没有任何问题。我知道的唯一区别是工作机器有一个单核 CPU,而这个失败的是双核。
【问题讨论】:
-
您是否解决了这个问题,因为我刚刚开始收到此错误?
-
我也刚开始得到这个,可以通过在我的云服务设置中删除 https 端点来解决它。我每月的天蓝色信用额度用完了,我怀疑这与它有关。
-
通过将虚拟机移动到另一台主机来修复它
-
我从未修复过它,同样我只是切换了哪些构建+测试在哪些虚拟机上运行。
标签: azure