明经CAD社区

 找回密码
 注册

QQ登录

只需一步,快速开始

搜索
查看: 6273|回复: 4

[运行时] 应用程序的组件中发生未经处理的异常………………

[复制链接]
发表于 2018-3-20 15:56 | 显示全部楼层 |阅读模式
3明经币
请问各位大神,这是什么情况,求指点

有关调用实时(JIT)调试而不是此对话框的详细信息,
请参见此消息的结尾。

************** 异常文本 **************
System.InvalidOperationException: 已在“VisualTreeChanged”事件期间更改可视化树。
   在 System.Windows.Diagnostics.VisualDiagnostics.VerifyVisualTreeChangeCore(DependencyObject d)
   在 System.Windows.FrameworkElement.OnPropertyChanged(DependencyPropertyChangedEventArgs e)
   在 Autodesk.AutoCAD.ViewModel.CommandLine.CommandLineControl.OnPropertyChanged(DependencyPropertyChangedEventArgs e)
   在 System.Windows.DependencyObject.NotifyPropertyChange(DependencyPropertyChangedEventArgs args)
   在 System.Windows.DependencyObject.UpdateEffectiveValue(EntryIndex entryIndex, DependencyProperty dp, PropertyMetadata metadata, EffectiveValueEntry oldEntry, EffectiveValueEntry& newEntry, Boolean coerceWithDeferredReference, Boolean coerceWithCurrentValue, OperationType operationType)
   在 System.Windows.DependencyObject.ClearValueCommon(EntryIndex entryIndex, DependencyProperty dp, PropertyMetadata metadata)
   在 System.Windows.DependencyObject.ClearValue(DependencyPropertyKey key)
   在 System.Windows.BroadcastEventHelper.RemoveLoadedCallback(DependencyObject d, Object[] loadedPending)
   在 System.Windows.BroadcastEventHelper.BroadcastLoadedEvent(Object root)
   在 MS.Internal.LoadedOrUnloadedOperation.DoWork()
   在 System.Windows.Media.MediaContext.FireLoadedPendingCallbacks()
   在 System.Windows.Media.MediaContext.FireInvokeOnRenderCallbacks()
   在 System.Windows.Media.MediaContext.RenderMessageHandlerCore(Object resizedCompositionTarget)
   在 System.Windows.Media.MediaContext.RenderMessageHandler(Object resizedCompositionTarget)
   在 System.Windows.Interop.HwndTarget.OnResize()
   在 System.Windows.Interop.HwndTarget.HandleMessage(WindowMessage msg, IntPtr wparam, IntPtr lparam)
   在 System.Windows.Interop.HwndSource.HwndTargetFilterMessage(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
   在 MS.Win32.HwndWrapper.WndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
   在 MS.Win32.HwndSubclass.DispatcherCallbackOperation(Object o)
   在 System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs)
   在 System.Windows.Threading.ExceptionWrapper.TryCatchWhen(Object source, Delegate callback, Object args, Int32 numArgs, Delegate catchHandler)
   在 System.Windows.Threading.Dispatcher.LegacyInvokeImpl(DispatcherPriority priority, TimeSpan timeout, Delegate method, Object args, Int32 numArgs)
   在 MS.Win32.HwndSubclass.SubclassWndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam)
   在 MS.Win32.UnsafeNativeMethods.CallWindowProc(IntPtr wndProc, IntPtr hWnd, Int32 msg, IntPtr wParam, IntPtr lParam)
   在 MS.Win32.HwndSubclass.DefWndProcWrapper(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam)
   在 MS.Win32.UnsafeNativeMethods.CallWindowProc(IntPtr wndProc, IntPtr hWnd, Int32 msg, IntPtr wParam, IntPtr lParam)
   在 MS.Win32.HwndSubclass.SubclassWndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam)


************** 已加载的程序集 **************
mscorlib
    程序集版本:4.0.0.0
    Win32 版本:4.7.2600.0 built by: NET471REL1LAST
    基本代码:file:///C:/Windows/Microsoft.NET/Framework64/v4.0.30319/mscorlib.dll
