Hi abel,
Do you suggest to copy the exe to the other machine to the same location? The exe is supposed to be presented on server side only.
Main Topics
Browse All TopicsIn my ASP.NET page, I need to call a server side exe when the user submits the form. The exe would take 2 parameters and it will create a folder at server side.
The problem is, I finish my work and it works nicely at my development machine. However when I test it with another machine (also a different login), I get the following error at the line I call the exe (I know the exact line because I write log)
"The system cannot find the file specified"
This Question has been solved and asker verified All Experts Exchange premium technology solutions are available to subscription members.
Experts Exchange has been collecting answers to technology questions since 1996…3 million and counting! If you have a question, chances are we already have your answer.
If you can't find the exact answer you're looking for, ask our exclusive community of 50,000 experts. You’ll get a personalized answer from a trusted professional.
Thousands of free tech tips, tricks, how-to’s and tutorials are available in our peer reviewed articles section. See for yourself how smart our experts are, no login required.
Access the answers to your technology questions today.
30-day free trial. Register in 60 seconds.
Members of the expert community talk about why the experience at Experts Exchange is different than what you will find anywhere else.

Try it out and discover for yourself.
30-day free trial. Register in 60 seconds.
Join the community of experts here and help other tech pros by answering question in your area of expertise. You can earn FREE access to all Experts Exchange's premium features and resources.
The executable must be on the same machine where your web site is running. This is not the client side (where you visit the page through a browser).
It must be there at the path mentioned. You can simply copy the path and paste it in the Run box of Windows start menu to find out whether it works.
The point that rkworlds is aiming at is that you can use ProcessStartInfo to separate the path from the parameters (at least, that's what it seems to say...). But you already did that, so that's not a problem here.
Alternatively, you can place the path of your executable in the PATH environment variable and remove the path from the Process.Start statement. It will then still work.
-- Abel --
Hi rkworlds,
I tried the solution suggested by you, it does not through any error but the exe is not doing its job (as if it is never called). This is the code I written:
Dim f As System.Diagnostics.Process
f = New System.Diagnostics.Process
Hi Abel,
Thanks for your prompt response. Let me clarify my case: the website runs fine at my working PC (and I host it at my PC temporary), but the website does not work well at a general machine, and I get the error "The system cannot find the file specified".
The executable file is on my PC (the server), and the path does not have any problem (the websites runs fine at my PC seems to prove this).
Do I need to put the file in C:/inetpub/wwwroot/myproje
No, you do not need to put the file in the myproject location. YZlat says it's a permissions issue, I doubt that, because I'd expect another error (see my earlier comment), but you can always try to widen the security restrictions of the asp.net or iis user.
I've asked it before and I ask it again (I know, I can be annoying): the actual path that's accesses, when you type that straight in the Run dialog of Windows (Winkey + R) does it fail or succeed?
Hi Abel,
Sorry for replying late. I had limited access to Internet for the past few days.
I will see what I can do with the security restrictions, and let you know the result.
When using the run dialog, I have no problem to run it from my development machine.
I have consulted network security person in my company, and he thinks it is a permission issue too.
Business Accounts
Answer for Membership
by: abelPosted on 2009-08-06 at 07:57:27ID: 25034152
Most likely, the path is not correct. When it would be correct and you would not have the correct rights, it would yield another message (access denied).
Copy the executable to the other machine to the same location and you should be all set.