连接时从Visual Studio部署到Azure失败 [英] Deploying to Azure from Visual Studio fails when connecting
问题描述
我一直在使用Visual Studio将Web服务部署到Azure.下载了我的发布个人资料以启用该功能,并且在过去几周内一切正常.
I have been using Visual Studio to deploy a Web Service to Azure; downloaded my publish profile to enable that and it was working fine for the past few weeks.
今天我尝试部署更新,现在所有部署都失败,并显示以下内容:
Today I tried to deploy an update and now all my deployments fail with the following:
17:25:03-使用服务管理URL' https://management.core.windows.net/'...
17:25:03-正在连接...
17:25:04-对象引用未设置为对象的实例.
17:25:04-部署失败并出现致命错误
17:25:03 - Preparing deployment for WindowsAzure1 - 25/03/2013 17:24:53 with Subscription ID 'xxx' using Service Management URL 'https://management.core.windows.net/'...
17:25:03 - Connecting...
17:25:04 - Object reference not set to an instance of an object.
17:25:04 - Deployment failed with a fatal error
我不确定这里出了什么问题;这说明它无法连接到服务管理URL?
I'm not sure what's failing here; is this saying it's unable to connect to the Service Management URL?
上周,我在Azure上安装了SSL证书,但现在看不到用于下载发布设置的选项.我知道它曾经在那里,但现在不存在.使用SSL是否会阻止我以某种方式连接到管理页面?
Last week I installed an SSL certificate on Azure and now I'm not seeing the option to download my publish settings. I know it used to be there but isn't now. Does having an SSL prevent me from somehow connecting to the management page?
修改
在下班之前,我删除了证书,但是当我检查PublishProfile
时,它仍然没有显示.
Edit
Before leaving work I removed the certificate but when I then checked for the PublishProfile
it was still not showing.
发布配置文件不适用于订阅的任何其他用户-因此,我认为它与我的登录名无关.
The PublishProfile is not available for any of the other users attached to the subscription - so I don't think it's related to my login.
编辑2
更加激烈;现在,我从头开始尝试删除存储和服务.通过删除已导入到Visual Studio的订阅,然后单击登录以下载凭据"链接,创建了一个新的publishsettings
文件.接下来,我在Azure中创建了新的服务和存储,并尝试发布,但是在与
Edit 2
A bit more drastic; I've now tried deleting my storage and service, to start from scratch. I created a new publishsettings
file by removing the subscriptions already imported into Visual Studio and then following the link to "Sign in to download credentials". Next I created a new service and storage in Azure and tried to publish but the deployment still fails when connecting with
对象引用未设置为对象的实例
Object reference not set to an instance of an object
我不知道我还能尝试什么,什么可能是错误的,或者在哪里寻找答案.
I have no idea what else I could try or what could be wrong, or where to look to find out.
推荐答案
在我的情况下,问题是我的解决方案Cloud项目具有我在ServiceDefinition.csdef
和ServiceConfiguration.Cloud.cscfg
中上传的SSL证书的指纹. .在我的第一次编辑中,我说过我已经从Azure删除了证书,但是还没有从项目文件中删除它.注释掉它们使我可以再次从Visual Studio发布.
The problem, in my case, was that my solution Cloud project had the thumbprint of the SSL certificate I'd uploaded in its ServiceDefinition.csdef
and ServiceConfiguration.Cloud.cscfg
. In my first edit I said that I'd removed the certificate from Azure, but hadn't then removed it from the project files; commenting them out allowed me to publish from Visual Studio again.
但是我不确定为什么会发生这种情况,我已将证书上传到Azure,并且能够在FireFox中通过https连接到我的服务,因此SSL处于正常运行"状态.
I'm not sure why this happened though, I had uploaded the certificate to Azure and was able to connect to my service on https in FireFox so the SSL was "working".
这篇关于连接时从Visual Studio部署到Azure失败的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!