我曾经使用VS2013并设置我的个人资料来发布网络项目。 它在Windows 10中按预期工作,直到我昨晚安装了Windows 10的最新更新。
现在,每次我发布我的项目时,popup都说visual studio已停止工作并重新启动。
我尝试清理我的项目并重建,删除配置文件并导入新的配置文件。重新安装并获得最新的Visaul Studio更新。他们都没有工作。
例外:
System.StackOverflowException未处理 消息:未处理的类型' System.StackOverflowException'发生在mscorlib.dll
在事件日志中:
错误应用程序名称:devenv.exe,版本:12.0.21005.1,时间戳:0x524fcb34 错误模块名称:MSVCR120_CLR0400.dll,版本:12.0.52512.0,时间戳:0x5525ef9d 异常代码:0xc00000fd 故障偏移:0x0007e1a8 错误进程id:0x1128 错误应用程序启动时间:0x01d11f4665107d6c 错误应用程序路径:C:\ Program Files(x86)\ Microsoft Visual Studio 12.0 \ Common7 \ IDE \ devenv.exe 错误模块路径:C:\ Windows \ SYSTEM32 \ MSVCR120_CLR0400.dll 报告编号:6bfdab62-235e-4e00-b23e-4312cf3f276a 错误包全名: 错误的包相关应用程序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
例外:
"项目已添加。键入字典:' WebApplication'正在添加的密钥:' WebApplication'} System.Exception {System.ArgumentException}
答案 0 :(得分:4)
我最终坚持了崩溃的根本原因。如果我删除项目中的obj和bin文件夹,那么发布配置文件将起作用。也许那是因为我在构建项目时遇到了一些dll冲突警告?
我仍然不确定为什么在Windows 8中没有发生这种情况。为什么它在Windows 8和10中表现不同?
答案 1 :(得分:0)
我也有这个问题,解决问题的唯一方法是重新安装Visual Studio ,或者您可以先尝试修复安装。
答案 2 :(得分:0)
我已经发现问题在于.csproj文件。