Error: “Unhandled Exception has occurred in a component in your application” while using AutoCAD

Error: “Unhandled Exception has occurred in a component in your application” while using AutoCAD
While working in AutoCAD, it crashes and shows the following error message:

Unhandled exception has occurred in a component in your application. If you click Continue, the application will ignore this error and attempt to continue.

[...]

Application does not support just-in-time (JIT) debugging. See the end of this message for details.

The unique (ellipsis) part of the above error can contain the following:

  • Object reference not set to an instance of an object
  • eUndoOperationNotAvailable
  • Unable to cast object of type
  • 'Autodesk.AutoCAD.DatabaseServices.Line' to type
  • 'Autodesk.AutoCAD.DatabaseServices.SymbolTableRecord'
  • 'Autodesk.AutoCAD.LivePreview.PreviewRuleProvider'
  • 'Autodesk.AutoCAD.Internal.IPreviewContextProvider'
  • Value cannot be null.
  • Parameter name: stream.
  • Access to the path 'C:\Program Files\Autodesk\..." is denied.
Upon clicking continue, the error repeats, sometimes indefinitely. Additionally, the error can occur while accessing a command that brings up a dialog window or that changes the user interface, such as producing a palette or contextual ribbon.

Causes:

Just-In-Time (JIT) errors are typically related to the issues with Microsoft .NET Framework, which is installed as prerequisite during the installation of AutoCAD.

Solution:

You may see this error if the Microsoft .NET Framework component is not installed on your computer, or is outdated or damaged. The error can be fixed by removing and reinstalling the .NET Framework. Refer to the following article for more details:

How to remove and reinstall the Microsoft .NET Framework

If Microsoft .NET Framework is not listed as an installed program under Programs and Features, download and install a newer version of .NET Framework, if one is available for your version of Windows.

If you need any further information, do not hesitate to contact our Technical Support Team HERE

Blog

Revit Training Courses

15 June 2022

Our Revit training courses are hosted by industry-experienced, Autodesk certified, skilled application specialists and consultants. Learn Revit and build the market's demanding skills. Enroll now!

Learn more
Blog

BIM 360 (Building Information Modeling)

15 June 2022

BIM Consultation - BIM (Building Information Modelling) 360 construction management software enables almost anytime, anywhere access to project data throughout the building construction lifecycle.

Learn more