Click here to Skip to main content
15,901,284 members
Home / Discussions / ASP.NET
   

ASP.NET

 
GeneralRe: Not showing console application through the asp.net web service in windows 2003 Pin
Pankaj Saha26-Mar-09 6:26
Pankaj Saha26-Mar-09 6:26 
GeneralRe: Not showing console application through the asp.net web service in windows 2003 Pin
Yusuf26-Mar-09 6:30
Yusuf26-Mar-09 6:30 
GeneralRe: Not showing console application through the asp.net web service in windows 2003 Pin
Pankaj Saha26-Mar-09 6:44
Pankaj Saha26-Mar-09 6:44 
GeneralRe: Not showing console application through the asp.net web service in windows 2003 Pin
Yusuf26-Mar-09 6:52
Yusuf26-Mar-09 6:52 
GeneralRe: Not showing console application through the asp.net web service in windows 2003 Pin
Pankaj Saha26-Mar-09 7:12
Pankaj Saha26-Mar-09 7:12 
GeneralRe: Not showing console application through the asp.net web service in windows 2003 Pin
Yusuf26-Mar-09 7:27
Yusuf26-Mar-09 7:27 
GeneralRe: Not showing console application through the asp.net web service in windows 2003 Pin
Pankaj Saha26-Mar-09 7:58
Pankaj Saha26-Mar-09 7:58 
GeneralRe: Not showing console application through the asp.net web service in windows 2003 Pin
Yusuf26-Mar-09 8:36
Yusuf26-Mar-09 8:36 
Ok, what you saying is

- each server has a number of asp.net application
- each application consumes the same web service
- the web service calls console application
- the console application performs some configuration.
is this right?

If so, I'm totally at loss. See my first post again. The solution you trying to reach at does not seem optimal to me. Here is how I solve it.

1. Since all the servers are running asp.net pages, I eliminate the web service and console up and write the functionality of both in the asp.net app.

2. If solution #1 is not possible, then I will eliminate the web service and call the console from the asp.net app

3. If solution # 2 is not possible, then what can I say.


As far as the console app, I will not show it at all. Instead I call it as following (Take it with a grain of salt, you will need to modify the code to your needs)

ProcessStartInfo startInfo = new ProcessStartInfo();
startInfo.FileName = <insert your application including path here>
startInfo.Arguments = <insert all your arguments you want to pass to your application here>;
startInfo.CreateNoWindow = true; 

// Redirect output so we can read it.
startInfo.RedirectStandardOutput = true;

Process convertProcess = new Process();        

// Start the process.
convertProcess.StartInfo = startInfo;

// Set UseShellExecute to false to suppress COMMAND window from showing.
convertProcess.StartInfo.UseShellExecute = false;

EventLog.WriteEntry(mySupperApp, what ever :-) , System.Diagnostics.EventLogEntryType.Information);

convertProcess.Start();

convertProcess.WaitForExit();

string result = convertProcess.StandardOutput.ReadToEnd();


Yusuf

Oh didn't you notice, analogous to square roots, they recently introduced rectangular, circular, and diamond roots to determine the size of the corresponding shapes when given the area. Luc Pattyn[^]

GeneralRe: Not showing console application through the asp.net web service in windows 2003 Pin
Pankaj Saha26-Mar-09 19:47
Pankaj Saha26-Mar-09 19:47 
GeneralRe: Not showing console application through the asp.net web service in windows 2003 Pin
Yusuf27-Mar-09 0:39
Yusuf27-Mar-09 0:39 
GeneralRe: Not showing console application through the asp.net web service in windows 2003 Pin
Pankaj Saha27-Mar-09 6:32
Pankaj Saha27-Mar-09 6:32 
GeneralRe: Not showing console application through the asp.net web service in windows 2003 Pin
Yusuf27-Mar-09 8:52
Yusuf27-Mar-09 8:52 
QuestionHow to be allowed to start/stop windows service via ASP.NET page Pin
Herman<T>.Instance26-Mar-09 4:32
Herman<T>.Instance26-Mar-09 4:32 
AnswerRe: How to be allowed to start/stop windows service via ASP.NET page Pin
led mike26-Mar-09 5:04
led mike26-Mar-09 5:04 
AnswerRe: How to be allowed to start/stop windows service via ASP.NET page Pin
Yusuf26-Mar-09 5:43
Yusuf26-Mar-09 5:43 
GeneralRe: How to be allowed to start/stop windows service via ASP.NET page Pin
Herman<T>.Instance26-Mar-09 22:36
Herman<T>.Instance26-Mar-09 22:36 
GeneralRe: How to be allowed to start/stop windows service via ASP.NET page Pin
Yusuf27-Mar-09 0:49
Yusuf27-Mar-09 0:49 
Questionhow i get the ip address of client machine Pin
jayesh pune26-Mar-09 3:52
jayesh pune26-Mar-09 3:52 
AnswerRe: how i get the ip address of client machine Pin
David Mujica26-Mar-09 3:59
David Mujica26-Mar-09 3:59 
AnswerRe: how i get the ip address of client machine Pin
Peter Mühlhofer26-Mar-09 4:00
Peter Mühlhofer26-Mar-09 4:00 
AnswerRe: how i get the ip address of client machine Pin
Herman<T>.Instance26-Mar-09 4:35
Herman<T>.Instance26-Mar-09 4:35 
Questionpagination through dataset Pin
bikash pattanayak26-Mar-09 3:18
bikash pattanayak26-Mar-09 3:18 
AnswerRe: pagination through dataset Pin
Yusuf26-Mar-09 3:27
Yusuf26-Mar-09 3:27 
AnswerRe: pagination through dataset Pin
Vimalsoft(Pty) Ltd26-Mar-09 4:06
professionalVimalsoft(Pty) Ltd26-Mar-09 4:06 
AnswerRe: pagination through dataset Pin
Blue_Boy26-Mar-09 4:07
Blue_Boy26-Mar-09 4:07 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.