?
Solved

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

Posted on 2007-03-19
6
Medium Priority
?
239 Views
Last Modified: 2010-04-16
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
Comment
Question by:web4net
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
  • 3
6 Comments
 
LVL 3

Expert Comment

by:Kate12
ID: 18753740
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
 
LVL 5

Author Comment

by:web4net
ID: 18753799
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
 
LVL 3

Expert Comment

by:Kate12
ID: 18753822
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
Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
LVL 5

Author Comment

by:web4net
ID: 18753895
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
 
LVL 3

Accepted Solution

by:
Kate12 earned 2000 total points
ID: 18753908
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
 
LVL 5

Author Comment

by:web4net
ID: 18757032
:((

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

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.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

ASP.Net to Oracle Connectivity Recently I had to develop an ASP.NET application connecting to an Oracle database.As I am doing it first time ,I had to solve several problems. This article will help to such developers  to develop an ASP.NET client…
It was really hard time for me to get the understanding of Delegates in C#. I went through many websites and articles but I found them very clumsy. After going through those sites, I noted down the points in a easy way so here I am sharing that unde…
Visualize your data even better in Access queries. Given a date and a value, this lesson shows how to compare that value with the previous value, calculate the difference, and display a circle if the value is the same, an up triangle if it increased…
Sometimes it takes a new vantage point, apart from our everyday security practices, to truly see our Active Directory (AD) vulnerabilities. We get used to implementing the same techniques and checking the same areas for a breach. This pattern can re…
Suggested Courses

765 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question