Message 1 of 9
Unable to load DocumentFormat.OpenXml.dll into AutoCAD 2025
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hi,
I'm using openxml to read and write excel files in an AutoCAD plugin.
I recently switched from AutoCAD 2024 to AutoCAD 2025 and I'm migrating the project to .NET8.
The project itself has no issues. It successfully compiles.
But I'm unable to load the DocumentFormat.OpenXml.dll into AutoCAD 2025. I'm getting the below error.
Command: NETLOAD
Cannot load assembly. Error details: System.IO.FileLoadException: Could not load file or assembly 'DocumentFormat.OpenXml, Version=3.1.0.0, Culture=neutral, PublicKeyToken=8fb06cb64d019a17'.
at System.Runtime.Loader.AssemblyLoadContext.<LoadFromPath>g____PInvoke|5_0(IntPtr __ptrNativeAssemblyBinder_native, UInt16* __ilPath_native, UInt16* __niPath_native, ObjectHandleOnStack __retAssembly_native)
at System.Runtime.Loader.AssemblyLoadContext.LoadFromAssemblyPath(String assemblyPath)
at System.Reflection.Assembly.LoadFrom(String assemblyFile)
at Autodesk.AutoCAD.Runtime.ExtensionLoader.Load(String fileName)
at Autodesk.AutoCAD.ApplicationServices.ExtensionLoader.Load(String fileName)
at loadmgd()
I can load the "DocumentFormat.OpenXml.Framework.dll" into 2025 but not the first one.
I can load both the dlls into AutoCAD 2024 without issues.
Am I missing something ? Could any one please help?
Thanks in advance.