ActiveX DLL results Permission Denied Error in ASP

Posted on 2004-09-06
Last Modified: 2010-05-18
I created an Active X control which executes a program called Winrsh32.exe. This program remote shells to Unix and executes a program in Unix system. I called the DLL from ASP and works fine in Windows 2000 professional.

When I copy this ActiveX DLL in XP, and use the same ASP program in XP Professional, I get an error Permission Denied.When I use this DLL in Visual Basic 6, there is no problem. The Permission Denied error appears only when I call this from ASP program.

Any input would be appreciated.
Question by:kumarvasantha

Expert Comment

ID: 11993990
It sounds like the user account used for the ASP application does not have the necessary rights.
By default ASP applications run under the IUSERMACHINENAME account. Since your DLL works under your account, as a test, try configuring the ASP app to run under your account. The solution might be to set up a new user with network privilages, rights to execute file, etc.  

LVL 34

Expert Comment

ID: 11993992
Is the dll registered on the XP machine?

Expert Comment

ID: 11994155
In windows XP, you frequently face this problm of accwess denied. While one user account is IUSER.. another is IWAM and yet another is NETWORKAuthority. One or more or sometimes all three are required to execute applications. You have to give them the permissions to execute scripts, not justt read, scripts. Also, see that the option for write is not enabled.

in the drop down list select scripts and executables. All these in the Properties of the website.
Networking for the Cloud Era

Join Microsoft and Riverbed for a discussion and demonstration of enhancements to SteelConnect:
-One-click orchestration and cloud connectivity in Azure environments
-Tight integration of SD-WAN and WAN optimization capabilities
-Scalability and resiliency equal to a data center


Author Comment

ID: 12005052
I have given all permission to the script/activex control and the executable and also registered the dll. But still the same error appears.

Author Comment

ID: 12014659
I have localised the problem now; the DLL which I created, calls an executable residing in the same directory as that of DLL. the error occurs when the method calling the executable program is executed. I have checked the permissions and in fact given all permissions to all users. Still I get the permission denied error.

Author Comment

ID: 12061010
I have included all users in the system all rights (for testing purposes) for Winrsh32runner.dll and winrsh32.exe programs and the folder c:\winrsh32 and still the ASP results Permission denied. Any other settings to be done in the IIS?

Expert Comment

ID: 12061565
I am sorry for not responding, was sick and didnt refer to my mails.

Coming to ur problem, Check whther anonymous access is allowed in the IIS properties for the site from where you are calling the ASP page.

Next see that the permissions which you have set for the Site are inherited by its children also.

See the properties of the application and chek whther the EXE is executable only by an administrator or anybody else. This is  a restriction in XP which you can remove.

Author Comment

ID: 12561790
I updated the windows using online update and viola... the problem is solved. That XP machine is my live intranet webserver now!

Problem solved and case closed!

Accepted Solution

modulo earned 0 total points
ID: 12848587
PAQed with points refunded (125)

Community Support Moderator

Featured Post

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
VB6 Compile Compatibility Issue 4 115
VBA/SQL - Connect to SQL server and pull data 4 119
Convert VB6 MSXML2.ServerXMLHTTP process to C# 2 59
How to make an ADE file by code? 11 94
Introduction In a recent article ( for the Excel community, I showed an improved version of the Excel Concatenate() function.  While writing that article I realized that no o…
I was working on a PowerPoint add-in the other day and a client asked me "can you implement a feature which processes a chart when it's pasted into a slide from another deck?". It got me wondering how to hook into built-in ribbon events in Office.
Get people started with the process of using Access VBA to control Excel using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Excel. Using automation, an Access application can laun…
Get people started with the utilization of class modules. Class modules can be a powerful tool in Microsoft Access. They allow you to create self-contained objects that encapsulate functionality. They can easily hide the complexity of a process from…

828 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