Visual Studio 2015社区版在启动时崩溃

时间:2016-06-21 22:36:45

标签: c# visual-studio

我前几天正在清理我的文档文件夹,并且必须在下面意外删除此特定文件。 Visual Studio在启动后显示以下消息,然后在单击“确定”后崩溃。

我已经重新加载了三次通信版本,安装了Express版本(可以使用)。重新加载的SQL和.NET 4.6。我有一个活动日志,但无法理解它试图告诉我的内容。

我下载了Visual Studio安装清理工具,该工具擦除了160个项目,重新安装,但仍然会出现同样的问题。我在命令行尝试了devenv.exe / resetsettings选项。没有运气......

enter image description here

我发现活动日志包含多个错误,这些只是少数几个。 enter image description here

如果这只是一个丢失的vssettings文件的问题,为什么新安装没有创建一个?

更新06-22:在Anders提供新的vssettings文件之后。它启动到这一点,然后下降。

enter image description here

3 个答案:

答案 0 :(得分:1)

我花了三天时间耐心地尝试纠正Visual Studio无法正常工作的事实,因为我意外删除了vssettings.settings文件。当我收到该文件的副本时,它会更远,但每次启动时都会崩溃。

所以每次都无法启动VS2015时,我会反复重新安装和删除VS2015,结果不同......如果系统上有剩余的VS内容,安装程序几乎不知道如何进行全新安装。< / p>

查看应用程序事件日志

然后我在应用程序事件查看器中找到了它。 “无法找到Coloader80”

enter image description here

我在互联网上搜索了一篇帖子,发现有人发现你不仅需要卸载VS2015;但需要删除APPDATA本地和远程以及程序文件中的所有VS文件夹。我甚至去了visualstudiocommon文件夹。然后我通过add remove pgms摆脱了所有“重复”的C ++安装。

<强>解决方案

  1. 在计算机上卸载所有VS版本。社区,快递等。
  2. 通过添加/删除pgms摆脱所有C ++安装。
  3. 手动删除程序文件Visual Studio 10,12和14.0文件夹。
  4. 手动删除对VisualStudio有任何引用的Microsoft文件夹中的所有AppData本地和远程文件夹,注意这包括 VisualStudio.Common,它位于自己的文件夹中
  5. 重新安装VS2015
  6. 如果你这次有不同的错误,“修复”VS2015花费了很长时间。它会经历整个重新安装。
  7. 重新启动机器并启动VS ...加载了MEF组件,显示主菜单需要很长时间。
  8. 等待约5分钟或更长时间让一切安定下来
  9. 创建了一个新的UWP应用程序,下载DLLS的NUGET作业大约需要5分钟。
    1. 能够建立并运行新的UWP!是的......终于......
  10. 我不知道这种情况的根本原因,但发现了两个截然不同的问题:1)coloader80.dll丢失,2)Visual Studio只是试图启动崩溃。应用程序事件日志告诉我.net正在抛出未处理的异常。

    Application: devenv.exe
    Framework Version: v4.0.30319
    Description: The process was terminated due to an unhandled exception.
    Exception Info: System.Xml.XmlException
       at System.Xml.XmlTextReaderImpl.Throw(System.Exception)
       at System.Xml.XmlTextReaderImpl.ParseDocumentContent()
       at System.Xml.XmlTextReaderImpl.Read()
       at System.Xml.XmlTextReader.Read()
       at System.Configuration.XmlUtil..ctor(System.IO.Stream, System.String, Boolean, System.Configuration.ConfigurationSchemaErrors)
       at System.Configuration.BaseConfigurationRecord.InitConfigFromFile()
    
    Exception Info: System.Configuration.ConfigurationErrorsException
       at System.Configuration.ConfigurationSchemaErrors.ThrowIfErrors(Boolean)
       at System.Configuration.BaseConfigurationRecord.ThrowIfParseErrors(System.Configuration.ConfigurationSchemaErrors)
       at System.Configuration.BaseConfigurationRecord.ThrowIfInitErrors()
       at System.Configuration.ClientConfigurationSystem.OnConfigRemoved(System.Object, System.Configuration.Internal.InternalConfigEventArgs)
       at Microsoft.VisualStudio.Telemetry.WindowsErrorReporting.WatsonReport.GetClrWatsonExceptionInfo(System.Exception)
    
    Exception Info: System.Configuration.ConfigurationErrorsException
       at Microsoft.VisualStudio.Services.VsTask.InternalGetResult(Boolean)
       at Microsoft.VisualStudio.Services.VsTask.GetResult()
       at Microsoft.VisualStudio.Shell.Connected.ConnectedUser.ConnectedUserManager+<ResolveFWLinkThroughVsWebProxy>d__79.MoveNext()
       at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(System.Threading.Tasks.Task)
       at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(System.Threading.Tasks.Task)
       at Microsoft.VisualStudio.Shell.Connected.ConnectedUser.ConnectedUserManager+<ResolveFWLinkAsync>d__47.MoveNext()
       at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(System.Threading.Tasks.Task)
       at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(System.Threading.Tasks.Task)
       at Microsoft.VisualStudio.Shell.Connected.ConnectedUser.BaseUserContext+<PrepareToConnectAndComputeCodeMarker>d__57.MoveNext()
       at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(System.Threading.Tasks.Task)
       at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(System.Threading.Tasks.Task)
       at Microsoft.VisualStudio.Shell.Connected.ConnectedUser.BaseUserSession+<ConnectAsyncImpl>d__48.MoveNext()
       at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(System.Threading.Tasks.Task)
       at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(System.Threading.Tasks.Task)
       at Microsoft.VisualStudio.Shell.Connected.ConnectedUser.BaseUserSession+<ConnectAsync>d__37.MoveNext()
       at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(System.Threading.Tasks.Task)
       at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(System.Threading.Tasks.Task)
       at Microsoft.VisualStudio.Shell.Connected.ConnectedUser.BaseUserSession+<PollConnectAsync>d__49.MoveNext()
       at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(System.Threading.Tasks.Task)
       at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(System.Threading.Tasks.Task)
       at Microsoft.VisualStudio.Shell.Connected.ConnectedUser.Poller+<PollAsync>d__13.MoveNext()
       at System.Runtime.CompilerServices.AsyncMethodBuilderCore+<>c.<ThrowAsync>b__6_1(System.Object)
       at System.Threading.QueueUserWorkItemCallback.WaitCallback_Context(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.QueueUserWorkItemCallback.System.Threading.IThreadPoolWorkItem.ExecuteWorkItem()
       at System.Threading.ThreadPoolWorkQueue.Dispatch()
       at System.Threading._ThreadPoolWaitCallback.PerformWaitCallback()
    

    我希望这有助于将来......

答案 1 :(得分:0)

看起来您可以从不同的机器导入设置,请查看此链接。

https://msdn.microsoft.com/en-us/library/1x6229t8(VS.80).aspx

答案 2 :(得分:0)

上面第一条错误消息的解决方案是让某人给你一个vssettings文件。当它丢失时,VS无法处理它。安装显然没有创建一个!

我还有其他问题,但会在其他帖子上解决这些问题。谢谢大家的帮助!

相关问题