----------------------------------------
Acdbmgd
    程序集版本:20.1.0.0
    Win32 版本:20.1.49.0.0
    基本代码:file:///D:/Program%20Files/Autodesk/AutoCAD%202016/AcdbMgd.DLL
----------------------------------------
adui20
    程序集版本:0.0.0.0
    Win32 版本:20.1.49.0.0
    基本代码:file:///D:/Program%20Files/Autodesk/AutoCAD%202016/adui20.DLL
----------------------------------------
AdUiPalettes
    程序集版本:20.1.0.0
    Win32 版本:20.1.49.0.0
    基本代码:file:///D:/Program%20Files/Autodesk/AutoCAD%202016/AdUiPalettes.DLL
----------------------------------------
WindowsBase
    程序集版本:4.0.0.0
    Win32 版本:4.7.2600.0 built by: NET471REL1LAST
    基本代码:file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/WindowsBase/v4.0_4.0.0.0__31bf3856ad364e35/WindowsBase.dll
----------------------------------------
System.Core
    程序集版本:4.0.0.0
    Win32 版本:4.7.2600.0 built by: NET471REL1LAST
    基本代码:file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Core/v4.0_4.0.0.0__b77a5c561934e089/System.Core.dll
----------------------------------------
System
    程序集版本:4.0.0.0
    Win32 版本:4.7.2556.0 built by: NET471REL1
    基本代码:file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System/v4.0_4.0.0.0__b77a5c561934e089/System.dll
----------------------------------------
PresentationFramework
    程序集版本:4.0.0.0
    Win32 版本:4.7.2600.0
    基本代码:file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/PresentationFramework/v4.0_4.0.0.0__31bf3856ad364e35/PresentationFramework.dll
----------------------------------------
PresentationCore
    程序集版本:4.0.0.0
    Win32 版本:4.7.2600.0 built by: NET471REL1LAST
    基本代码:file:///C:/Windows/Microsoft.Net/assembly/GAC_64/PresentationCore/v4.0_4.0.0.0__31bf3856ad364e35/PresentationCore.dll
----------------------------------------
System.Xaml
    程序集版本:4.0.0.0
    Win32 版本:4.7.2600.0 built by: NET471REL1LAST
    基本代码:file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Xaml/v4.0_4.0.0.0__b77a5c561934e089/System.Xaml.dll
----------------------------------------
System.Configuration
    程序集版本:4.0.0.0
    Win32 版本:4.7.2556.0 built by: NET471REL1
    基本代码:file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Configuration/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Configuration.dll
----------------------------------------
System.Xml
    程序集版本:4.0.0.0
    Win32 版本:4.7.2556.0 built by: NET471REL1
    基本代码:file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Xml/v4.0_4.0.0.0__b77a5c561934e089/System.Xml.dll
----------------------------------------
WpfXamlDiagnosticsTap
    程序集版本:14.0.0.0
    Win32 版本:14.0.25431.1
    基本代码:file:///C:/Users/ADMINI~1/AppData/Local/Temp/VisualStudio.XamlDiagnostics.13308/WpfXamlDiagnosticsTap.dll
----------------------------------------
Microsoft.VisualStudio.OLE.Interop
    程序集版本:7.1.40304.0
    Win32 版本:7.10.6070
    基本代码:file:///C:/Windows/assembly/GAC/Microsoft.VisualStudio.OLE.Interop/7.1.40304.0__b03f5f7f11d50a3a/Microsoft.VisualStudio.OLE.Interop.dll
----------------------------------------
AdApplicationFrame
    程序集版本:0.0.0.0
    Win32 版本:6.3.0.14
    基本代码:file:///D:/Program%20Files/Autodesk/AutoCAD%202016/AdApplicationFrame.DLL
----------------------------------------
System.Drawing
    程序集版本:4.0.0.0
    Win32 版本:4.7.2556.0 built by: NET471REL1
    基本代码:file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Drawing/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Drawing.dll
