Azure HTTPS端点本地调试崩溃w /“附加调试器时出错”

时间:2013-08-02 23:19:04

标签: azure https azure-web-roles

我在VS2012中使用Windows 7企业版,Azure SDK 2.0,Azure Web角色项目。

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

  

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

只要我删除https端点,或将enpoint类型更改为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)'

1 个答案:

答案 0 :(得分:0)

现在第4次我修复了一个天蓝色的“附加调试器”错误(出于各种原因)这个过程,这就是你解决这个问题的方法。

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

  1. 如果您不是最新的,请下载最新版本的Azure SDK
  2. 从解决方案中删除您的azure项目
  3. 在解决方案中创建一个全新的云/天蓝色项目
  4. 将旧项目中的设置复制到新项目中(但不能复制/粘贴整个cscfg / csdef文件 - 其中包含特定于azure-version的内容。仅复制您需要的特定行。)
相关问题