簡體   English   中英

Visual Studio 2015社區版在啟動時崩潰

[英]Visual Studio 2015 community edition crashes at startup

前幾天,我正在清潔我的文檔文件夾,並且必須不小心刪除了以下特定文件。 Visual Studio啟動后顯示以下消息,然后單擊“確定”后崩潰。

我已經重新加載了社區版3次,安裝了Express版(有效)。 重新加載了SQL和.NET 4.6。 我確實有活動日志,但是不明白它試圖告訴我什么。

我下載了Visual Studio安裝清理工具,該工具清除了160個項目,重新安裝后仍然發生相同的問題。 我在命令行上嘗試了devenv.exe / resetsettings選項。 沒運氣...

在此處輸入圖片說明

我發現活動日志包含多個錯誤,而這些只是少數幾個。 在此處輸入圖片說明

如果這僅僅是缺少vssettings文件的問題,為什么新的安裝程序不創建一個?

更新06-22:在Anders友好地提供了一個新的vssettings文件之后。 它啟動到這一點,然后下降。

在此處輸入圖片說明

我花了三天的時間耐心嘗試糾正Visual Studio無法正常工作的事實,因為我意外刪除了vssettings.settings文件。 當我得到該文件的副本時,它走得更遠,但是每次啟動時它都會崩潰。

因此,每次都無法啟動VS2015時,我會反復重新安裝和刪除VS2015,結果卻不同,這幾乎就好像安裝程序不知道如何在系統上殘留VS內容的情況下進行全新安裝。

查看應用程序事件日志

然后,我在應用程序事件查看器中找到了它。 “找不到Coloader80”

在此處輸入圖片說明

我在Internet上搜索時發現有人發現您不僅要卸載VS2015,還發現有人發帖。 但需要刪除APPDATA本地和遠程以及程序文件中的所有VS文件夾。 我什至走得很遠,正在刪除visualstudiocommon文件夾。 然后,我通過添加刪除pgms擺脫了所有“重復”的C ++安裝。

  1. 卸載計算機上的所有VS版本。 社區,快遞等
  2. 通過添加/刪除pgms擺脫所有C ++安裝。
  3. 手動刪除程序文件Visual Studio 10,12和14.0文件夾。
  4. 手動刪除Microsoft文件夾中與VisualStudio有任何引用的所有AppData本地和遠程文件夾請注意這包括VisualStudio.Common,它在其自己的文件夾中
  5. 重新安裝VS2015
  6. 如果這次您有其他錯誤,“修復” VS2015花費了很長時間。 它經過整個重新安裝。
  7. 重新啟動計算機並啟動VS ...加載了MEF組件,並且花了很長時間才能顯示主菜單。
  8. 等待約5分鍾或更長時間,讓一切安定下來
  9. 創建了一個新的UWP應用,其中要下載DLLS的NUGET作業花費了大約5分鍾。
    1. 能夠構建和運行新的UWP! 是的...終於...

我不知道整個情況的根本原因,但是發現了兩個截然不同的問題: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()

我希望這對以后的人有幫助...

您似乎可以從其他計算機導入設置,請檢查此鏈接。

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

上面第一個錯誤消息的解決方案是讓某人給您一個vssettings文件。 丟失時,VS無法處理它。 安裝顯然也不會創建一個!

我還有其他問題,但可以在其他職位上解決。 謝謝大家的幫助!

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM