473,320 Members | 2,177 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,320 software developers and data experts.

System.Diagnostics.Process is not working in http web application

Hi my asp.net web application having one button which has the following code in its click event to open an .exe....

System.Diagnostics.Process pro = new System.Diagnostics.Process();
pro.StartInfo.WorkingDirectory = "./";
pro.StartInfo.FileName = "windraw1.1.exe";
pro.Start();

its is working fine if it is file system project. But in http type of project it doesnt work. also there wasnt any exceptions too. Also i have changed my virtual directory permissions to "scripts and Executables". but still it doesnt... plz let me know the solution for this...
Sep 5 '07 #1
5 1540
Plater
7,872 Expert 4TB
That code would attempt to run that program on the server.
Process.start doesn't always generate an exception.
I had it try and run a file with no association and it threw no exception because the file existed, it just had nothing it could do with it.
Sep 5 '07 #2
That code would attempt to run that program on the server.
Process.start doesn't always generate an exception.
I had it try and run a file with no association and it threw no exception because the file existed, it just had nothing it could do with it.

ok..Actually that .exe consists one vb.net winform. when i run this in http.. the windraw1.1.exe is created in task manager process.. but the form is not opening.
In file system the User type in task manager is "Administrator" which works fine...but in http, User type in task manager is "Network service" which is not opening the form.
if you give me a solution,that will be useful for me. Thanks in advance.
Sep 6 '07 #3
Plater
7,872 Expert 4TB
It looks like you will need to get the process to run under different credentials (probably that of the admin).
I know it can be done, but I have never done it unfortunatly.
Sep 6 '07 #4
It looks like you will need to get the process to run under different credentials (probably that of the admin).
I know it can be done, but I have never done it unfortunatly.

plz tell me how to do this.. should we do anything with IIS????
Sep 7 '07 #5
plz tell me how to do this.. should we do anything with IIS????
Hi,

Did you ever figure this out? I'm having essentially the same problem and I'm wondering if you ever found a solution...

TIA,
Tom
Jan 3 '08 #6

Sign in to post your reply or Sign up for a free account.

Similar topics

6
by: danl | last post by:
I need to be able to execute a .bat file from a C# web application I have the following code that compliles and seems to run fine, but the bat file never does it's work...
3
by: danl | last post by:
I need to be able to execute a .bat file from a C# web application I have the following code that compliles and seems to run fine, but the bat file never does it's work...
9
by: danl | last post by:
I need to be able to execute a .bat file from a C# web application I have the following code that compliles and seems to run fine, but the bat file never does it's work...
11
by: Nurit N | last post by:
This is the third newsgroup that I'm posting my problem. I'm sorry for the multiple posts but the matter becoming urgent. I hope this is the right place for it... I have created a very...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
0
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...

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.