Can also contain the following:
- Object reference not set to an instance of an object
- Unable to cast object of type
- 'Autodesk.AutoCAD.DatabaseServices.Line' to type
- Value cannot be null.
- Parameter name: stream.
- Access to the path 'C:\Program Files\Autodesk\..." is denied.
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.
Uninstalling the .NET Framework is done just like any other program on your system. The different versions and components will be listed in Programs and Features (or Add or Remove Programs for Windows XP). However, one thing to keep in mind is that even though you may have all versions of .NET installed, only some may be listed for uninstalling. The newest Windows operating systems have older versions of .NET built into them. These built-in versions cannot be uninstalled. For example, Windows 7 will only list .NET 4 to uninstall with 3.5.1 and older built into the system.
To uninstall the Microsoft .NET Framework:
Open Programs and Features from the Windows Control Panel (or Add or Remove Programs for Windows XP). An easy way to bring this up on non-Windows XP systems is to type "programs and features" in the search field at the bottom of the Start menu.
Uninstall everything that starts with "Microsoft .NET," doing newest versions first.
Download and install all of the following that pertain to your version of Windows:Microsoft .NET Framework 1.1 (for Windows XP)
Microsoft .NET Framework 3.5 Service Pack 1 (for Windows XP and Vista)
Microsoft .NET Framework 4.0 (only if not installing .NET 4.5.2)
Microsoft .NET Framework 4.5.2 (for Windows 7, 8, and 8.1)
Microsoft .NET Framework 4.6.2 (for Windows 7, 8, 8.1, and 10)
Each of the above installers will add all the necessary files, including older versions if needed (i.e., the .NET 3.5.1 installer will also install 2.0 and 3.0; .NET 4.0 will install both its components that list in Programs and Features). Additionally, Microsoft has coded the installers to only work on supported operating systems. If you are wondering whether you should install a particular version or thought you made a mistake, you should be fine.