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
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

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.
[Live Webinar] The Cloud Skills Gap

As Cloud technologies come of age, business leaders grapple with the impact it has on their team's skills and the gap associated with the use of a cloud platform.

Join experts from 451 Research and Concerto Cloud Services on July 27th where we will examine fact and fiction.


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

MS Dynamics Made Instantly Simpler

Make Your Microsoft Dynamics Investment Count  & Drastically Decrease Training Time by Providing Intuitive Step-By-Step WalkThru Tutorials.

Question has a verified solution.

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

When trying to find the cause of a problem in VBA or VB6 it's often valuable to know what procedures were executed prior to the error. You can use the Call Stack for that but it is often inadequate because it may show procedures you aren't intereste…
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.
As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…
Get people started with the process of using Access VBA to control Outlook using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Microsoft Outlook. Using automation, an Access applic…
Suggested Courses
Course of the Month8 days, 23 hours left to enroll

617 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