Solved

VB DLL Error 70 - Permission Denied in XP Pro

Posted on 2004-07-30
2
16,339 Views
Last Modified: 2011-08-18
Hi Experts

I have a custom DLL when trying to instantiate in a XP box, I get "Error 70 - Permission Denied". If i login as Administrator then this DLL works fine.

More info, I created a new folder, copied the dll into that folder, regsitered that DLL, still i got the same error.

Interesting factor i found was, I have another DLL, in another machine i got the same error, but then i figured that the if DLL file was read-only then i was getting "Error 70", after changing it to not read-only the problem was solved. But in this machine it does not work at all. The logged in user will be part of "Users" and "Powerusers" group.

I know that it is some permission setting with XP, but dont know what to change and where to change. Any help is greatly appreciated.

Application : VB6
DLL : VB6

Usage:
Dim obj as TestObject.clsTest
Get error in this line -> Set obj = New TestObject.clsTest

Thanks
Sandeep
0
Comment
Question by:Sandeepk1999
2 Comments
 
LVL 14

Accepted Solution

by:
aelatik earned 125 total points
ID: 11683192
Follow these steps :

1) Open Windows Explorer
2) Click on Tools
3) Click on Folder Options
4) Click on TAB "View"
5) Uncheck "Use simple file sharing"
6) Open the properties for that DLL and the groups as members
7) Open the registry and find the classname of your DLL in the HKEY_CLASSES_ROOT
8) Rightclick on the registry key you found and check the permisions on that folder.
9) If you are referencing other objects, files etc. through your DLL then make sure the groups have permissions on that to.

0
 
LVL 4

Author Comment

by:Sandeepk1999
ID: 11707269
Thanks for pointing to some direction... In registry the permissions were fine.

Found out the files themselves did not permission for the users group. Went to files, properties, security -> Add the "Users" group and give "Read and Execute" permission. This solved the problem.

Thanks
Sandeep
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

Since upgrading to Office 2013 or higher installing the Smart Indenter addin will fail. This article will explain how to install it so it will work regardless of the Office version installed.
If you need to start windows update installation remotely or as a scheduled task you will find this very helpful.
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 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…

910 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

20 Experts available now in Live!

Get 1:1 Help Now