473,407 Members | 2,359 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,407 software developers and data experts.

URGENT: IIS vs. webmatrix server

Hi,
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
-W2/0/0/255";
arg1 += @" > c:\inetpub\wwwroot\temp\test.ps";

string arg2 = @"-R -Jq -O ";
arg2 +=
@"c:\inetpub\wwwroot\temp\gravitydata.dat";
arg2 += @" -G0/255/255 -Sc0.05c";
arg2 += @">> c:\inetpub\wwwroot\temp\TEMPO.ps";
//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();
pscoast.WaitForExit();

// Write pscoast process output
// to file

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

w1.Close();
fs1.Close();

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();
psxy.WaitForExit();

// Write psxy process output
// to file

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

w2.Close();
fs2.Close();

}

Thanks in advance,

Jorge.
Jul 19 '05 #1
0 1421

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
by: smith flyers | last post by:
hi, i did read back newgroups archive, tried search engines. Can anyone provide me with link to download visual studio net evalution ? I know is possible to purchase directly from microsoft. But i...
6
by: cory | last post by:
Hi, I have Windows XP home edition. I have found out that it is difficult to get IIS to work on this edition. I am planning on doing presentations on my laptop local to my hard drive. Will the...
0
by: Bill Godsil | last post by:
I am trying to build a little Documentation search site, using WebMatrix, Access, and Index Server. I am placing my documentation in individual pages, as Index Server doesn't seem to want to...
1
by: nicholas | last post by:
I use WebMatrix to modifie my asp.NET pages. Now, I noticed that WebMatrix changes the code without saying anything. example: <IMAGE ... is replaced with <img... (this is a specific tag for a...
6
by: Brian Miller | last post by:
I've been constructing an ASP.Net application using the 1.1 framework, and have been using Web Matrix for development purposes. Now that my application is near completion, I wanted to see if I can...
6
by: | last post by:
I am starting out my transition from classic asp to .NET and was hoping some advice could be offered on using Webmatrix to do my initial small asp-like, xml and flash embedded projects. ...
16
by: | last post by:
Hi all, I have a website running on beta 2.0 on server 2003 web sp1 and I keep getting the following error:- Error In:...
0
by: Jorge | last post by:
Hi, 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. ...
1
by: Richard | last post by:
Hi, I'm running WebMatrix, v. 0.6.812, over WinXP/SP2 with .Net Framework 1.0 & 1.1. I'm following the examples in ASP.NET Web Matrix Project Guided Tour, specifically the 2nd example at...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.