.NET Tutorials, Forums, Interview Questions And Answers
Welcome :Guest
 
Sign In
Register
 
Win Surprise Gifts!!!
Congratulations!!!


Top 5 Contributors of the Month
david stephan

Home >> Forum >> C# >> Post New QuestionBookmark and Share Subscribe to Forum

How to access the DLL that is in GAC

Posted By: sankar     Posted Date: September 12, 2008    Points:2   Category :C#
Hi to all,


I have developed one DLL and i placed the DLL in GAC.

But I am not getting how to access the dll which is in GAC.

Actually i Added namespace in c#,

using sampleDll;


and when i compile the program i got error.


plz any one help me how to access the DLL that is in GAC.

Responses
Author: Amit Mehra             
Posted Date: September 12, 2008     Points: 5   

Hi

Have you added dll reference in your project by right click on the project?

Thanks,
Amit
Please "Mark As Answer " if this post help you.
Author: sankar             
Posted Date: September 12, 2008     Points: 5   

Hi Amit,

I didn't add reference, Adding DLL in GAC means available to all apllications know thats why i thought no need to add reference.


IF i add reference in application by using addreference tab,then what is the difference between the public and private assemblies.

Thank you very much........................

Author: Amit Mehra             
Posted Date: September 12, 2008     Points: 5   

Hi Shankar

You have to add the but your dll will not be copy to Bin folder until you do that. For eg Even system.dll is availabe in GAC but you have to add reference right?

Thanks,
Amit
Please "Mark As Answer " if this post help you.


Post Reply

You must Sign In To post reply
 
 
Find more Forum Questions on C#, ASP.Net, Vb.Net, SQL Server and more Here
Quick Links For Forum Categories:
ASP.NetWindows Application  .NET Framework  C#  VB.Net  ADO.Net  
Sql Server  SharePoint  OOPs  SilverlightIISJQuery
JavaScript/VBScriptBiztalkWPFPatten/PracticesWCFOthers
www.DotNetSpark.comUnAnsweredAll

Hall of Fame    Twitter   Terms of Service    Privacy Policy    Contact Us    Archives   Tell A Friend