|
-
Dec 23rd, 2003, 12:04 AM
#1
Thread Starter
yay gay
How to add a DLL to the GAC?
I have 2 DLL's (which is not mine). One is from version1 and other is version2. I installed DLL 1 and everything went alright. It installed it also in the GAC. Now I tried replacing version2 with version1 but it just acts like I was using version1 DLL. I know this has something to do with the GAC. What have I to do? Do I really have to use the GAC? I tried deleting it but it doesnt allow I dont know why..
I also tried to add the new DLL to the GAC but it says it's not a strong assembly (but i've tried doing "sn -v dllname.dll" and it said it was a valid assembly)
Any help is greatly appreciated
\m/  \m/
-
Dec 23rd, 2003, 07:55 AM
#2
Fanatic Member
You can access the GAC by Start/settings/control panel/ admin tools/ 1.1 configuration - assembly cache link.
Are you using auto-deployment - because there is a separate cache for those dlls that you may need to clear.
-
Dec 23rd, 2003, 08:29 AM
#3
Sleep mode
MSDN Help .
ms-help://MS.VSCC.2003/MS.MSDNQTR.2003APR.1033/cpguide/html/cpconinstallingassemblyintoglobalassemblycache.htm
-
Dec 23rd, 2003, 11:08 AM
#4
Thread Starter
yay gay
hmm solved it.
The problem was the DLL already had a key assigned to it in code and then when i tried to give it another he wouldn't know what to choose. Anyways here's how i compiled it:
Code:
sn -k "key.snk"
ilasm "my_il_file.il" /DLL /KEY="key.snk"
\m/  \m/
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|