[2 days left] What’s wrong with your cloud strategy? Learn why multicloud solutions matter with Nimble Storage.Register Now

x
?
Solved

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

Posted on 2007-03-19
6
Medium Priority
?
242 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
Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

 
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

Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

Question has a verified solution.

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

This article is for Object-Oriented Programming (OOP) beginners. An Interface contains declarations of events, indexers, methods and/or properties. Any class which implements the Interface should provide the concrete implementation for each Inter…
Exception Handling is in the core of any application that is able to dignify its name. In this article, I'll guide you through the process of writing a DRY (Don't Repeat Yourself) Exception Handling mechanism, using Aspect Oriented Programming.
In this video, Percona Solution Engineer Rick Golba discuss how (and why) you implement high availability in a database environment. To discuss how Percona Consulting can help with your design and architecture needs for your database and infrastr…
Want to learn how to record your desktop screen without having to use an outside camera. Click on this video and learn how to use the cool google extension called "Screencastify"! Step 1: Open a new google tab Step 2: Go to the left hand upper corn…
Suggested Courses

649 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