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

Top 5 Contributors of the Month
Gaurav Pal

Home >> Code Snippets >> Visual Studio >> Post New Resource Bookmark and Share   

 Subscribe to Code Snippets

All about Assembly Loader

Posted By:Karthikeyan Anbarasan       Posted Date: May 30, 2011    Points: 40    Category: Visual Studio    URL: http://www.dotnetspark.com  

All about Assembly Loader in .NET framework.

Assembly loader
  • Checks if the assembly is Strongly signed.
  • If yes it will search in the GAC
  • Loader will search the policy file name in the format of
    • Policy.AssemblyMajorVersion.AssemblyMinorVersion.AssemblyName
    • Eg. MyPolicy.1.2.Assembly1
  • If such a file exists it will look inside of it if the version of the assembly that we are trying to load matches the version/versions range written in the policy file. If it does, it will try to load the assembly with the version specified there. If no such policy file exists, it will try to load assembly from the GAC.
  • If it will fail to find it in the GAC, it will start to search in the system's search path.
  • In web applications it will also include the application's Bin directory in the search path.


Further Readings:


No response found. Be the first to respond this post

Post Comment

You must Sign In To post reply
Find More code samples in C#, ASP.Net, Vb.Net and more Here

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