System.Diagnostics.Process Question

S

Steve Bishop

How come this will start the process on the server, but not the actual
application. Is there a way to actually run the application? Help
appreciated.

<%@ Page Language="VB" Debug="true" %>
<script runat="server">

Sub Button1_Click(sender As Object, e As EventArgs)
System.Diagnostics.Process.Start ("c:\Program
Files\visio\visio32.exe")
End Sub

</script>
<html>
<head>
</head>
<body>
<span><label><font face="Verdana" color="#004080" size="4">Run Visio
from ASP.Net</font></label></span>
<form runat="server">
<p>
<asp:Button id="Button1" onclick="Button1_Click"
runat="server" Text="Run Visio"></asp:Button>
</p>
<p>
</p>
<p>
</p>
</form>
</body>
</html>
 
G

Guest

That's because Visio is not a client server application

----- Steve Bishop wrote: ----

How come this will start the process on the server, but not the actua
application. Is there a way to actually run the application? Hel
appreciated

<%@ Page Language="VB" Debug="true" %><script runat="server"

Sub Button1_Click(sender As Object, e As EventArgs
System.Diagnostics.Process.Start ("c:\Progra
Files\visio\visio32.exe"
End Su

</script><html><head></head><body><span><label><font face="Verdana" color="#004080" size="4">Run Visi
from ASP.Net</font></label></span><form runat="server"><p><asp:Button id="Button1" onclick="Button1_Click
runat="server" Text="Run Visio"></asp:Button></p><p></p><p></p></form></body></html




*** Sent via Developersdex http://www.developersdex.com **
Don't just participate in USENET...get rewarded for it
 
M

Michael Pearson

Well, it might be starting the app as the "ASPNET" user on the WEBSERVER.
Something tells me that you are not logged into your server as "ASPNET."

Can you tell us exactly what you are trying to acooplish? Maybe someone can
point you in a different direction.

Michael
 
E

Eric Lawrence [MSFT]

Most likely the application is running-- you just can't see it since you're
not looking at the console owned by the ASP.NET worker process.

--
Thanks,

Eric Lawrence
Program Manager
Assistance and Worldwide Services

This posting is provided "AS IS" with no warranties, and confers no rights.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,994
Messages
2,570,223
Members
46,815
Latest member
treekmostly22

Latest Threads

Top