
Signature
.NET 2.0 for Delphi Programmers
www.midnightbeach.com/.net
What you need to know.
Hi,
Filename is: "c:\\folder\\myassembly.dll"
when I use MyDomain.Load(AssemblyName.GetAssemblyName(filename)) it works
perfectly.
when I use MyDomain.Load(filename) it throws a
System.IO.FileLoadExceptionexception claiming it cannot load.
How come?
Ron
>> I was able to find this example:
>> Load(AssemblyName.GetAssemblyName(filename))
>>
>> Is the AssemblyName class really required?
>
> No. Look at AppDomain.Load(string).
Jon Shemitz - 30 Nov 2006 18:45 GMT
> Filename is: "c:\\folder\\myassembly.dll"
>
[quoted text clipped - 4 lines]
>
> How come?
Apparently, I have only used Load(string) with assemblies in the app
directory.

Signature
.NET 2.0 for Delphi Programmers
www.midnightbeach.com/.net
What you need to know.
Michael Nemtsev - 30 Nov 2006 19:34 GMT
Hello Ron,
Try to use MyDomain.LoadFrom
RN> Hi,
RN>
RN> Filename is: "c:\\folder\\myassembly.dll"
RN>
RN> when I use MyDomain.Load(AssemblyName.GetAssemblyName(filename)) it
RN> works
RN> perfectly.
RN> when I use MyDomain.Load(filename) it throws a
RN> System.IO.FileLoadExceptionexception claiming it cannot load.
RN> How come?
RN>
RN> Ron
RN>
RN> "Jon Shemitz" <jon@midnightbeach.com> wrote in message
RN> news:456E2966.33A7AE41@midnightbeach.com...
RN>
>>> I was able to find this example:
>>> Load(AssemblyName.GetAssemblyName(filename))
[quoted text clipped - 7 lines]
>> www.midnightbeach.com/.net
>> What you need to know.
---
WBR,
Michael Nemtsev [C# MVP] :: blog: http://spaces.live.com/laflour
"At times one remains faithful to a cause only because its opponents do not
cease to be insipid." (c) Friedrich Nietzsche