Quantcast
Channel: .NET Framework Class Libraries forum
Viewing all articles
Browse latest Browse all 8156

ReflectionOnlyLoad example error: FileLoadException was unhandled

$
0
0

Hello,

I'm trying to use the example C# program from this article: https://msdn.microsoft.com/en-us/library/ms172331(v=vs.110).aspx

On a Windows 8.1 computer using Visual Studio 2013 Pro.

When I run it, it gives an error on the first line of the Main method of:

An unhandled exception of type 'System.IO.FileNotFoundException' occurred in mscorlib.dll

Additional information: Could not load file or assembly 'Source' or one of its dependencies. The system cannot find the file specified.

I'm not sure of what should go into the "Source" literal

(Assembly asm = Assembly.ReflectionOnlyLoad("Source");).

I tried using "C:\Windows\explorer.exe" and got the same error.

Am I supposed to replace "Source" with something?

Any help would be gratefully appreciated.

Thanks,
Tony


Stop The World, I want To Get Off! ........... Life Isn't About Waiting For The Storm To Pass ... It's About Learning To Dance In The Rain.






Viewing all articles
Browse latest Browse all 8156

Latest Images

Trending Articles



Latest Images

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