Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / ASP.NET / Web Services / February 2005

Tip: Looking for answers? Try searching our database.

System.Diagnostics.Process

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
folke - 02 Feb 2005 07:55 GMT
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!
Signature

Folke

Dilip Krishnan - 02 Feb 2005 13:48 GMT
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
[quoted text clipped - 3 lines]
> I get the error message: Can't find file! ???
> I need to start appxxx from the ASP.NET app!
folke - 02 Feb 2005 14:17 GMT
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

> Hello folke,
>    I believe this is a permissions issue. ASPNET user doesnt have permissions
[quoted text clipped - 16 lines]
> > I get the error message: Can't find file! ???
> > I need to start appxxx from the ASP.NET app!
Dilip Krishnan - 03 Feb 2005 00:58 GMT
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.
[quoted text clipped - 27 lines]
>>> I get the error message: Can't find file! ???
>>> I need to start appxxx from the ASP.NET app!
folke - 03 Feb 2005 09:23 GMT
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("MSAccess");
   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

> Hello folke,
>   There is no concept of *starting* an mdb. You'd need to download the mdb
[quoted text clipped - 39 lines]
> >>> I get the error message: Can't find file! ???
> >>> I need to start appxxx from the ASP.NET app!
Dilip Krishnan - 03 Feb 2005 13:20 GMT
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!
[quoted text clipped - 67 lines]
>>>>> I get the error message: Can't find file! ???
>>>>> I need to start appxxx from the ASP.NET app!

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.