2015-11-15 112 views
1

我曾經使用VS2013並設置我的配置文件以發佈Web項目。 它在windows 10中按預期工作,直到我昨晚安裝了最新的Windows 10更新。Visual Studio 2013在最新的Windows 10更新後發佈崩潰

現在,每當我發佈我的項目,然後彈出說,Visual Studio已停止工作,並重新啓動自己。

我嘗試清理我的項目並重建,刪除配置文件並導入新的。重新安裝並獲取最新的Visaul Studio更新。他們都沒有工作。

例外的:未處理 消息

System.StackOverflowException:類型System.StackOverflowException'的未處理的異常出現在mscorlib.dll

在事件日誌:

錯誤應用程序名稱:devenv.exe,版本:12.0.21005.1,時間戳:0x524fcb34 錯誤模塊名稱:M SVCR120_CLR0400.dll,版本:12.0.52512.0,時間戳:0x5525ef9d 異常代碼:0xc00000fd 故障偏移:0x0007e1a8 出錯進程ID:0x1128 錯誤的應用程序啓動時間:0x01d11f4665107d6c 錯誤的應用程序路徑:C:\ Program Files文件(86) \微軟的Visual Studio 12.0 \ Common7 \ IDE \ devenv.exe的 錯誤模塊路徑:C:\ WINDOWS \ SYSTEM32 \ MSVCR120_CLR0400.dll 報告編號:6bfdab62-235e-4E00-B23E-4312cf3f276a 斷裂作用包全名: 斷裂作用包-relative application ID:

詳情:

devenv.exe的 12.0.21005.1 524fcb34 MSVCR120_CLR0400.dll 12.0.52512.0 5525ef9d C00000FD 0007e1a8 01d11f4665107d6c C:\ Program Files文件(x86)的\微軟的Visual Studio 12.0 \ Common7 \ IDE \ devenv.exe的 C:\ WINDOWS \ SYSTEM32 \ MSVCR120_CLR0400.dll 6bfdab62-235e-4E00-B23E-4312cf3f276a

我仍然有不知道爲什麼它墜毀,如果有人知道任何事情,請擺脫一些光,謝謝!

在導致崩潰的堆棧溢出異常之前有一些異常。這是第一個例外的調用堆棧後,我右鍵單擊項目

mscorlib.dll!System.Collections.Hashtable.Insert(object key, object nvalue, bool add) Unknown 
mscorlib.dll!System.Collections.Hashtable.Add(object key, object value) Unknown 
Microsoft.VisualStudio.dll!Microsoft.VisualStudio.PropertyBrowser.AutomationExtenderManager.GetExtenders(EnvDTE.ObjectExtenders extensionMgr = COM Object, string catID = "{4EF9F003-DE95-4d60-96B0-212979F2A857}", object extendee, System.Collections.Hashtable ht = Count = 1) Unknown 
Microsoft.VisualStudio.dll!Microsoft.VisualStudio.PropertyBrowser.AutomationExtenderManager.GetExtendedObjects(object[] selectedObjects = {object[1]}) Unknown 
Microsoft.VisualStudio.dll!Microsoft.VisualStudio.PropertyBrowser.PropertyBrowser.Microsoft.VisualStudio.PropertyBrowser.ILocalPbrsService.GetProcessedObject(object component) Unknown 
Microsoft.VisualStudio.dll!Microsoft.VisualStudio.PropertyBrowser.VSPropertiesTab.GetProperties(System.ComponentModel.ITypeDescriptorContext context = {System.Windows.Forms.PropertyGridInternal.SingleSelectRootGridEntry}, object component, System.Attribute[] attributes = {System.Attribute[1]}) Unknown 
System.Windows.Forms.dll!System.Windows.Forms.PropertyGridInternal.GridEntry.GetPropEntries(System.Windows.Forms.PropertyGridInternal.GridEntry peParent = {System.Windows.Forms.PropertyGridInternal.SingleSelectRootGridEntry}, object obj = COM Object, System.Type objType = {Name = Inspecting the state of an object in the debuggee of type System.Type is not supported in this context. FullName = Inspecting the state of an object in the debuggee of type System.Type is not supported in this context.}) Unknown 
System.Windows.Forms.dll!System.Windows.Forms.PropertyGridInternal.GridEntry.CreateChildren(bool diffOldChildren = false) Unknown 
System.Windows.Forms.dll!System.Windows.Forms.PropertyGridInternal.SingleSelectRootGridEntry.CreateChildren() Unknown 
System.Windows.Forms.dll!System.Windows.Forms.PropertyGridInternal.GridEntry.InternalExpanded.set(bool value) Unknown 
System.Windows.Forms.dll!System.Windows.Forms.PropertyGridInternal.GridEntry.Create(System.Windows.Forms.PropertyGridInternal.PropertyGridView view, object[] rgobjs, System.IServiceProvider baseProvider, System.ComponentModel.Design.IDesignerHost currentHost, System.Windows.Forms.Design.PropertyTab tab, System.Windows.Forms.PropertySort initialSortType) Unknown 
System.Windows.Forms.dll!System.Windows.Forms.PropertyGrid.UpdateSelection() Unknown 
System.Windows.Forms.dll!System.Windows.Forms.PropertyGrid.RefreshProperties(bool clearCached) Unknown 
System.Windows.Forms.dll!System.Windows.Forms.PropertyGrid.Refresh(bool clearCached) Unknown 
System.Windows.Forms.dll!System.Windows.Forms.PropertyGrid.SelectedObjects.set(object[] value) Unknown 
Microsoft.VisualStudio.dll!Microsoft.VisualStudio.PropertyBrowser.PropertyBrowser.UpdatePropertyGrid() Unknown 
Microsoft.VisualStudio.dll!Microsoft.VisualStudio.PropertyBrowser.PropertyBrowser.UpdateSelection(bool updateGrid, bool updateComboBox) Unknown 
Microsoft.VisualStudio.dll!Microsoft.VisualStudio.PropertyBrowser.PropertyBrowser.OnIdle(object sender, System.EventArgs e) Unknown 
System.Windows.Forms.dll!System.Windows.Forms.Application.ThreadContext.System.Windows.Forms.UnsafeNativeMethods.IMsoComponent.FDoIdle(int grfidlef) Unknown 
System.Windows.Forms.dll!System.Windows.Forms.ComponentManagerProxy.System.Windows.Forms.UnsafeNativeMethods.IMsoComponent.FDoIdle(int grfidlef = -2) Unknown 