----------------------------------------
AdWindows
    程序集版本:6.3.0.14
    Win32 版本:6.3.0.14
    基本代码:file:///D:/Program%20Files/Autodesk/AutoCAD%202016/AdWindows.DLL
----------------------------------------
System.Windows.Forms
    程序集版本:4.0.0.0
    Win32 版本:4.7.2556.0 built by: NET471REL1
    基本代码:file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Windows.Forms/v4.0_4.0.0.0__b77a5c561934e089/System.Windows.Forms.dll
----------------------------------------
AdWindows.resources
    程序集版本:6.3.0.14
    Win32 版本:6.3.0.14
    基本代码:file:///D:/Program%20Files/Autodesk/AutoCAD%202016/zh-CN/AdWindows.resources.DLL
----------------------------------------
WindowsFormsIntegration
    程序集版本:4.0.0.0
    Win32 版本:4.7.2556.0 built by: NET471REL1
    基本代码:file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/WindowsFormsIntegration/v4.0_4.0.0.0__31bf3856ad364e35/WindowsFormsIntegration.dll
----------------------------------------
UIAutomationProvider
    程序集版本:4.0.0.0
    Win32 版本:4.7.2600.0 built by: NET471REL1LAST
    基本代码:file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/UIAutomationProvider/v4.0_4.0.0.0__31bf3856ad364e35/UIAutomationProvider.dll
----------------------------------------
PresentationFramework.Aero2
    程序集版本:4.0.0.0
    Win32 版本:4.7.2556.0 built by: NET471REL1
    基本代码:file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/PresentationFramework.Aero2/v4.0_4.0.0.0__31bf3856ad364e35/PresentationFramework.Aero2.dll
----------------------------------------
PresentationCore.resources
    程序集版本:4.0.0.0
    Win32 版本:4.7.2556.0 built by: NET471REL1
    基本代码:file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/PresentationCore.resources/v4.0_4.0.0.0_zh-Hans_31bf3856ad364e35/PresentationCore.resources.dll
----------------------------------------
accoremgd
    程序集版本:20.1.0.0
    Win32 版本:20.1.49.0.0
    基本代码:file:///D:/Program%20Files/Autodesk/AutoCAD%202016/accoremgd.DLL
----------------------------------------
Acmgd
    程序集版本:20.1.0.0
    Win32 版本:20.1.49.0.0
    基本代码:file:///D:/Program%20Files/Autodesk/AutoCAD%202016/Acmgd.DLL
----------------------------------------
AcWindows
    程序集版本:20.1.0.0
    Win32 版本:20.1.49.0.0
    基本代码:file:///D:/Program%20Files/Autodesk/AutoCAD%202016/AcWindows.DLL
----------------------------------------
PresentationFramework.resources
    程序集版本:4.0.0.0
    Win32 版本:4.7.2556.0
    基本代码:file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/PresentationFramework.resources/v4.0_4.0.0.0_zh-Hans_31bf3856ad364e35/PresentationFramework.resources.dll
----------------------------------------
AcWindows.resources
    程序集版本:20.1.0.0
    Win32 版本:20.1.49.0.0
    基本代码:file:///D:/Program%20Files/Autodesk/AutoCAD%202016/zh-CN/AcWindows.resources.DLL
----------------------------------------
AcCui
    程序集版本:20.1.0.0
    Win32 版本:20.1.49.0.0
    基本代码:file:///D:/Program%20Files/Autodesk/AutoCAD%202016/AcCui.DLL
----------------------------------------
PresentationFramework-SystemXml
    程序集版本:4.0.0.0
    Win32 版本:4.7.2556.0
    基本代码:file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/PresentationFramework-SystemXml/v4.0_4.0.0.0__b77a5c561934e089/PresentationFramework-SystemXml.dll
----------------------------------------
PresentationFramework.Aero
    程序集版本:4.0.0.0
    Win32 版本:4.7.2556.0 built by: NET471REL1
    基本代码:file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/PresentationFramework.Aero/v4.0_4.0.0.0__31bf3856ad364e35/PresentationFramework.Aero.dll
