I have an Excel VBA Application running on Windows Vista. A .Net DLL has been added as a reference in the VBA Application and in the VBA Application, I’m able to use the methods available in the DLL.
Problem: When the same VBA Application is tried on a different machine by other users, they get a “70 Permission denied error”. On debug mode, I found that the error occured in the VBA application when we tried to initialize an object of that .Net DLL being referenced.
Other users tried running the same application with Admin privilege, but found the same issue.
I’m pretty sure this is related to authorization. But I don’t know where these settings needs to be done. Please help.
P.S. The .Net DLL has been registered using regasm and it is present in the GAC as well. Also, There’s no authorization related implementation inside the .NET DLL being used.
Turns out that the firewall settings on the machine blocked access to Registry Key that was necessary to run this application. Once the settings were changed, the application ran successfully.