例外:

「項目已添加關鍵字典中。‘WebApplication的’鑰匙被補充道:‘WebApplication的’」 } System.Exception {System。ArgumentException的}

+1

附加調試在VS的第二個副本發佈之前,再看看堆棧跟蹤。 – SLaks

+0

我試過了,但即使我下載了所有可能的符號,調用堆棧也沒什麼意義,我也不認爲我可以從彙編代碼中獲取任何東西。 –

+0

附加爲託管而非本地;本地代碼應該不相關(並且根本不需要符號來查看託管堆棧) – SLaks

回答

0

,我也有這個問題,只有這樣,才能解決這個問題是重新安裝Visual Studio的,或者你可以嘗試先修復安裝。

+0

不幸的是,沒有在我的情況下工作... –

+0

我也有這個問題,以及安裝Win 10 SP1或任何他們稱之爲。與以前一樣重新安裝VS 2013,我安裝了VS 2015,但該問題也存在。考慮到我在更新後遇到了包管理器的另一個問題,我在dll實體框架上運行了gacutil.exe修復程序。我不知道是否有什麼與此修復相關的... – BillD

4

我終於鎖定了崩潰的根源。如果我刪除項目中的obj和bin文件夾,則發佈配置文件將起作用。也許這是因爲我在構建項目時遇到了一些dll衝突警告?

我仍然不確定爲什麼這不會發生在Windows 8中。爲什麼它在Windows 8和10中的行爲不同?

+0

我必須在每次發佈前刪除obj和bin – biscuit314

+0

我遇到了同樣的問題,而且這似乎至少讓我發佈。你會認爲微軟會在Windows 10上測試他們的開發工具。自從我切換以來,我一直沒有遇到任何問題。 – Alao

+0

同樣的問題在這裏,刪除obj/bin文件夾似乎暫時解決它。在VS2015中也存在這個問題,這很困難!不知道該怎麼辦。 – BillD

0

我發現問題在於.csproj文件。

  1. 在文本編輯器打開該文件(即記事本+ +),並切斷文件部分(的ItemGroup元素)爲參考後
  2. 保存文件
  3. 在vs2013 打開項目(我不知道你需要重新打開vs2013 - 但這就是我所做的)。
  4. 然後關閉vs2013中的項目。
  5. 粘貼我們剛切出的所有ItemGroup元素
  6. resave。
  7. 發佈再次
相關問題