• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 245
  • Last Modified:

running an .exe file from a web application using asp.net?

Greetings,

I am running ASP.NET 2.0 on a Win 2003 w/ IIS6 ...

I am unable to run an executable from an asp.net application ... some of the code I ran seemed ok ... but the application would not execute ... I believe that it has to do with permissions (I currently have: Everyone, ASPNET, Administrator, IUSER and even a new User dedicate to the process with full permissions).

I have tried over a dozen different ways I have found on EE ... I have spent way to many hours trying to solve this issue ... any help will be much appreciated.

I am trying to run a complex executable … that executable compiles an executable on the fly using wise.

This is my folder structure:
C:\Domains\MyDomainName.com\wwwroot\textexe - The ASP.NET 2.0 application folder where the ASPX file is located
C:\Domains\MyDomainName.com\wwwroot - where the web site root is
C:\Domains\MyDomainName.com\Files\Exe - where the executable is located
C:\Domains\MyDomainName.com\Files\Downloads - where the final product is saved
C:\Domains\MyDomainName.com\Files- where some of the executable support files exist
C:\Program Files\Wise - where a compiler the executable runs is located
The executable also calls command prompt

I currently have the application pool identity set to LOCAL SYSTEM … I have also tried passing the administrator & a specific user login information … No luck

I have tried every solution on the first pages of: http://search.experts-exchange.com/simpleSearch.jsp?sfZoneID=-1&TAFilterID=865&sfQuery=run+an+executable&rlStart=1&rlOrderBy=3&rlSort=-1

Please help.
0
web4net
Asked:
web4net
  • 3
  • 3
1 Solution
 
Kate12Commented:
You should consider using click-once. From VS.NET go to your Project Properties and select the Click-once tab... select the virtal directory you want to deploy de app. Click-once will configure all your security and permissions in your virtual directory.

HTH
0
 
web4netAuthor Commented:
Isn't click once used when you are trying to execute a program on the client side? I am trying to execute a windows program on the server.
0
 
Kate12Commented:
I got ya.
1. how are you executing this file? Using the System.Diagnostics.Process?
2. Is this a Managed .NET executable? If it so, are you trying to Execute by loading it to the current appDomain or a sandbox one?
0
VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

 
web4netAuthor Commented:
Hi Kate,

1. Yes I am using System.Diagnostics.Process.

2. No it is not a Managed .Net executable.

Thank you for the quick reply.
0
 
Kate12Commented:
I had that issue in the past. I believe is because the worker process can not interact with the desktop by default. have a look at the following KBs:

Unable to Start a Process from ASP.NET
http://support.microsoft.com/kb/555134

Process and request identity in ASP.NET
http://support.microsoft.com/default.aspx?scid=kb;en-us;317012

HTH
0
 
web4netAuthor Commented:
:((

Your solutiions make sense ... but, they do not work ... I am missing something.

I need to go back to basics ... do you have a code that will lunch iexplorer (or any other application) on the server.
0

Featured Post

Upgrade your Question Security!

Add Premium security features to your question to ensure its privacy or anonymity. Learn more about your ability to control Question Security today.

  • 3
  • 3
Tackle projects and never again get stuck behind a technical roadblock.
Join Now