Click here to Skip to main content
15,891,828 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
hai everyone
I need a suggestion that how to execute a programm in the background upto now i can able to run a programm in background in my web application but what i need is i need to compile and run the programm in the background and store the result in the table everytime if there are any errors in the programm i need to display.

Hope can anybody able to suggest me.


Thanks &Regards,
Posted
Updated 15-Mar-13 21:10pm
v2

1 solution

Various ways you can do it.
1. You can create a thread and set its property background. Start the thread when you need from your application.
2. You can use System.ComponentModel.BackgroundWorker class from your web application. It will take care all your background program running job.
3. You can create a method which run the program and execute that method asynchronously.
4. If you can run an executable from your web application then please read the article
Run .exe inside ASP.NET and catch exception using AppDomain[^]
 
Share this answer
 
Comments
Deepthi.B 16-Mar-13 3:33am    
even i am using System.ComponentModel.BackgroundWorker class to run my application ,can we able to execute ".cs" files in the background instead of .exe files.
S. M. Ahasan Habib 16-Mar-13 8:22am    
yes you can use .cs files methods. please visit the link for example
http://unboxedsolutions.com/sean/archive/2005/11/05/787.aspx

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900