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

Home >> Forum >> .NET Framework >> Post New QuestionBookmark and Share Subscribe to Forum

Select dll from global assembly cache at runtime

Posted By: Karthikeyan Anbarasan     Posted Date: December 30, 2010    Points:2   Category :.NET Framework
How to select a dll from gac at runtime by giving a specific assembly?

Author: Sunil Yadav       [Moderator]      
Posted Date: March 10, 2011     Points: 20   


You can use below code to call assembly at runtime.

This is the deprecated one.
var assembly = Assembly.LoadWithPartialName("ADODB"); 

This get the assembly reference from GAC.
string assemblyInfo = "ADODB,Version=7.0.3300.0,Culture=Neutral,PublicKeyToken=b03f5f7f11d50a3a";

Assembly myAssembly= Assembly.Load(assemblyInfo);

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

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