Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > ASP.NET and Starting Proceses [yet another (hopefully the last) question]

Reply
Thread Tools

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

 
 
Serdar C.
Guest
Posts: n/a
 
      05-08-2005
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..


 
Reply With Quote
 
 
 
 
Scott Allen
Guest
Posts: n/a
 
      05-08-2005

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."
<(E-Mail Removed)> 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..
>


 
Reply With Quote
 
 
 
 
Serdar C.
Guest
Posts: n/a
 
      05-08-2005
at last i have a working webservice...

thanx so much for helping, god bless the msdn


"Scott Allen" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
>
> 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."
> <(E-Mail Removed)> 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..
> >

>



 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
3 ESSENTIAL TOOLS FOR STARTING AND MAINTAINING...3 ESSENTIAL TOOLSFOR STARTING AND MAINTAINING...3 ESSENTIAL TOOLS FOR STARTING ANDMAINTAINING... Oanh Bui C++ 0 04-27-2009 12:51 PM
3 ESSENTIAL TOOLS FOR STARTING AND MAINTAINING...3 ESSENTIAL TOOLSFOR STARTING AND MAINTAINING...3 ESSENTIAL TOOLS FOR STARTING ANDMAINTAINING... Oanh Bui C Programming 0 04-27-2009 12:51 PM
3 ESSENTIAL TOOLS FOR STARTING AND MAINTAINING...3 ESSENTIAL TOOLSFOR STARTING AND MAINTAINING...3 ESSENTIAL TOOLS FOR STARTING ANDMAINTAINING... Oanh Bui Python 0 04-27-2009 12:46 PM
starting VOIP without broadband and forwarding ALL calls to another Vonage number? news.rcn.com UK VOIP 3 04-02-2006 12:20 AM
Renaming a project with another project as the starting point? In another solution Maziar Aflatoun ASP .Net 1 01-22-2005 12:49 AM



Advertisments