Updated: 10/13/2003; 9:14:31 PM.
John Lambert
First we show up, then we see what happens.
        

Wednesday, August 21, 2002

I can't tell if this show is real or fake... It's more like surreal.


10:45:25 PM    comment []  



AppDomains and Assemblies. I'm trying to search through a folder of assemblies for the one that contains my target class (which must implement IExecuteReport).  Once I find this class I want to create an instance of it and invoke the Execute() method.  Currently I'm having issues with the AppDomain.Load().  What I don't understand is why am I getting a "System.IO.FileNotFoundException" exception on the  Assembly asm = ad.Load(rawAssembly); line.  I am already loading the assembly with loadFile(string filename).  I am also referencing the same assemblies as the target assembly. Any ideas? [StronglyTyped - Richard Caetano's weblog on software development]

//byte[] rawAssembly = loadFile(filename);
AssemblyName an = new AssemblyName();
an.CodeBase = filename;
Assembly asm = ad.Load(an);

stopped FileNotFoundException-ing for me


10:22:00 PM    comment []  


© Copyright 2003 John Lambert jlambert@jlambert.com A really bad webcam picture of me.

 
August 2002
Sun Mon Tue Wed Thu Fri Sat
        1 2 3
4 5 6 7 8 9 10
11 12 13 14 15 16 17
18 19 20 21 22 23 24
25 26 27 28 29 30 31
Jul   Sep


Click here to visit the Radio UserLand website.

Subscribe to "John Lambert" in Radio UserLand.

Click to see the XML version of this web page.

Click here to send an email to the editor of this weblog.