a strong named DLL which calls a native one ??

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 ??
 
P

Peter Foot [MVP]

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
 
G

Guest

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.
 
G

Guest

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.
 
P

Pavel Treskunov [MSFT]

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]>
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top