Author Topic: AutoCAD2025 and loading dependency dll's  (Read 863 times)

0 Members and 1 Guest are viewing this topic.

MickD

  • King Gator
  • Posts: 3684
  • (x-in)->[process]->(y-out) ... simples!
AutoCAD2025 and loading dependency dll's
« on: May 29, 2024, 09:19:50 PM »
A user alerted me to a problem loading my application in AutoCAD 2025, after installing AutoCAD 2025 and running the debugger I'm getting the same error and digging deeper in inner exceptions I get:

Code: [Select]
"Unable to load DLL 'mscorwks.dll' or one of its dependencies: The specified module could not be found. (0x8007007E)"
This has been working fine and works in the latest BricsCAD without issue. The dll referenced in is a supporting .net dll for my plugin and is used for both BricsCAD and AutoCAD builds and is independent of either platform (i.e. no ref's to CAD).

I've tried setting trusted folders and downrating security, running acad as admin etc, are there any other new security features in AutoCAD 2025 I might be missing? The dll definitely exists on my machine and AutoCAD loads the .Net framework if it's not installed so I have no clue why it can't find/load it.

Has anyone else had trouble loading dependencies of your plugin's dlls with the new AutoCAD?

UPDATE:
copying the dll into my plugin's folder works, this is not right though IMO, and why has this problem just started now??

« Last Edit: May 29, 2024, 09:37:02 PM by MickD »
"Programming is really just the mundane aspect of expressing a solution to a problem."
- John Carmack

"Everything that is possible demands to exist"
- Gottfried Wilhelm von Leibniz

It's Alive!

  • Retired
  • Needs a day job
  • Posts: 8926
  • AKA Daniel
Re: AutoCAD2025 and loading dependency dll's
« Reply #1 on: May 29, 2024, 09:51:51 PM »
Maybe thatís a Framework DLL that doesnít like Core?

 

MickD

  • King Gator
  • Posts: 3684
  • (x-in)->[process]->(y-out) ... simples!
Re: AutoCAD2025 and loading dependency dll's
« Reply #2 on: May 29, 2024, 10:13:21 PM »
Maybe thatís a Framework DLL that doesnít like Core?

huh, thanks for the heads up, I checked the install req's and:
Quote
If itís not already installed, Microsoft .NET Framework 4.8, will also be installed with AutoCAD 2025 including Specialized Toolsets. Microsoft .NET Framework 4.8 also requires a Windows version thatís currently supported by Microsoft.

Then did a search for AutoCAD dependencies and found: ( https://help.autodesk.com/view/OARX/2025/ENU/?guid=GUID-450FD531-B6F6-4BAE-9A8C-8230AAC48CB4 )
Quote
If you are targeting AutoCAD 2025 or AutoCAD 2025-based programs, you should use:

Microsoft Visual Studio 2022 version 17.8.0
Microsoft .NET 8.0

Ok, but then:
Quote
Note: Applications compiled with Microsoft Visual Studio 2019 version 16.0 or later should load into AutoCAD 2025 or AutoCAD 2025-based programs without any problems.

Anyway, thanks again for the nudge, I'll try it with .Net 8 and see how that goes, cheers.
"Programming is really just the mundane aspect of expressing a solution to a problem."
- John Carmack

"Everything that is possible demands to exist"
- Gottfried Wilhelm von Leibniz

It's Alive!

  • Retired
  • Needs a day job
  • Posts: 8926
  • AKA Daniel
Re: AutoCAD2025 and loading dependency dll's
« Reply #3 on: May 29, 2024, 10:37:31 PM »
I only have one .NET module left that I maintain in the app store. The framework version actually loaded just fine in 2025,
but I went ahead and used the conversion tool and ported it to Core.

I never tried to step into to it with the debugger though. I remember that .NET would load specific debugger depending on the .config settings.. so it may run, just not debug
Iím going to rewrite it in C++, I didnít take the news of Microsoft depreciating framework well   :crazy2:


MickD

  • King Gator
  • Posts: 3684
  • (x-in)->[process]->(y-out) ... simples!
Re: AutoCAD2025 and loading dependency dll's
« Reply #4 on: May 29, 2024, 10:59:47 PM »
I only have one .NET module left that I maintain in the app store. The framework version actually loaded just fine in 2025,
but I went ahead and used the conversion tool and ported it to Core.
:-o
Looks like I need to create another project just for this build...

I never tried to step into to it with the debugger though. I remember that .NET would load specific debugger depending on the .config settings.. so it may run, just not debug
Iím going to rewrite it in C++, I didnít take the news of Microsoft depreciating framework well   :crazy2:

:)
"Programming is really just the mundane aspect of expressing a solution to a problem."
- John Carmack

"Everything that is possible demands to exist"
- Gottfried Wilhelm von Leibniz

cmwade77

  • Swamp Rat
  • Posts: 1449
Re: AutoCAD2025 and loading dependency dll's
« Reply #5 on: May 30, 2024, 03:15:09 PM »
Most, if not all Autodesk 2025 products have moved to .NET 8.0