a strong named DLL which calls a native one ??

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Hello all, here's my problem :
I wrote a .Net CF DLL which calls a native one.

I try to put my DLL into the GAC (strong name, .gac file), and each time a
call occurs to my DLL, I get a TypeLoadException on MY type (not a problem of
..Net assemblies).

Any idea ??
 
sounds like the dll didn't make it into the GAC. Take a look at the GACLOG
file in the root folder of the device for clues. Also check the registry
at:-
HKLM\SOFTWARE\Microsoft\.NETCompactFramework\Installer\Assemblies\Global
For all assemblies currently in the GAC

Peter

--
Peter Foot
Windows Embedded MVP
www.inthehand.com | www.opennetcf.org

Do have an opinion on the effectiveness of Microsoft Windows Mobile and
Embedded newsgroups? Let us know!
https://www.windowsembeddedeval.com/community/newsgroups
 
Since you gave me this trick some days ago I always check it and it's not.
That's probably why I get the message :
"Test.exe TypeLoadException
Impossible to load the type MyType".

But weirdly, there is no GACLOG.TXT file on my PPC (SP3 Beta running).

And of course, when deployed privately, everything runs well.
 
Yes of course. The only thing I can confirm is the SP3 doesn't write the
GACLOG.TXT.

I also tried to register my DLL with cgacutil -i MyDLL.dll, this returns no
error messages but the DLL is not registered.
 
Please make sure your DLL is fully signed (as opposed to delay signed)
otherwise it will not be GAC-ed.
You can use sn.exe [Microsoft (R) .NET Framework Strong Name Utility] to do
so.

Pavel Treskunov
.NET Compact Framework
This posting is provided "AS IS" with no warranties, and confers no rights.

--------------------
Thread-Topic: a strong named DLL which calls a native one ??
thread-index: AcSLTFUnbSUHTEoNSuiqP000EVc9Pw==
X-WBNR-Posting-Host: 192.35.17.15
From: "=?Utf-8?B?Um9tdQ==?=" <[email protected]>
References: <[email protected]>
<[email protected]>
 
Back
Top