Quantcast
Channel: Visual C# forum
Viewing all articles
Browse latest Browse all 31927

FileNotFoundException in Assembly.ReflectionOnlyLoad

$
0
0

Hi everyone

I am using a code which collects the assemblies used in a program(which is not mine I'm just using it for another purpose). I have to use this code:

try

{

fileName = System.Reflection.Assembly.ReflectionOnlyLoad(asmName).Location;

 

}

It worked correctly for 'mscorlib' and 'system'. but returns the following error for 'System.Configuration'

+  $exception {"Could not load file or assembly 'System.Configuration' or one of its dependencies. The system cannot find the file specified.":"System.Configuration"} System.Exception {System.IO.FileNotFoundException}

why this is happening ?

Thanks


There is no fun like C#!


Viewing all articles
Browse latest Browse all 31927

Latest Images

Trending Articles



Latest Images

<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>