Hi there

I have a module writen in VB.NET compiled using vbc as sync.exe.

If I point IE to http://localhost/sync.exe the Windows Form loads perfectly.

But I don't get the same if, from within ASP.NET code, I run the following ~

Dim ass As Assembly = Assembly.LoadFrom("C:\Inetpub\wwwroot\sync.exe")

The form evidently loads into memory but it doesn't show on screen.

Please help
Best regards
Loane

Re: run .exe from IE using ASP.NET script by Herfried

Herfried
Sun Feb 20 13:48:47 CST 2005

"Loane Sharp" <look_sharp@hotmail.com> schrieb:
> If I point IE to http://localhost/sync.exe the Windows Form loads
> perfectly.
>
> But I don't get the same if, from within ASP.NET code, I run the following
> ~
>
> Dim ass As Assembly = Assembly.LoadFrom("C:\Inetpub\wwwroot\sync.exe")
>
> The form evidently loads into memory but it doesn't show on screen.

Your code will load the assembly on the /server side/, not on the client
side.

--
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://dotnet.mvps.org/dotnet/faqs/>


Re: run .exe from IE using ASP.NET script by Loane

Loane
Sun Feb 20 14:58:37 CST 2005

Hi Herfried

Thanks very much. If I wanted the windows forms application to load from
within a web page that I browse to, do you know how I would do that?

Best regards
Loane

"Herfried K. Wagner [MVP]" <hirf-spam-me-here@gmx.at> wrote in message
news:ejpmvU4FFHA.2564@tk2msftngp13.phx.gbl...
> "Loane Sharp" <look_sharp@hotmail.com> schrieb:
>> If I point IE to http://localhost/sync.exe the Windows Form loads
>> perfectly.
>>
>> But I don't get the same if, from within ASP.NET code, I run the
>> following ~
>>
>> Dim ass As Assembly = Assembly.LoadFrom("C:\Inetpub\wwwroot\sync.exe")
>>
>> The form evidently loads into memory but it doesn't show on screen.
>
> Your code will load the assembly on the /server side/, not on the client
> side.
>
> --
> M S Herfried K. Wagner
> M V P <URL:http://dotnet.mvps.org/>
> V B <URL:http://dotnet.mvps.org/dotnet/faqs/>