----------------------------------------
mscorlib.resources
    程序集版本:4.0.0.0
    Win32 版本:4.7.2556.0 built by: NET471REL1
    基本代码:file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/mscorlib.resources/v4.0_4.0.0.0_zh-Hans_b77a5c561934e089/mscorlib.resources.dll
----------------------------------------
System.resources
    程序集版本:4.0.0.0
    Win32 版本:4.7.2556.0 built by: NET471REL1
    基本代码:file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.resources/v4.0_4.0.0.0_zh-Hans_b77a5c561934e089/System.resources.dll
----------------------------------------
PresentationUI
    程序集版本:4.0.0.0
    Win32 版本:4.7.2556.0 built by: NET471REL1
    基本代码:file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/PresentationUI/v4.0_4.0.0.0__31bf3856ad364e35/PresentationUI.dll
----------------------------------------
PresentationUI.resources
    程序集版本:4.0.0.0
    Win32 版本:4.7.2556.0 built by: NET471REL1
    基本代码:file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/PresentationUI.resources/v4.0_4.0.0.0_zh-Hans_31bf3856ad364e35/PresentationUI.resources.dll
----------------------------------------
System.Xml.Linq
    程序集版本:4.0.0.0
    Win32 版本:4.7.2556.0 built by: NET471REL1
    基本代码:file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Xml.Linq/v4.0_4.0.0.0__b77a5c561934e089/System.Xml.Linq.dll
----------------------------------------
System.Windows.Forms.resources
    程序集版本:4.0.0.0
    Win32 版本:4.7.2556.0 built by: NET471REL1
    基本代码:file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Windows.Forms.resources/v4.0_4.0.0.0_zh-Hans_b77a5c561934e089/System.Windows.Forms.resources.dll
----------------------------------------

************** JIT 调试 **************
要启用实时(JIT)调试,
该应用程序或计算机的 .config 文件(machine.config)的 system.windows.forms 节中必须设置
jitDebugging 值。
编译应用程序时还必须启用
调试。

例如:

<configuration>
    <system.windows.forms jitDebugging="true" />
</configuration>

启用 JIT 调试后,任何未经处理的异常
都将被发送到在此计算机上注册的 JIT 调试程序,
而不是由此对话框处理。


附件: 您需要 登录 才可以下载或查看,没有账号?注册
发表于 2018-4-14 00:39 | 显示全部楼层
我也遇到这个问题了,请问楼主解决了吗?
回复

使用道具 举报

 楼主| 发表于 2018-4-16 08:02 | 显示全部楼层
红黑墨水 发表于 2018-4-14 00:39
我也遇到这个问题了,请问楼主解决了吗?

没有,坐等大神指教吧!
回复

使用道具 举报

发表于 2018-4-24 22:42 | 显示全部楼层
本帖最后由 W.B.Y 于 2018-4-27 21:32 编辑

解决方案:
1.正常打开AutoCAD,并非在Visual Studio中运行或调试。
2.输入命令:COMMANDLINEHIDE,在弹出的对话框中点击“是”。
3.关闭AutoCAD。
4.在Visual Studio中运行或调试模式启动。
回复

使用道具 举报

发表于 2018-8-20 09:18 | 显示全部楼层
W.B.Y 发表于 2018-4-24 22:42
解决方案:
1.正常打开AutoCAD,并非在Visual Studio中运行或调试。
2.输入命令:COMMANDLINEHIDE,在弹 ...

谢谢,的确有效。只是cad里面被迫使用动态输入了
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

小黑屋|手机版|CAD论坛|CAD教程|CAD下载|联系我们|关于明经|明经通道 ( 粤ICP备05003914号 )  
©2000-2023 明经通道 版权所有 本站代码,在未取得本站及作者授权的情况下,不得用于商业用途

GMT+8, 2024-6-18 23:21 , Processed in 0.138770 second(s), 22 queries , Gzip On.

Powered by Discuz! X3.4

Copyright © 2001-2021, Tencent Cloud.

快速回复 返回顶部 返回列表