Solved

VB DLL Error 70 - Permission Denied in XP Pro

Posted on 2004-07-30
2
16,338 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
Comment Utility
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
Comment Utility
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

How to improve team productivity

Quip adds documents, spreadsheets, and tasklists to your Slack experience
- Elevate ideas to Quip docs
- Share Quip docs in Slack
- Get notified of changes to your docs
- Available on iOS/Android/Desktop/Web
- Online/Offline

Join & Write a Comment

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

744 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

17 Experts available now in Live!

Get 1:1 Help Now