473,394 Members | 1,778 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,394 software developers and data experts.

ASP.NET and Starting Proceses [yet another (hopefully the last) question]

hi again.. i wrote a webservice like this:

[WebMethod]

public void DrawPlot()

{

System.Diagnostics.Process R = new System.Diagnostics.Process();

R.StartInfo.FileName = "plot.vbs";

R.StartInfo.WindowStyle = System.Diagnostics.ProcessWindowStyle.Hidden;

R.StartInfo.CreateNoWindow = true;

R.Start();
//R.WaitForExit();

}

which has to run the "plot.vbs" command when the service runs..

but i cant make it run.. i get a "this page cannot be displayed" error when
i run that method. what am i doin wrong? is there something that i need to
add into web.config or something elsE?

thanx for your time and helping..
Nov 19 '05 #1
2 930

Hi Serdar:

I believe what you'll need to do is actually execute cscript.exe as
the process, and pass the script file as an argument.

--
Scott
http://www.OdeToCode.com/blogs/scott/

On Sun, 8 May 2005 14:31:44 +0300, "Serdar C."
<se*****@interaktif.gen.tr> wrote:
hi again.. i wrote a webservice like this:

[WebMethod]

public void DrawPlot()

{

System.Diagnostics.Process R = new System.Diagnostics.Process();

R.StartInfo.FileName = "plot.vbs";

R.StartInfo.WindowStyle = System.Diagnostics.ProcessWindowStyle.Hidden;

R.StartInfo.CreateNoWindow = true;

R.Start();
//R.WaitForExit();

}

which has to run the "plot.vbs" command when the service runs..

but i cant make it run.. i get a "this page cannot be displayed" error when
i run that method. what am i doin wrong? is there something that i need to
add into web.config or something elsE?

thanx for your time and helping..


Nov 19 '05 #2
at last i have a working webservice...

thanx so much for helping, god bless the msdn :)
"Scott Allen" <sc***@nospam.odetocode.com> wrote in message
news:i0********************************@4ax.com...

Hi Serdar:

I believe what you'll need to do is actually execute cscript.exe as
the process, and pass the script file as an argument.

--
Scott
http://www.OdeToCode.com/blogs/scott/

On Sun, 8 May 2005 14:31:44 +0300, "Serdar C."
<se*****@interaktif.gen.tr> wrote:
hi again.. i wrote a webservice like this:

[WebMethod]

public void DrawPlot()

{

System.Diagnostics.Process R = new System.Diagnostics.Process();

R.StartInfo.FileName = "plot.vbs";

R.StartInfo.WindowStyle = System.Diagnostics.ProcessWindowStyle.Hidden;

R.StartInfo.CreateNoWindow = true;

R.Start();
//R.WaitForExit();

}

which has to run the "plot.vbs" command when the service runs..

but i cant make it run.. i get a "this page cannot be displayed" error wheni run that method. what am i doin wrong? is there something that i need toadd into web.config or something elsE?

thanx for your time and helping..

Nov 19 '05 #3

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

Similar topics

9
by: AA Arens | last post by:
When I start a new record, the <autonumbering> ID in the field is not updated yet, only when I fill in the first field of that record. How to solver it? Bart Access 2003
8
by: cypher543 | last post by:
This has been driving me insane for the last hour or so. I have search everywhere, and nothing works. I am trying to use the subprocess module to run a program and get its output line by line. But,...
1
by: Madmartigan | last post by:
Hello I have developed a hangman game using windows forms. Everything works well except when the user opts to play a new game. Is there a simple method on a button click that allows the form to be...
0
true911m
by: true911m | last post by:
I looked for a better place to put this - hopefully it will still get some traffic here. :) I need a questionnaire, or an assessment template of sorts. I know, "it must be out there somewhere" --...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
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: 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
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
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
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...

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.