打开服务配置进行编辑时,Visual Studio 2013崩溃

时间:2014-08-29 18:04:05

标签: azure visual-studio-2013

我使用的是Visual Studio 2013专业版12.0.30723.00 Update 3,并且刚刚安装了最新的Azure SDK 2.4。当我尝试在visual studio 2013中打开用于编辑Web角色或辅助角色项目的服务配置的UI时,我得到一个空白的弹出窗口和我们本地Active Directory服务器的Windows安全登录提示。如果我取消此窗口或使用我的凭据登录,Visual Studio会立即崩溃。 Screenshot here. 查看Windows事件日志,我看到两个错误:

Application: devenv.exe
Framework Version: v4.0.30319
Description: The process was terminated due to an unhandled exception.
Exception Info: System.AggregateException
Stack:
    at System.Runtime.CompilerServices.AsyncMethodBuilderCore.<ThrowAsync>b__4(System.Object)
    at System.Windows.Threading.ExceptionWrapper.InternalRealCall(System.Delegate, System.Object, Int32)
    at MS.Internal.Threading.ExceptionFilterHelper.TryCatchWhen(System.Object, System.Delegate, System.Object, Int32, System.Delegate)
    at System.Windows.Threading.DispatcherOperation.InvokeImpl()
    at System.Windows.Threading.DispatcherOperation.InvokeInSecurityContext(System.Object)
    at System.Threading.ExecutionContext.RunInternal(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object, Boolean)
    at System.Threading.ExecutionContext.Run(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object, Boolean)
    at System.Threading.ExecutionContext.Run(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object)
    at System.Windows.Threading.DispatcherOperation.Invoke()
    at System.Windows.Threading.Dispatcher.ProcessQueue()
    at System.Windows.Threading.Dispatcher.WndProcHook(IntPtr, Int32, IntPtr, IntPtr, Boolean ByRef)
    at MS.Win32.HwndWrapper.WndProc(IntPtr, Int32, IntPtr, IntPtr, Boolean ByRef)
    at MS.Win32.HwndSubclass.DispatcherCallbackOperation(System.Object)
    at System.Windows.Threading.ExceptionWrapper.InternalRealCall(System.Delegate, System.Object, Int32)
    at MS.Internal.Threading.ExceptionFilterHelper.TryCatchWhen(System.Object, System.Delegate, System.Object, Int32, System.Delegate)
    at System.Windows.Threading.Dispatcher.LegacyInvokeImpl(System.Windows.Threading.DispatcherPriority, System.TimeSpan, System.Delegate, System.Object, Int32)
    at MS.Win32.HwndSubclass.SubclassWndProc(IntPtr, Int32, IntPtr, IntPtr)

Faulting application name: devenv.exe, version: 12.0.30723.0, time stamp: 0x53cf6f00
Faulting module name: KERNELBASE.dll, version: 6.3.9600.17055, time stamp: 0x532943a3
Exception code: 0xe0434352
Fault offset: 0x00011d4d
Faulting process id: 0x1b74
Faulting application start time: 0x01cfc3a88ba59f99
Faulting application path: C:\Program Files (x86)\Microsoft Visual Studio 12.0\Common7\IDE\devenv.exe
Faulting module path: C:\WINDOWS\SYSTEM32\KERNELBASE.dll
Report Id: dd94972d-2fa1-11e4-be79-8851fb6ba868
Faulting package full name: 
Faulting package-relative application ID: 

这发生在一个新的空白项目上。我不知道为什么服务配置UI需要连接到我们的AD服务器;我正在研究的项目没有AD集成。

1 个答案:

答案 0 :(得分:0)


2014年9月30日更新

问题显然源于身份验证过程。

如果您在Azure上使用公司电子邮件作为用户名,则固有域名将导致身份验证方法将您重定向到公司的Active Directory。

可以通过在Azure上选择其他电子邮件作为用户名来解决问题。

通过使用Azure Active Directory设置具有身份验证的网站,也可以复制此问题。在通过Azure AD登录期间,您在用户名中输入域名的确切时刻,登录屏幕会将您从Azure AD重定向到sts。[email domain name]上的AD - 因此登录失败。使用不同的用户名,Azure AD身份验证可以完美运行。


我遇到了完全相同的问题,并且找到了一个好的解决方案。

通过更改引用并手动编辑不同的配置和项目文件,手动将项目降级为 Microsoft Azure SDK for .NET(VS 2013) - 2.3 并未解决问题,仍然崩溃。

我最终卸载了所有 Microsoft Azure SDK for .NET(VS 2013) - 2.4 组件并创建了一个新项目,从问题项目中迁移所有代码。这个新项目无需IDE崩溃即可运行。

注意! 重新安装 Microsoft Azure SDK for .NET(VS 2013) - 2.4 不会在现有2.3项目中重新引入IDE崩溃问题。但是,即使是在新安装的v2.4上创建的新云项目仍然存在IDE崩溃问题。

相关问题