Link to home
Start Free TrialLog in
Avatar of Sandeepk1999
Sandeepk1999

asked on

VB DLL Error 70 - Permission Denied in XP Pro

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
ASKER CERTIFIED SOLUTION
Avatar of aelatik
aelatik
Flag of Netherlands image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of Sandeepk1999
Sandeepk1999

ASKER

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