【问题标题】:CommunicationObjectFaultedException when debugging Azure调试 Azure 时出现 CommunicationObjectFaultedException
【发布时间】: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) 内部异常:

【问题讨论】:

标签: debugging azure


【解决方案1】:

对我来说,问题在于我的调试启动项目被设置为包项目(即包含服务定义文件的项目),而不是我的 Web 角色之一。 (这在我更换机器时被重置。)右键单击 Web 角色并选择“设置为启动项目”修复了错误。

如果您没有注意到上面的评论,@smarx 还提到相同错误的常见原因是只读 web.config 文件并指向http://msdn.microsoft.com/en-us/library/gg494981.aspx。该链接还提到了其他几个相关原因。

【讨论】:

    猜你喜欢
    • 2021-02-24
    • 2011-11-20
    • 1970-01-01
    • 1970-01-01
    • 2012-10-12
    • 2016-12-20
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多