【问题标题】:Azure HTTPS Endpoint Local Debug Crash w/ "Error Attaching the Debugger"带有“附加调试器时出错”的 Azure HTTPS 终结点本地调试崩溃
【发布时间】:2013-08-02 23:19:03
【问题描述】:

我使用的是 Windows 7 Enterprise、Azure SDK 2.0、VS2012 中的 Azure Web Role Project。

在我的 Azure Cloud Project 属性的端点部分添加 https 端点后,我立即收到以下错误:

将调试器附加到角色实例时出错。无法附加。调用的对象已与其客户端断开连接。

只要我删除 https 端点,或将端点类型更改为 http,一切正常。我也试过在大于 1000+ 的端口上运行 https,还是不行。

它部署得很好,而且证书显然都很好。

有什么想法吗?

编辑

我的 IISConfigurator.log 如下所示:

IISConfigurator Information: 0 : [00000908:00000005, 2013/08/02 23:16:52.448, INFO ] Adding binding 127.255.0.0:82: to site deployment20(284).Widget.AzureProjV2.Widget.Web_IN_0_Web
IISConfigurator Information: 0 : [00000908:00000005, 2013/08/02 23:16:52.448, INFO ] Adding binding 127.255.0.0:446: to site deployment20(284).Widget.AzureProjV2.Widget.Web_IN_0_Web
IISConfigurator Information: 0 : [00000908:00000005, 2013/08/02 23:16:53.211, ERROR] Caught exception
IISConfigurator Information: 0 : [00000908:00000005, 2013/08/02 23:16:53.213, ERROR] Exception:System.Runtime.InteropServices.COMException (0x800401F3): Invalid class string (Exception from HRESULT: 0x800401F3 (CO_E_CLASSSTRING))

Server stack trace: 
   at Microsoft.Web.Administration.Interop.IAppHostProperty.get_Value()
   at Microsoft.Web.Administration.ConfigurationElement.GetPropertyValue(IAppHostProperty property)
   at Microsoft.Web.Administration.Binding.get_CertificateHash()
   at Microsoft.Web.Administration.BindingCollection.Add(Binding binding)
   at Microsoft.WindowsAzure.ServiceRuntime.IISConfigurator.WasManager.DeploySite(String roleId, WASite roleSite, String appPoolName, String sitePath, String iisLogsRootFolder, String failedRequestLogsRootFolder, List`1 bindings, List`1 protocols, FileManager fileManager, WAAppPool defaultAppPoolSettings, String roleGuid, String& appPoolSid, List`1 appPoolsAdded, String configPath)
   at System.Runtime.Remoting.Messaging.StackBuilderSink._PrivateProcessMessage(IntPtr md, Object[] args, Object server, Object[]& outArgs)
   at System.Runtime.Remoting.Messaging.StackBuilderSink.SyncProcessMessage(IMessage msg)

Exception rethrown at [0]: 
   at System.Runtime.Remoting.Proxies.RealProxy.HandleReturnMessage(IMessage reqMsg, IMessage retMsg)
   at System.Runtime.Remoting.Proxies.RealProxy.PrivateInvoke(MessageData& msgData, Int32 type)
   at Microsoft.WindowsAzure.ServiceRuntime.IISConfigurator.WasContainer.DeploySite(String roleId, WASite roleSite, String appPoolName, String sitePath, String iisLogsRootFolder, String failedRequestLogsRootFolder, List`1 bindings, List`1 protocols, FileManager fileManager, WAAppPool defaultAppPoolSettings, String roleGuid, String& appPoolSid, List`1 appPoolsAdded, String configPath)
   at Microsoft.WindowsAzure.ServiceRuntime.IISConfigurator.IISConfigurator.Deploy(String roleId, WebAppModel webAppModel, String roleRootDirectory, String sitesDestinationRootDirectory, String diagnosticsRootDirectory, String roleGuid, String configPath)


IISConfigurator Information: 0 : [00000908:00000007, 2013/08/02 23:16:57.399, INFO ] Clean operation called over WCF interface with prefix 'deployment20(284)'

【问题讨论】:

    标签: azure https azure-web-roles


    【解决方案1】:

    现在我已经第四次修复了这个过程中的天蓝色“附加调试器”错误(出于各种不同的原因),这里是你如何解决这个问题。

    实际上,我的经验证明这是您修复每个“附加调试器”错误的方法。

    1. 如果您不是最新版本,请下载最新版本的 Azure SDK
    2. 从您的解决方案中删除您的 azure proj
    3. 在解决方案中创建全新的云/天蓝色项目
    4. 将旧项目中的设置复制到新项目中(但不能通过复制/粘贴整个 cscfg/csdef 文件的方式进行 - 那里有特定于 azure-version 的内容。只复制您需要的特定行。)

    【讨论】:

      猜你喜欢
      • 2016-04-25
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2022-07-14
      • 1970-01-01
      相关资源
      最近更新 更多