【发布时间】:2011-02-04 15:02:01
【问题描述】:
尝试在其他功能完美的 Azure 项目上启动调试器时,什么会导致发生以下异常?
System.ServiceModel.CommunicationObjectFaultedException 未处理 Message=The 通讯对象, System.ServiceModel.Channels.ServiceChannel, 不能用于通讯 因为它处于故障状态。
来源=mscorlib 堆栈跟踪: 服务器堆栈跟踪: 在 System.ServiceModel.Channels.CommunicationObject.Close(时间跨度 暂停) 在 [0] 处重新抛出异常: 在 System.Runtime.Remoting.Proxies.RealProxy.HandleReturnMessage(IMessage reqMsg, IMessage retMsg) 在 System.Runtime.Remoting.Proxies.RealProxy.PrivateInvoke(消息数据& msgData,Int32 类型) 在 System.ServiceModel.ICommunicationObject.Close(时间跨度 暂停) 在 System.ServiceModel.ClientBase`1.System.ServiceModel.ICommunicationObject.Close(时间跨度 暂停) 在 Microsoft.WindowsAzure.Hosts.WaIISHost.Program.Main(字符串 [] args) 内部异常:
【问题讨论】:
-
常见原因是只读的 web.config。见msdn.microsoft.com/en-us/library/gg494981.aspx。