Solved

ActiveX DLL results Permission Denied Error in ASP

Posted on 2004-09-06
11
610 Views
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.
0
Comment
Question by:kumarvasantha
[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
11 Comments
 
LVL 6

Expert Comment

by:SCDMETA
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.  


0
 
LVL 34

Expert Comment

by:flavo
ID: 11993992
Is the dll registered on the XP machine?
0
 
LVL 7

Expert Comment

by:vnvk
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.
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!

 

Author Comment

by:kumarvasantha
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.
0
 

Author Comment

by:kumarvasantha
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.
0
 

Author Comment

by:kumarvasantha
ID: 12061010
Hi,
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?
0
 
LVL 7

Expert Comment

by:vnvk
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.
0
 

Author Comment

by:kumarvasantha
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!
0
 

Accepted Solution

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

modulo
Community Support Moderator
0

Featured Post

Independent Software Vendors: 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!

Question has a verified solution.

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

This article describes some techniques which will make your VBA or Visual Basic Classic code easier to understand and maintain, whether by you, your replacement, or another Experts-Exchange expert.
If you need to start windows update installation remotely or as a scheduled task you will find this very helpful.
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…
This lesson covers basic error handling code in Microsoft Excel using VBA. This is the first lesson in a 3-part series that uses code to loop through an Excel spreadsheet in VBA and then fix errors, taking advantage of error handling code. This l…

739 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