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 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!
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!
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!
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!
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! This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics
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...
|
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....
|
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...
|
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...
|
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...
|
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....
|
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...
|
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:...
|
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...
|
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...
|
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$) {
}
...
|
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...
|
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...
|
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...
|
by: nemocccc |
last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
|
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...
|
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,...
|
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...
|
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,...
| |