c# - 最新 windows 10 更新后 Visual Studio 2013 发布崩溃

标签 c# visual-studio asp.net-mvc-4

我曾经使用 VS2013 并设置我的配置文件来发布 Web 项目。 它在 Windows 10 中按预期工作,直到我昨晚安装了最新的 Windows 10 更新。

现在每次我发布我的项目时都会弹出窗口说 visual studio 已停止工作并自行重启。

我尝试清理我的项目并重建、删除配置文件并导入新的。重新安装并获取最新的 Visaul Studio 更新。它们都不起作用。

异常(exception):

System.StackOverflowException was unhandled Message: An unhandled exception of type 'System.StackOverflowException' occurred in mscorlib.dll

在事件日志中:

Faulting application name: devenv.exe, version: 12.0.21005.1, time stamp: 0x524fcb34 Faulting module name: MSVCR120_CLR0400.dll, version: 12.0.52512.0, time stamp: 0x5525ef9d Exception code: 0xc00000fd Fault offset: 0x0007e1a8 Faulting process id: 0x1128 Faulting application start time: 0x01d11f4665107d6c Faulting application path: C:\Program Files (x86)\Microsoft Visual Studio 12.0\Common7\IDE\devenv.exe Faulting module path: C:\Windows\SYSTEM32\MSVCR120_CLR0400.dll Report Id: 6bfdab62-235e-4e00-b23e-4312cf3f276a Faulting package full name: Faulting package-relative application ID:

详细信息:

devenv.exe 12.0.21005.1 524fcb34 MSVCR120_CLR0400.dll 12.0.52512.0 5525ef9d c00000fd 0007e1a8 1128 01d11f4665107d6c C:\Program Files (x86)\Microsoft 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

异常:

"Item has already been added. Key in dictionary: 'WebApplication' Key being added: 'WebApplication'"} System.Exception {System.ArgumentException}

最佳答案

我终于确定了崩溃的根本原因。如果我删除项目中的 obj 和 bin 文件夹,则发布配置文件将起作用。也许那是因为我在构建项目时有一些 dll 冲突警告?

我仍然不确定为什么这在 Windows 8 中没有发生。为什么它在 Windows 8 和 10 中的行为不同?

关于c# - 最新 windows 10 更新后 Visual Studio 2013 发布崩溃,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/33715629/

相关文章:

c# - 在不访问 SQL Server Profiler 的情况下分析 ADO.NET 语句

c# - 为什么我可以抽象覆盖抽象方法?

c# - gridview edititem 模板内的日历控件

c# - 如何在用户控件中引发事件并在主页中捕获它?

jquery - mvc4中如何让按钮点击后停止页面刷新?

c - AVL 树删除导致程序崩溃

visual-studio - Visual Studio 2012 中的 Edit.MoveLineUp/Down 发生了什么

c++ - 为什么 qmake 忽略 -spec 标志?

javascript - jquery MVC4 接收 JSON

c# - System.InvalidOperationException' 出现在 AutoMapper.dll 中。附加信息 : Mapper not initialized