由于某些未知原因,我在尝试发布云服务时遇到此错误。 (我显示已登录到visual studio,但向导似乎无法识别这一点 - 向导的第1步有一个链接“重新输入凭据” - 这也会出现此错误)
服务很简单:只需一个网络角色。
我按照以下顺序尝试了我能想到的一切:
任何帮助/指针都会非常受欢迎,我很难过 - 而且我遇到了一个我无法发布的云服务!!!
这是我的视觉工作室信息:
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.
答案 0 :(得分:3)
好的,所以纯粹的机会(经过多次挫折 - 大部分时间浪费了),我点击进入"管理"订阅对话框(此处为蓝色项目:)
这有一个链接让我退出,然后当我再次登录时,一切都很好......很奇怪,因为"重新输入您的凭据"主要对话框上的链接并没有解决问题...哦 - 很好 - 发布在这里以防其他一些可怜的草皮有同样的问题:希望它能节省你一些时间!
答案 1 :(得分:0)
我过去曾遇到过同样的问题。 VS 2015抛出此错误,但VS 2017没有。在小提琴手的帮助下,我找到了它的根本原因。 VS 2015试图对我不再访问的租户进行身份验证。现在,当我说访问时,可能有很多原因。就像,当我尝试使用我的组织帐户进行身份验证时,我在fiddler日志中看到“用户被禁用”错误。所以我让我的管理员启用我的帐户,从那以后它对我来说很好。
同样,我的个人帐户也遇到了同样的问题。但这一次,我在fiddler日志中看不到任何错误。但是,通过提琴手,我知道VS 2015使用哪个租户来验证我的帐户。然后我登录Azure门户,发现我没有在该租户上分配给我的任何限制。所以我要求该租户的管理员将我从这个租户中完全删除。一旦发生这一切,一切正常。
所以我相信,问题是,VS 2015总是尝试验证您无法访问的帐户,这就是我们收到错误的原因。
提琴手痕迹
1)第一个http呼叫返回与您的帐户关联的所有租户的列表。 2)后续调用清楚地告诉您哪个tenantId用于验证。 3)并且,其中一个电话也会告诉你实际的AD错误(如果有的话)
这有助于解决这个问题。