Thursday, February 15, 2018

C# - Load Assembly from Remote Server

Working on a C# reflection web project, I needed to load various dlls from a remote server's GAC_MSIL location. Armed with only a Turky Hill green tea and the assembly's full name, I set out on the web to seek some guidance.



Assuming:
- The dll is stored on the remote server's GAC_MSIL (Service will have read access)
- All dlls use .Net 4.0 framework
- We're using System.Reflection

Here is what I came up with: