[Closed] Error loading dot net assembly from arbitrary directory
Dot net stuff is kinda new to me.
dotNet.loadAssembly " C:/Program Files/myTools/external/Magick.NET-x64.dll"
result:
Runtime error: dotNet runtime exception: Invalid directory on URL.
i am able to load other assemblies form this directory.
I have a 64 bit system and I believe Max2013 supports dotnet 4.0 , which the version of the .dll was built for.
so I am uncertain what the issue is.
do certain .dlls expect to be in a specific location?
Try renaming the file from “Magick.NET-x64.dll” to “MagickNETx64.dll”.
I’ve had issues loading assemblies where there is more than one period in the file path… don’t ask me why.
Thank you for your responses.
It appears that 3DS Max 2013 does not in fact use dot net 4.0.
I had to use a version of the .dll which was built for dotnet 2.0.
You can force max to also accept newer versions of c#
in #maxroot > 3dsmax.exe.config
<configuration>
<startup useLegacyV2RuntimeActivationPolicy=“true”>
<supportedRuntime version=“v4.0”/>
</startup>
</configuration>
Now 4.0 assemblies should also work.
-Johan
You can force max to also accept newer versions of c#
why couldn’t they just enable this out of the box?
I’ll add this to my list of Max frustrations.
after no y-up axis, list controllers, and the lockedTracksMan interface.
anyhow, thanks for the tip!