Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

ActiveX DLL results Permission Denied Error in ASP

Posted on 2004-09-06
11
Medium Priority
?
626 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
VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

 

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

Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

Question has a verified solution.

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

The debugging module of the VB 6 IDE can be accessed by way of the Debug menu item. That menu item can normally be found in the IDE's main menu line as shown in this picture.   There is also a companion Debug Toolbar that looks like the followin…
This article describes how to use a set of graphical playing cards to create a Draw Poker game in Excel or VB6.
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…
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…
Suggested Courses

722 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