473,387 Members | 1,553 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,387 software developers and data experts.

System.Diagnostics.Process

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
5 4148
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
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
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
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
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: marccruz | last post by:
Given an instance of System.Diagnostics.Process, how can I get the parent process o Given an instance of System.Diagnostics.Process, how can I get the child processes For example, I start a...
1
by: Heiko Besemann | last post by:
Dear group, I created an aspx page using System.Diagnostics.Process() to launch "tracert" from shell and redirect output to Response.Output which prints it as text/plain into my browsers window....
1
by: solex | last post by:
Hello All, Hopefully someone has run into this error. I have written a class(source below) that launches a thread to monitor the StandardOutput of a System.Diagnostics.Process, in particular I...
2
by: andreas | last post by:
hi, In windows xp in the start launch menu when i put notepad "c:\test.txt" i get notepad with test.txt in it. in vb.net when i state system.diagnostics.process.start("notepad.exe" i get...
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: Daniel | last post by:
System.Diagnostics.Process.Start fails on windows server 2003 the process returns process.ExitCode == 0 but executing any process with System.Diagnostics.Process.Start on windows xp works fine....
0
by: Daniel | last post by:
C# windows service freezes on System.Diagnostics.Process.Start(info) When I launch PSCP from a C# windows service and launch pscp 0.53 there are no issues. but when I use C# windows service to...
0
by: Colin Williams | last post by:
I am using the code below to map network drive and then fire up an app in a sub dir of that drive. However when using the file open dialog from that app, drive K: appears just as Network drive K:...
0
by: =?Utf-8?B?UHVjY2E=?= | last post by:
-- Hi I'm using vs2005, .net 2 for windows application. The application I started using System.Diagnostics.Process is having a "listFiles.StandardOutput" buffer size problem. I was wondering...
2
by: test3 | last post by:
Hello folks, I'm using System.Diagnostics.Process to start a thirdparty program (that works perfectly when started via command line). I'm using Process.StandardOutput to get the output of the...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...

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.