By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
446,258 Members | 1,247 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 446,258 IT Pros & Developers. It's quick & easy.

System.Diagnostics.Process

P: n/a
I'm using the Process class in my app to start another app, appXXX, I wrote.
Appxxx is located at c:\folke\appxxx.exe

This is wroking fine from a Windows Application, but NOT from an ASP.NET app.
I get the error message: Can't find file! ???
I need to start appxxx from the ASP.NET app!
--
Folke
Nov 23 '05 #1
Share this Question
Share on Google+
5 Replies


P: n/a
Hello folke,
I believe this is a permissions issue. ASPNET user doesnt have permissions
to see the file. You could do it with impersonation if its an internal ASP.net
service. However I'd strongly discourage you from starting processes using
asp.net

HTH
Regards,
Dilip Krishnan
MCAD, MCSD.net
dkrishnan at geniant dot com
http://www.geniant.com
I'm using the Process class in my app to start another app, appXXX, I
wrote. Appxxx is located at c:\folke\appxxx.exe

This is wroking fine from a Windows Application, but NOT from an
ASP.NET app.
I get the error message: Can't find file! ???
I need to start appxxx from the ASP.NET app!

Nov 23 '05 #2

P: n/a
OK!
So here is the problem.
On a Server is MyApp.mdb (Access Application)
Users want to use MyApp.mdb from a Link in a Web Page.
What is the best way to start MyApp.mdb from the Web Page?
The do not accept to map to ther server and just doubleclick on myapp.mdb!
regards
Folke

"Dilip Krishnan" wrote:
Hello folke,
I believe this is a permissions issue. ASPNET user doesnt have permissions
to see the file. You could do it with impersonation if its an internal ASP.net
service. However I'd strongly discourage you from starting processes using
asp.net

HTH
Regards,
Dilip Krishnan
MCAD, MCSD.net
dkrishnan at geniant dot com
http://www.geniant.com
I'm using the Process class in my app to start another app, appXXX, I
wrote. Appxxx is located at c:\folke\appxxx.exe

This is wroking fine from a Windows Application, but NOT from an
ASP.NET app.
I get the error message: Can't find file! ???
I need to start appxxx from the ASP.NET app!


Nov 23 '05 #3

P: n/a
Hello folke,
There is no concept of *starting* an mdb. You'd need to download the mdb
file and I can see you may need to use DIME if you want to use web services.
otherwise just a http like to the mdb should do!

HTH
Regards,
Dilip Krishnan
MCAD, MCSD.net
dkrishnan at geniant dot com
http://www.geniant.com
OK!
So here is the problem.
On a Server is MyApp.mdb (Access Application)
Users want to use MyApp.mdb from a Link in a Web Page.
What is the best way to start MyApp.mdb from the Web Page?
The do not accept to map to ther server and just doubleclick on
myapp.mdb!
regards
Folke
"Dilip Krishnan" wrote:
Hello folke,
I believe this is a permissions issue. ASPNET user doesnt have
permissions
to see the file. You could do it with impersonation if its an
internal ASP.net
service. However I'd strongly discourage you from starting processes
using
asp.net
HTH
Regards,
Dilip Krishnan
MCAD, MCSD.net
dkrishnan at geniant dot com
http://www.geniant.com
I'm using the Process class in my app to start another app, appXXX,
I wrote. Appxxx is located at c:\folke\appxxx.exe

This is wroking fine from a Windows Application, but NOT from an
ASP.NET app.
I get the error message: Can't find file! ???
I need to start appxxx from the ASP.NET app!

Nov 23 '05 #4

P: n/a
Thanks for your answer.
Look at code below!

