[Closed] Need DotNet Expert
Hi guys!
Today we are trying to build a dotnet 4 assembly with are devtool WinDev.
So we have a assembly that is loading correctly in Max 2012 without error.
The problem is when I’m trying to create the object instance or class instance it’s
always give me dotNet runtime exception: Strong name validation failed. (Exception from HRESULT: 0x8013141A)
Searching the web we found that the assembly must have a signed registrated file when compiled. So we generated a snk file with sn.exe from Windows7 SDK dotnet 4 but still give
us that error… Is there something that we are doing wrong?
This is only for testing purpose, if we are able to make this run we will connect our other inhouse tool with this. There is only one method for testing: InfoPopup that display a message.
The 3dsmax code:
assembly = dotNet.loadAssembly "C:\\Temp\\dn4_64b\ stdnet.dll"
myDotNetObject = dotnetobject "WL.ClsTest"
You can find the assembly and needed DLL in this link.
http://upload.urbanimmersive.com/dn4_64b.zip
Regards,
OZRay
i see that the problem is not with tstdnet.dll
the system can’t load wd160net4 and wd160net4_64
Ok… Do I need to load it somewhere? If I remember I copied those file in my Win7 folder…
I searched all day long about that string name validation tryed to create a snk file, register it in my DLL, bot nothing. I never suspected that the other DLL was not able to load.
these two DLL cause the exception:
Strong name validation failed. (Exception from HRESULT: 0x8013141A)
Could not load file or assembly ‘…’ or one of its dependencies
so you have to fix them first.
Ok but the assembly is loading if I got this:
dotNetObject:System.Reflection.RuntimeAssembly
– Error occurred in anonymous codeblock; filename: Z:\Dev\MaxScript\InHouse\Urbanimmersive_DOTNET est_New_DLL.ms; position: 111; line: 3
– Runtime error: dotNet runtime exception: Strong name validation failed. (Exception from HRESULT: 0x8013141A)
OK
If I remove the dotnetclass creation and leave only the assembly I got a Ok message about the assembly correctly loaded.
I got the Strong name validation error only if I try to create a object or class from the assembly…
Thanks to try helping me,
OZRay
for me it seems like the object that you want to create uses some classes from a not loaded DLL.