Solved

ActiveX DLL results Permission Denied Error in ASP

Posted on 2004-09-06
11
602 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
11 Comments
 
LVL 6

Expert Comment

by:SCDMETA
Comment Utility
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
Comment Utility
Is the dll registered on the XP machine?
0
 
LVL 7

Expert Comment

by:vnvk
Comment Utility
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
 

Author Comment

by:kumarvasantha
Comment Utility
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
How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

 

Author Comment

by:kumarvasantha
Comment Utility
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
Comment Utility
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
Comment Utility
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
Comment Utility
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
Comment Utility
PAQed with points refunded (125)

modulo
Community Support Moderator
0

Featured Post

Top 6 Sources for Identifying Threat Actor TTPs

Understanding your enemy is essential. These six sources will help you identify the most popular threat actor tactics, techniques, and procedures (TTPs).

Join & Write a Comment

Introduction I needed to skip over some file processing within a For...Next loop in some old production code and wished that VB (classic) had a statement that would drop down to the end of the current iteration, bypassing the statements that were c…
Have you ever wanted to restrict the users input in a textbox to numbers, and while doing that make sure that they can't 'cheat' by pasting in non-numeric text? Of course you can do that with code you write yourself but it's tedious and error-prone …
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…

772 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

11 Experts available now in Live!

Get 1:1 Help Now