Execute exe cmd dll from IIS 7.5 permissions

Posted on 2011-10-19
Last Modified: 2013-12-25
Researching the web all appear to provide the same or similar configuraiton however, I am still unable to properly process an executable from an page.

I have a web page which displays a list of items with a link to another aspx page which performs a StartInfo Process to run my console application.  My console app calls a process that reads a data file from a source location and saves the result to a destination.  It also runs a process utility like 7z.exe which compresses the data output to a zip file which is stored in the final destination location.  The processes work fine executed directly from the Server at command line.  So, I am assuming user/permission.  

What I am looking for is how to properly allow the execution of my utilities as well as a packaged program utility from an page.

created a virtual directory where programs stored
Enabled handler mapping for exe and dll in the virtual directory.
I have created the Allow restriction for my application exe and dll , not sure how to handle a huge application with several dlls though.
changed permission on the files I am executing for IUSR
changed permission on the folders which I am accessing for IUSR
Tried identy impersonate=true

Event Viewer returns event id 1001
Again, I am assuming user access/permission but not sure where to look closer.

Or is there a way to allow the external program prior access privilege through code?

Any assistance would save some hair...
Question by:DoDebugger

    Author Comment

    Additional Note:  Testing various processes indicate that I am able to successfully execute a console app, however, I cannot successfuly execute this particular application 1) because it is calling a larger application which contains many dll's.  Do I need to register the complete application to properly execute the program?  For example, I am using the program similar to MS Word to open and SaveAs or print but, calling the application like WORD from a compiled console app.  The console app does other processing during the execution cycle.
    LVL 77

    Accepted Solution

    you could shim it by making a service that calls the executable and passes the parameters needed. the caveat being that they will be loaded in the context of IUser and not the currently logged on user and there may be sandboxing problems

    Author Closing Comment

    Thanks for the information, I will look into this option.

    Featured Post

    How your wiki can always stay up-to-date

    Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
    - Increase transparency
    - Onboard new hires faster
    - Access from mobile/offline

    Join & Write a Comment

    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…
    Active Directory replication delay is the cause to many problems.  Here is a super easy script to force Active Directory replication to all sites with by using an elevated PowerShell command prompt, and a tool to verify your changes.
    Learn the basics of strings in Python: declaration, operations, indices, and slicing. Strings are declared with quotations; for example: s = "string": Strings are immutable.: Strings may be concatenated or multiplied using the addition and multiplic…
    The viewer will learn how to dynamically set the form action using jQuery.

    729 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

    Need Help in Real-Time?

    Connect with top rated Experts

    20 Experts available now in Live!

    Get 1:1 Help Now