2015-06-01 151 views
1

由于某些未知原因,我现在在尝试发布我的云服务时遇到此错误。 (我显示为登录到Visual Studio中,但向导似乎没有认识到这一点 - 和向导的步骤1有一个链接到“重新输入凭据” - 这也给了这个错误)Azure云服务发布向导失败

enter image description here

该服务是一个简单的服务:只是一个Web角色。

我已经试过所有我能想到的,按以下顺序:

  • 重新启动计算机
  • 恢复解决方案
  • “清洁”项目
  • 重置上次已知的工作拷贝我的视觉工作室(2013年)根据this堆栈溢出回答

任何帮助/指针将非常ver Ÿ欢迎,我很难过 - 而且我坚持使用云服务,我无法发布!

这里是我的Visual Studio的信息:

Microsoft Visual Studio Professional 2013 
Version 12.0.31101.00 Update 4 
Microsoft .NET Framework 
Version 4.5.50938 

Installed Version: Professional 

LightSwitch for Visual Studio 2013 06177-004-0447006-02367 
Microsoft LightSwitch for Visual Studio 2013 

Team Explorer for Visual Studio 2013 06177-004-0447006-02367 
Microsoft Team Explorer for Visual Studio 2013 

Visual Basic 2013 06177-004-0447006-02367 
Microsoft Visual Basic 2013 

Visual C# 2013 06177-004-0447006-02367 
Microsoft Visual C# 2013 

Visual C++ 2013 06177-004-0447006-02367 
Microsoft Visual C++ 2013 

Visual F# 2013 06177-004-0447006-02367 
Microsoft Visual F# 2013 

Visual Studio 2013 Code Analysis Spell Checker 06177-004-0447006-02367 
Microsoft® Visual Studio® 2013 Code Analysis Spell Checker 

Portions of International CorrectSpell™ spelling correction system © 1993 by Lernout & Hauspie Speech Products N.V. All rights reserved. 

The American Heritage® Dictionary of the English Language, Third Edition Copyright © 1992 Houghton Mifflin Company. Electronic version licensed from Lernout & Hauspie Speech Products N.V. All rights reserved. 

Application Insights Tools for Visual Studio Package 1.0 
Application Insights Tools for Visual Studio 

ASP.NET and Web Tools 12.4.60425.0 
Microsoft Web Developer Tools contains the following components: 
Support for creating and opening ASP.NET web projects 
Browser Link: A communication channel between Visual Studio and browsers 
Editor extensions for HTML, CSS, and JavaScript 
Page Inspector: Inspection tool for ASP.NET web projects 
Scaffolding: A framework for building and running code generators 
Server Explorer extensions for Microsoft Azure Web Apps 
Web publishing: Extensions for publishing ASP.NET web projects to hosting providers, on-premises servers, or Microsoft Azure 

ASP.NET Web Frameworks and Tools 2012.2 4.1.21001.0 
For additional information, visit http://go.microsoft.com/fwlink/?LinkID=309563 

ASP.NET Web Frameworks and Tools 2013 5.2.21010.0 
For additional information, visit http://www.asp.net/ 

Common Azure Tools 1.4 
Provides common services for use by Azure Mobile Services and Microsoft Azure Tools. 

Microsoft Azure HDInsight HQL Service 2.0.1000.0 
Language service for Hive query 

Microsoft Azure HDInsight Tools for Visual Studio 2.0.1000.0 
An integrated development environment for HDInsight application development. 

Microsoft Azure Mobile Services Tools 1.3 
Microsoft Azure Mobile Services Tools 

Microsoft Azure Tools 2.6 
Microsoft Azure Tools for Microsoft Visual Studio 2013 - v2.6.30423.1601 

NuGet Package Manager 2.8.50926.663 
NuGet Package Manager in Visual Studio. For more information about NuGet, visit http://docs.nuget.org/. 

Office Developer Tools for Visual Studio 2013 ENU 12.0.30626 
Microsoft Office Developer Tools for Visual Studio 2013 ENU 

PreEmptive Analytics Visualizer 1.2 
Microsoft Visual Studio extension to visualize aggregated summaries from the PreEmptive Analytics product. 

SQL Server Data Tools 12.0.41012.0 
Microsoft SQL Server Data Tools 

Windows Phone 8.1 SDK Integration 1.0 
This package integrates the tools for the Windows Phone 8.1 SDK into the menus and controls of Visual Studio. 

Workflow Manager Tools 1.0 1.0 
This package contains the necessary Visual Studio integration components for Workflow Manager. 

回答

3

好了,纯属偶然(和太多的无奈之后 - 大多数每天浪费了),我点击进入“管理”对话框认购(中这里的蓝色项目:)

enter image description here

这有一个链接让我签字了,然后当我签了回来再次一切都OK了...奇怪,因为在“重新输入凭据”链接主要的对话没有解决问题...哦 - 在这里发布一些其他可怜的草皮也有同样的问题:希望它能为您节省一些时间!

+0

我必须这样做(谢谢你的建议!),但还不够。重新登录后,我必须关闭并重新打开发布对话框,然后才能列出我的订阅。 –

0

我在过去面临同样的问题。 VS 2015引发这个错误,但VS 2017没有。在小提琴手的帮助下,我找到了它的根本原因。 2015年的VS试图验证我的帐户对我无法再访问的租户。现在当我说访问时,可能有很多原因。就像当我尝试使用我的组织帐户进行身份验证时,在提琴手日志中看到“用户已禁用”错误。所以我要求我的管理员启用我的帐户,从那以后它对我来说工作得很好。

同样,我也遇到了与我的个人帐户相同的问题。但这一次,我看不到在提琴手日志中的任何错误。但是,通过小提琴手,我了解到VS 2015正在使用哪个租户来验证我的帐户。然后,我登录到Azure门户,发现我没有在该租户上分配给我的任何子类别。所以我请那个房客的管理员把我从这个房客里彻底清除掉。一旦发生,一切正常。

所以我认为,问题在于,VS 2015总是尝试验证您的帐户,而您无法再访问,这就是为什么我们会收到该错误。

提琴手痕迹

enter image description here

1)第一个HTTP调用返回与您的帐户相关联的所有租户的名单。 2)后续调用清楚地告诉您哪个tenantId正在用于认证。 3)而且,其中一个电话会告诉你实际的AD错误(如果有的话)

这就是它如何帮助解决这个问题。