尝试将WebApi发布到Azure时出现问题。它崩溃并重新启动我的Visual Studio。我修复了Visual Studio 2015,获得了Azure Tools,更新到了Azure Tools 2.9和Visual Studio Update 2,但它一直在崩溃。 以下是我得到的日志:
<entry>
<record>745</record>
<time>2016/04/05 12:27:47.430</time>
<type>Information</type>
<source>VisualStudio</source>
<description>Begin package load [CommonAzureToolsPackage]</description>
<guid>{1E863AE9-93F6-42FD-A301-D3391F876208}</guid>
</entry>
<entry>
<record>746</record>
<time>2016/04/05 12:27:47.529</time>
<type>Information</type>
<source>VisualStudio</source>
<description>Entering function CVsPackageInfo::HrInstantiatePackage</description>
<guid>{9C987E78-F0BF-45CA-9BA5-96D3E4B2BAC6}</guid>
</entry>
<entry>
<record>747</record>
<time>2016/04/05 12:27:47.529</time>
<type>Warning</type>
<source>VisualStudio</source>
<description>Appid denied the loading of package</description>
<guid>{9C987E78-F0BF-45CA-9BA5-96D3E4B2BAC6}</guid>
</entry>
<entry>
<record>748</record>
<time>2016/04/05 12:27:47.529</time>
<type>Warning</type>
<source>VisualStudio</source>
<description>Package failed to load; error message suppressed by skip flag</description>
<guid>{9C987E78-F0BF-45CA-9BA5-96D3E4B2BAC6}</guid>
</entry>
<entry>
<record>749</record>
<time>2016/04/05 12:27:48.125</time>
<type>Error</type>
<source>VisualStudio</source>
<description>SetSite failed for package [CommonAzureToolsPackage][Object reference not set to an instance of an object.]:{ at Microsoft.VisualStudio.WindowsAzure.CommonAzureTools.Authentication.KeychainUtil.<<SetAccountManager>b__0>d__1.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
 at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
 at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
 at Microsoft.VisualStudio.WindowsAzure.CommonAzureTools.Authentication.KeychainUtil.<GetVSAccountProviderAsync>d__4.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
 at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
 at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
 at Microsoft.VisualStudio.WindowsAzure.CommonAzureTools.KeychainEndpointProvider.<GetInstanceAsync>d__0.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
 at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
 at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
 at Microsoft.VisualStudio.WindowsAzure.CommonAzureTools.EndpointProviderFactory.<CreateEndpointProviderList>d__3.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
 at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
 at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
 at Microsoft.VisualStudio.WindowsAzure.CommonAzureTools.EndpointProviderFactory.<GetEndpointProviderAsync>d__0.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
 at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
 at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
 at Microsoft.VisualStudio.WindowsAzure.CommonAzureTools.EndpointProviderFactory.GetEndpointProvider()
 at Microsoft.VisualStudio.WindowsAzure.CommonAzureTools.CommonAzureToolsPackage.<.ctor>b__1()
 at System.Lazy`1.CreateValue()
 at System.Lazy`1.LazyInitValue()
 at System.Lazy`1.get_Value()
 at Microsoft.VisualStudio.WindowsAzure.CommonAzureTools.CommonAzureToolsPackage.<.ctor>b__2()
 at System.Lazy`1.CreateValue()
 at System.Lazy`1.LazyInitValue()
 at System.Lazy`1.get_Value()
 at Microsoft.VisualStudio.WindowsAzure.CommonAzureTools.CommonAzureToolsPackage.<RegisterServices>b__61(IServiceContainer c, Type t)
 at Microsoft.VisualStudio.Shell.Package.GetService(Type serviceType)
 at Microsoft.VisualStudio.Shell.Package.System.IServiceProvider.GetService(Type serviceType)
 at Microsoft.VisualStudio.WindowsAzure.CommonAzureTools.IServiceProviderExtensions.GetService[InterfaceType,ServiceType](IServiceProvider serviceProvider)
 at Microsoft.VisualStudio.WindowsAzure.CommonAzureTools.ServerExplorer.AzureNodeStateManager.Initialize(IServiceProvider serviceProvider)
 at Microsoft.VisualStudio.WindowsAzure.CommonAzureTools.CommonAzureToolsPackage.InitializeAzureNodeStateManager()
 at Microsoft.VisualStudio.WindowsAzure.CommonAzureTools.CommonAzureToolsPackage.Initialize()
 at Microsoft.VisualStudio.Shell.Package.Microsoft.VisualStudio.Shell.Interop.IVsPackage.SetSite(IServiceProvider sp)}</description>
<guid>{1E863AE9-93F6-42FD-A301-D3391F876208}</guid>
<hr>80004003 - E_POINTER</hr>
<errorinfo>Object reference not set to an instance of an object.</errorinfo>
</entry>
<entry>
<record>750</record>
<time>2016/04/05 12:27:50.737</time>
<type>Error</type>
<source>VisualStudio</source>
<description>End package load [CommonAzureToolsPackage]</description>
<guid>{1E863AE9-93F6-42FD-A301-D3391F876208}</guid>
<hr>80004003 - E_POINTER</hr>
<errorinfo>Object reference not set to an instance of an object.</errorinfo>
</entry>
</activity>
答案 0 :(得分:0)
我经历过许多与Azure发布相关的VS崩溃。我说我在VS工作一年多的VS崩溃次数超过了自VS成立以来的时间。我会说他们在VS2015的过去6个月左右大部分已经消失了。
我可以说,我遇到的最大的崩溃防御工具是确保我使用Azure 之前进行身份验证,以使用与Azure交互的任何内容。我们遇到的另一个问题是使用与我们的域帐户同名的MS帐户,我们在AAD到来之前很久就创建了它们。