Click here to Skip to main content
15,896,915 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I have a visual basic .exe which works fine when I run it or double click it on any machine or on server.

But when I put that .exe file on server so any user using internal portal site can execute from their own account. It doesn't give me results, when I try to run from my asp page using my account.

I can see the process for that .exe running on task manager on server but it doesn't give me result.

Could anyone please guide me with that?

I have written following code in my asp page.
VB
str = "C:\test.exe"

set oWSH = CreateObject("WScript.Shell")
oWSH.Exec str
Set oWSH = Nothing
Posted
Updated 28-Aug-10 4:50am
v2
Comments
OriginalGriff 28-Aug-10 12:26pm    
"No, I am trying to say I can run a exe file from anywhere and I can see the exe results in database table but when I run it from asp website, it doesn't give me result in database. I can see the process running via task manager on server"
Does the server have the correct .NET framework installed? Could it be complaining rather than running?
dnisha03 28-Aug-10 12:46pm    
Yes it has .Net framework installed and it doesn't complain anything or giving any error. It just works fine like an exe when I open a taskmanager to see the process. I can see it running under "Network Service" username. I've given full access to that user but I can't see the result from that exe.

1 solution

Are you saying: "I have a VB Winforms EXE file which works fine and shows me a form full of results when I run it on my machine. But when I run it on the server, I don't see the form full of results on my machine."

If so, then no. You won't. The form will be shown on the server (and will probably annoy the heck out of the server administrator)
 
Share this answer
 
Comments
dnisha03 28-Aug-10 12:15pm    
No, I am trying to say I can run a exe file from anywhere and I can see the exe results in database table but when I run it from asp website, it doesn't give me result in database. I can see the process running via task manager on server.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900