简体   繁体   English

Windows Azure发布网站 - “无法获取订阅信息。已添加具有相同密钥的项目“

[英]Windows Azure Publish Website- “Unable to get subscription information. An item with the same key has already been added”

I'm following this tutorial here http://www.windowsazure.com/en-us/develop/net/tutorials/get-started/#nextsteps 我在这里关注本教程http://www.windowsazure.com/en-us/develop/net/tutorials/get-started/#nextsteps

I'm at step 3. I click import, I can see I'm signed in with my MSDN ultimate account (I get $150 per month to spend on Azure). 我在第3步。我点击导入,我可以看到我已经使用我的MSDN终极帐户登录(我每月花费150美元在Azure上花费)。 I then click New, and when the dialogue opens I cannot enter anything (all boxes are disabled), along with an error message in red: 然后我单击“新建”,当对话框打开时,我无法输入任何内容(所有框都被禁用),以及红色的错误消息:

http://gyazo.com/17eb15f07d54e2867cd5f21d377f04aa http://gyazo.com/17eb15f07d54e2867cd5f21d377f04aa

Why is this? 为什么是这样? It is something with my MSDN account? 这是我的MSDN帐户的东西?

This is a bug in Visual Studio 2013. Found an answer posted here : 这是Visual Studio 2013中的一个错误。在此处发现了一个答案:

To workaround the issue, you can try the following: 要解决此问题,您可以尝试以下操作:

  1. In Server Explorer, right-click Windows Azure node > Manage Subscriptions 在服务器资源管理器中,右键单击“Windows Azure节点”>“管理订阅”
  2. If you are signed-in to Azure, you will see the same subscription show up both in the Accounts tab and in the Certificates tab. 如果您已登录Azure,您将在“帐户”选项卡和“证书”选项卡中看到相同的订阅。 Remove the one in the Certificates tab. 删除“证书”选项卡中的一个。

You can get also this problem if your MS account is registered with more than one Azure subscription. 如果您的MS帐户注册了多个Azure订阅,也可以解决此问题。 It appears Visual studio gets confused if your account is attached to more than one subscription and tries to use the wrong one for accessing the Azure API. 如果您的帐户附加到多个订阅并尝试使用错误的订阅来访问Azure API,则Visual Studio似乎会感到困惑。

If it occurs you need to ignore the advice from @Dev Trails and instead do the following: 如果发生这种情况,您需要忽略来自@Dev Trails的建议,而是执行以下操作:

  1. In Server Explorer, right-click Windows Azure node > Manage Subscriptions 在服务器资源管理器中,右键单击“Windows Azure节点”>“管理订阅”

  2. In the Certificates tab Import a new subscription certificate (this will take you to the current link on the Azure portal to download your certificate) 在“证书”选项卡中导入新的订阅证书(这将带您进入Azure门户上的当前链接以下载证书)

  3. In the Subscriptions tab, on the specific subscription that fails, select the drop-down and choose the certificate instead of the username. 在“订阅”选项卡中,在失败的特定订阅上,选择下拉列表并选择证书而不是用户名。

Refreshing the Azure explorer should now show your databases etc without error. 刷新Azure资源管理器现在应该显示您的数据库等没有错误。

VS 2015: delete all MS Account from VS. VS 2015:从VS删除所有MS帐户。 Add once again. 再次添加。

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 Windows Azure:“已添加具有相同键的项目。” Select引发异常 - Windows Azure: “An item with the same key has already been added.” exception thrown on Select 将vs项目发布到Azure时出错“已添加具有相同键的项目” - Error while publishing a vs project to Azure “An item with the same key has already been added” Azure Function OpenAPI - 已添加错误相同的密钥 - Azure Function OpenAPI - Error same key has already been added Azure 数据工厂管道复制数据错误。 将 CSV 导入 SQL 表。 已添加具有相同键的项目 - Azure Data Factory Pipeline Copy Data Error. Importing CSV to SQL Table. An item with the same key has already been added Azure 数据工厂 V2 复制数据问题 - 错误代码:2200 已添加具有相同密钥的项目 - Azure data factory V2 copy data issue - error code: 2200 An item with the same key has already been added 当我尝试通过 AzAD 模块创建新的客户端密码时出现“已添加具有相同密钥的项目”错误 - Getting "An item with the same key has already been added" Error when I try to create a new client secret via AzAD module 无法在Windows Azure中发布 - Unable to publish in windows azure 条目(数据库)已经添加 - The entry (Database) has already been added 无法将.SVG文件发布到Azure网站 - Unable to Publish .SVG File to Azure Website 对 Azure 中的 APIM 实例使用相同的订阅密钥 - Use same subscription key for APIM instances in Azure
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM