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

Top 5 Contributors of the Month
Melody Anderson

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

Calling assembly at runtime

Posted By: Karthikeyan Anbarasan     Posted Date: December 29, 2010    Points:2   Category :.NET Framework
How we can call an assembly at rumtime and get the details of assembly to load into project.

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);

Hope this helps.

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