Help | Site Map
Connecting Tech Pros Worldwide
Reply
 
LinkBack Thread Tools
  #1  
Old April 10th, 2008, 10:46 AM
Newbie
 
Join Date: Feb 2008
Posts: 11
Default Web Service not invoking exe through IIS

I have created a web service which calls an exe and i am consuming it using a web page,but the service and page are not calling the exe when run through the IIS.my code is:

ProcessStartInfo ProcessInfo;
Process pro;
ProcessInfo = new ProcessStartInfo("E:\\WebSite\\freecell.exe" );
ProcessInfo.CreateNoWindow = true;
ProcessInfo.UseShellExecute = false;

pro = Process.Start(ProcessInfo);
//ExitCo = pro.ExitCode;
//return "Testing";
string sMsg = string.Empty;

if(!pro.HasExited)
{
sMsg = " Started ";

}
else
{
sMsg = "Failed";
}
return sMsg;
Reply
Reply

Bookmarks

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 Off
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

What is Bytes?

We are a network of experts and professionals in IT and software development that help one another with answers to tough questions and share insights. Get the best answers to your questions from over network members.
Post your question now . . .
It's fast and it's free

Popular Articles