• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 502
  • Last Modified:

Add an assembly to the GAC.

I'm want to add assembly to the GAC.  I did this:

Added a setup project to my solution.  Create the GAC folder.  Signed my Assembly.  Added my Assembly to the GAC folder.  Built the setup.  Ran the setup on the target machine.

Now, my DLL has a dependency on a third party DLL.  After I run the setup, I see the third party DLL but I do not see mine.   if I try to uninstall the third party DLL from the GAC, I get error message about it being required by other applications.  That makes sense if my DLL was installed.  

Why can I not see my DLL?  Does the signing change the name by which I recognize it?  What could be wrong? What name is used in the GAC, based on my Project?  
0
HLRosenberger
Asked:
HLRosenberger
  • 6
  • 5
1 Solution
 
f_o_o_k_yCommented:
Did you use that step to add dll to GAC or something different?

 in the File System tab of
the VS Setup project, right click on left pane, Add Special Folder and
select Global Assembly Cache Folder and add your dll there.


Best Regrads
 Fooky
0
 
HLRosenbergerAuthor Commented:
That's what I did, as you described.   So, why do I not see my DLL in the GAC when I view it with Explorer?
0
What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

 
f_o_o_k_yCommented:
Try sorting your assembly by publikkey

You can also try using .netConfiguration tool to look for dependencies

http://msdn.microsoft.com/en-us/library/ms973843.aspx

try using gacutil to install manually your dll and try to find it in folder.
0
 
HLRosenbergerAuthor Commented:
I sorted the GAC in explorer by Public Key and looked for the key for my assembly, but It's not there.  Is there possibly a step I missed in creating the Setup.exe?
0
 
f_o_o_k_yCommented:
Are you sure that you are searching in right place?
Note that for .NET 4.0 the GAC location is now:
%windir%\Microsoft.NET\assembly\...

If its < 4.0 then
%windir%\assembly\...

Best Regards
FooKy
0
 
HLRosenbergerAuthor Commented:
The answer is that there are two GAC's - one for CLR 2.0 and one for CLR 4.0.
0
 
HLRosenbergerAuthor Commented:
I've requested that this question be closed as follows:

Accepted answer: 0 points for HLRosenberger's comment http:/Q_27377193.html#36905959

for the following reason:

This is the correct answer
0
 
f_o_o_k_yCommented:
Hello,
HLRosenberger I disagree with your request to close this question.
My answer  #36905894 was correct.

I need to send my objections and request for Community Support for Moderator review.

Best Regards
Fooky
0
 
HLRosenbergerAuthor Commented:
You are correct.  I missed his last post.  Please award his the point.  

My apologies to f_o_o_k_y.
0
 
HLRosenbergerAuthor Commented:
Thanks
0

Featured Post

New feature and membership benefit!

New feature! Upgrade and increase expert visibility of your issues with Priority Questions.

  • 6
  • 5
Tackle projects and never again get stuck behind a technical roadblock.
Join Now