UG爱好者

标题: CAD打开出现“应用程序的组件中发生了无法处理的异常” [打印本页]

作者: UGxue    时间: 2021-8-31 09:20
标题: CAD打开出现“应用程序的组件中发生了无法处理的异常”
大家有人遇到这种情况吗?请大家帮忙解决下,谢谢!

详细信息如下
应用程序不支持实时(JIT)调试。
有关详细信息,请参见此消息的结尾。

************** 异常文本 **************
System.Exception: Error Compiling Expression: Error Compiling Expression: Character '' is not allowed on the command-line or in response files

   在 Autodesk.AutoCAD.LivePreview.PreviewContextService.Compile(List`1 selectors, String assemblyPath)
   在 Autodesk.AutoCAD.LivePreview.PreviewContextService.LoadContext()
   在 Autodesk.AutoCAD.LivePreview.PreviewContextService.get_ContextProvider()
   在 Autodesk.AutoCAD.LivePreview.PreviewContextManager.OnIdleInitialize(Object sender, EventArgs e)
   在 System.EventHandler.Invoke(Object sender, EventArgs e)
   在 Autodesk.AutoCAD.ApplicationServices.Core.Application.OnIdle()


************** 已加载的程序集 **************
mscorlib
    程序集版本: 4.0.0.0
    Win32 版本: 4.0.30319.18063 built by: FX45RTMGDR
    基本代码: 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.0.30319.18015 built by: FX45RTMGDR
    基本代码: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/WindowsBase/v4.0_4.0.0.0__31bf3856ad364e35/WindowsBase.dll
----------------------------------------
System
    程序集版本: 4.0.0.0
    Win32 版本: 4.0.30319.34238 built by: FX452RTMGDR
    基本代码: 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.0.30319.18015
    基本代码: 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.0.30319.18015 built by: FX45RTMGDR
    基本代码: 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.0.30319.18015 built by: FX45RTMGDR
    基本代码: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Xaml/v4.0_4.0.0.0__b77a5c561934e089/System.Xaml.dll
----------------------------------------
System.Xml
    程序集版本: 4.0.0.0
    Win32 版本: 4.0.30319.34234 built by: FX452RTMGDR
    基本代码: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Xml/v4.0_4.0.0.0__b77a5c561934e089/System.Xml.dll
----------------------------------------
System.Windows.Forms.resources
    程序集版本: 4.0.0.0
    Win32 版本: 4.0.30319.1 built by: RTMRel
    基本代码: 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 调试 **************
应用程序不支持 Windows 窗体实时(JIT)
调试。有关更多
信息,请与应用程序的作者联系。


1630372466(1).jpg (17.96 KB, 下载次数: 87)

1630372466(1).jpg

作者: 3D-SW-小石坝    时间: 2021-9-10 22:46
1、首先打开开始菜单→运行→输入cmd→回车

2、在命令提示符下输入下面命令“for %1 in (%windir%\system32\*.dll) do regsvr32.exe /s %1”,回车

3、再输入“for %i in (%windir%\system32\*.ocx) do regsvr32.exe /s %i”,回车

4、等待直到屏幕滚动停止即可

5、最后重启电脑,再打开cad应该就恢复正常了

你可以试试这个方式,小石坝觉得可以从多个方面试试





欢迎光临 UG爱好者 (https://www.ugsnx.com/) Powered by Discuz! X3.2