sAssemblyName = "C:/Program Files/Myapplication/Myapplication.e xe";
// load the given assembly...
Assembly assem = Assembly.LoadFr om(sAssemblyNam e);
AssemblyName[] a = assem.GetRefere ncedAssemblies( );
foreach (AssemblyName assm in a)
{
Assembly ms = Assembly.LoadFr om(assm.Name);
Console.WriteLi ne("name:...
User Profile
Collapse
-
Could not load file or assembly
Hi,
I have developed an application in C#. Now I'm working on a tool which is again written in c# which will give me all the assemblies referenced by my application. In the code i need to get each assembly recursively and load it. When I run my tool some of the assemblies are loaded successfully but it end up giving following exception:
Can anyone help me out with this. Im totally stuck...
No activity results to display
Show More
Leave a comment: