[英]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: 要解决此问题,您可以尝试以下操作:
- In Server Explorer, right-click Windows Azure node > Manage Subscriptions 在服务器资源管理器中,右键单击“Windows Azure节点”>“管理订阅”
- 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的建议,而是执行以下操作:
In Server Explorer, right-click Windows Azure node > Manage Subscriptions 在服务器资源管理器中,右键单击“Windows Azure节点”>“管理订阅”
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门户上的当前链接以下载证书)
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.