By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
424,963 Members | 1,049 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 424,963 IT Pros & Developers. It's quick & easy.

URGENT: IIS vs. webmatrix server

P: n/a
I'm developing a web page application that runs 2 processeses. These
two process create postcript files, the first one creates a map and
the second one overlays data over that map.

Apparently my application was working fine when I ran it with the
webmatrix server however when I decided to use IIS to run the
application only one process ran.

Here's the code that is doing it:

public void CreateMapM(object sender, EventArgs e)
string programName1 ="pscoast.exe";
string programName2 = "psxy.exe";

string arg1 = @"-Jq-95/1:52000000 -R-130/-50/10/50
-B10g5 -G210/180/140";
arg1 += @"\ -I1/1/0/0/255 -K -N1 -N2 -P -S0/0/255
arg1 += @" > c:\inetpub\wwwroot\temp\";

string arg2 = @"-R -Jq -O ";
arg2 +=
arg2 += @" -G0/255/255 -Sc0.05c";
arg2 += @">> c:\inetpub\wwwroot\temp\";
//Create new processes info structure

ProcessStartInfo pscoastInfo = new ProcessStartInfo();
//Set the file name and arguments to each process

pscoastInfo.FileName = programName1;
pscoastInfo.Arguments = arg1;
pscoastInfo.RedirectStandardOutput = true;
pscoastInfo.UseShellExecute = false;

//Start pscoast process

Process pscoast = Process.Start(pscoastInfo);
string output1 = pscoast.StandardOutput.ReadToEnd();

// Write pscoast process output
// to file

FileStream fs1 = new
FileStream(@"c:\inetpub\wwwroot\temp\",Fil eMode.Create,
StreamWriter w1 = new StreamWriter(fs1);


ProcessStartInfo psxyInfo = new ProcessStartInfo();

//Set the file name and arguments of psxy process

psxyInfo.FileName = programName2;
psxyInfo.Arguments = arg2;
psxyInfo.RedirectStandardOutput = true;
psxyInfo.UseShellExecute = false;

//Start process psxy

Process psxy = Process.Start(psxyInfo);
string output2 = psxy.StandardOutput.ReadToEnd();

// Write psxy process output
// to file

FileStream fs2 = new
FileStream(@"c:\inetpub\wwwroot\temp\",Fil eMode.Append,FileAccess.Write);
StreamWriter w2 = new StreamWriter(fs2);



Thanks in advance,

Jul 19 '05 #1
Share this question for a faster answer!
Share on Google+

This discussion thread is closed

Replies have been disabled for this discussion.