Registry DLL in GAC

S

Simone

Hallo.
I have a problem.
I have created a dll in c# for CF.
I want to register this dll in GAC. I see the MSDN tip that explain that i
have to copy the dll (with strong name) in the windows directory and i have
to create a file .GAC with the \Windows\File.dll line.
I have made that but a my application that reference this dll cannot found
them (TypeLoadException).
I have tried to manually create the registry entry under
"HKLM\Software\Microsoft\.Net Compact Framework\Installer\Assemblies\Global"
like tihs:

Key:
ProdBiz, Version=1.0.2624.27681, Culture=neutral,
PublicKeyToken=E058A1922FF41257

Value:
\Windows\ProdBiz.dll

After that my app run correctly.

The question is: In the CAB project i have to create the registry entry for
my dll or there is another way?

Thanks.

Simon.
 
G

Guest

You don't have to call cgacutil.exe, you only have to create a .gac file
which references the libraries path each one a separate line. You also don't
have to copy the dll's to the Windows directory, it doesn't matter where the
DLLS live.

See here fore more information:
http://msdn2.microsoft.com/en-us/library/aa457090.aspx

VS 2003 but is relevant for VS2005 also.

Simon.
 

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