Ken Kolda
9/25/2004 12:12:00 AM
Although I can't explain that behavior, have you tried using
object frmObj = formAsm.CreateInstance("MySpace.MyForm")
instead?
Ken
"fermo111" <fermo111@yahoo.it> wrote in message
news:649247dd.0409241539.7e1a1660@posting.google.com...
> The following code results in a strange behavior.
>
> Assembly formAsm = Assembly.LoadFrom
("http://localhost/net/MyAssembly.dll");
> Type formType = formAsm.GetType ("MySpace.MyForm");
> object formObj = Activator.CreateInstance (formType);
>
> Looking at the HTTP requests that are made, I noticed
> that the assembly is requested twice from the server.
> The first time the HTTP message is
>
> GET /net/MyAssembly.dll
>
> and the second time is
>
> GET /net/MyAssembly.DLL (DLL is uppercase this time)
>
> The result is that the DLL takes twice the time to download.
>
> Any help on this?
>
> Luca