Wrox Home  
Search P2P Archive for: Go

  Return to Index  

aspx thread: Initiating server process using ASP.NET


Message #1 by "Amit Kalani" <amit@c...> on Mon, 11 Dec 2000 10:59:20 -0500
This is a multi-part message in MIME format.



------=_NextPart_000_0054_01C06361.69C0E280

Content-Type: text/plain;

	charset="iso-8859-1"

Content-Transfer-Encoding: quoted-printable



Hi:

I am having an application like this:



User accesses a web page and select some parameters. Based on these 

parameters the Web page will initiate some program (actually a C# 

program)  on server. But since the program can take some time to finish, 

the page will not wait for it to finish and will display a confirmation 

page to user that program has been started.



Please suggest that how can I start a server process from ASP.NET page 

and continue execution of ASP.NET page without waiting for server 

process to finish.



Your help is highly appriciated.

Thanks

Amit






Message #2 by Richard Conway <ranger_conway@y...> on Mon, 11 Dec 2000 09:21:30 -0800 (PST)
I think your best bet is to use some form of

messaging. If you're using Win2K and COM+ it's very

easy to create queued components, using queue moniker 

GetObject("Queue://machineip;

andprotocol;queue_name;component_name").

You will have to configure a queue (it can be run in

loopback as well) and design your system around that

otherwise I'm not sure how you would avoid script

timeouts if the process takes longer to execute than

the scripttimeout on the IIS server.



Hope this helps.



Richard

--- Amit Kalani <amit@c...> wrote:

> Hi:

> I am having an application like this:

> 

> User accesses a web page and select some parameters.

> Based on these parameters the Web page will initiate

> some program (actually a C# program)  on server. But

> since the program can take some time to finish, the

> page will not wait for it to finish and will display

> a confirmation page to user that program has been

> started.

> 

> Please suggest that how can I start a server process

> from ASP.NET page and continue execution of ASP.NET

> page without waiting for server process to finish.

> 

> Your help is highly appriciated.

> Thanks

> Amit

> 

> 


  Return to Index