private void btnStart_Click(object sender, System.EventArgs e)
{
myProcess.Start();
}
private void btnStop_Click(object sender, System.EventArgs e)
{
System.Diagnostics.Process[] myProcesses;
myProcesses =
System.Diagnostics.Process.GetProcessesByName("MSA ccess");
foreach (System.Diagnostics.Process instance in myProcesses)
{
instance.WaitForExit(3000);
instance.CloseMainWindow();
}
This is for a Windows app. When I configure the myProcess object
StartInfo/FileName to "c:\x\y\msApp.mdb" I can start and stop any number of
Access windows running msApp.mdb
I just wonder why an ASP.NET app cannot do the same thing (can't find the
file)?
As for your response I'll follow your advise and go for a download, maybe
execute it from within an ActiveX control!
regards
Folke
"Dilip Krishnan" wrote:
Hello folke,
There is no concept of *starting* an mdb. You'd need to download the mdb
file and I can see you may need to use DIME if you want to use web services.
otherwise just a http like to the mdb should do!

HTH
Regards,
Dilip Krishnan
MCAD, MCSD.net
dkrishnan at geniant dot com
http://www.geniant.com
OK!
So here is the problem.
On a Server is MyApp.mdb (Access Application)
Users want to use MyApp.mdb from a Link in a Web Page.
What is the best way to start MyApp.mdb from the Web Page?
The do not accept to map to ther server and just doubleclick on
myapp.mdb!
regards
Folke
"Dilip Krishnan" wrote:
Hello folke,
I believe this is a permissions issue. ASPNET user doesnt have
permissions
to see the file. You could do it with impersonation if its an
internal ASP.net
service. However I'd strongly discourage you from starting processes
using
asp.net
HTH
Regards,
Dilip Krishnan
MCAD, MCSD.net
dkrishnan at geniant dot com
http://www.geniant.com
I'm using the Process class in my app to start another app, appXXX,
I wrote. Appxxx is located at c:\folke\appxxx.exe

This is wroking fine from a Windows Application, but NOT from an
ASP.NET app.
I get the error message: Can't find file! ???
I need to start appxxx from the ASP.NET app!


Nov 23 '05 #5

P: n/a
Hello folke,
Yes but if you do that in the ASP.net process theoretically it will start
the access application in the server. It wont however because it will not
have permissions to do so. How is that in any way benefitial to u? May be
am missing something. Anyways to answer your question the ASP.net user doesnt
have permissions to do what you are wanting it to do

HTH
Regards,
Dilip Krishnan
MCAD, MCSD.net
dkrishnan at geniant dot com
http://www.geniant.com
Thanks for your answer.
Look at code below!
private void btnStart_Click(object sender, System.EventArgs e)
{
myProcess.Start();
}
private void btnStop_Click(object sender, System.EventArgs e)
{
System.Diagnostics.Process[] myProcesses;
myProcesses =
System.Diagnostics.Process.GetProcessesByName("MSA ccess");
foreach (System.Diagnostics.Process instance in myProcesses)
{
instance.WaitForExit(3000);
instance.CloseMainWindow();
}
This is for a Windows app. When I configure the myProcess object
StartInfo/FileName to "c:\x\y\msApp.mdb" I can start and stop any
number of
Access windows running msApp.mdb
I just wonder why an ASP.NET app cannot do the same thing (can't find
the
file)?
As for your response I'll follow your advise and go for a download,
maybe
execute it from within an ActiveX control!
regards
Folke
"Dilip Krishnan" wrote:
Hello folke,
There is no concept of *starting* an mdb. You'd need to download the
mdb
file and I can see you may need to use DIME if you want to use web
services.
otherwise just a http like to the mdb should do!
HTH
Regards,
Dilip Krishnan
MCAD, MCSD.net
dkrishnan at geniant dot com
http://www.geniant.com
OK!
So here is the problem.
On a Server is MyApp.mdb (Access Application)
Users want to use MyApp.mdb from a Link in a Web Page.
What is the best way to start MyApp.mdb from the Web Page?
The do not accept to map to ther server and just doubleclick on
myapp.mdb!
regards
Folke
"Dilip Krishnan" wrote:
Hello folke,
I believe this is a permissions issue. ASPNET user doesnt have
permissions
to see the file. You could do it with impersonation if its an
internal ASP.net
service. However I'd strongly discourage you from starting
processes
using
asp.net
HTH
Regards,
Dilip Krishnan
MCAD, MCSD.net
dkrishnan at geniant dot com
http://www.geniant.com
> I'm using the Process class in my app to start another app,
> appXXX, I wrote. Appxxx is located at c:\folke\appxxx.exe
>
> This is wroking fine from a Windows Application, but NOT from an
> ASP.NET app.
> I get the error message: Can't find file! ???
> I need to start appxxx from the ASP.NET app!

Nov 23 '05 #6

This discussion thread is closed

Replies have been disabled for this discussion.