Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Instantiating object of dll in user account. Windows Server 2008

Status
Not open for further replies.

Dilemma1980

Programmer
Sep 7, 2010
12
US
I was told this might be the best forum for my question and I was hoping someone could help with this problem of mine. We have a server using Windows Server 2008. It has one admin account and other user accounts. Each user connects to the server using terminal services (using thin clients), which allows them to have their own desktop in the environment. This is what I'm trying to do:

We have a set of COM dlls that were registered using the admin account. We also have custom VBA code that would utilize the dlls to perform tasks. When we try this on a standalone machine, it works fine. In this particular scenario we can not seem to get the dlls to become available under the user accounts. We tried giving the user complete access to the relevant directories, registering the dlls under the user accounts (gives error), and even changing the user account into an admin account. No luck. Here is the code:

Code:
Option Explicit
Option Private Module

Sub test()

Dim oTemp4 As Object

Set oTemp4 = CreateObject("grccountry.grccountry")

            oTemp4.Init
            oTemp4.GRCCOUNTRYINIT
            
            'Code does some stuff
            
oTemp4.GRCCOUNTRYCLOSE
            
oTemp4.ReduceMemory

Set oTemp4 = Nothing
            
End Sub

The error happens at:

Code:
Set oTemp4 = CreateObject("grccountry.grccountry")

The error is: Run-time error '-2147467259 (80004005) Unspecified error Automation error

I did some research, and this error seems to be non-specific. Can someone help? We can't seem to figure out what we're doing wrong. Thanks so much.
 
This does not sound like VBScript, however;
In what folder are the dlls located?
 
C:\Program Files (x86)\GRC Tools\User\GRC Database Information\GRCToolsDLL
 
registering the dlls under the user accounts (gives error)
Which error ?

Hope This Helps, PH.
FAQ219-2884
FAQ181-2886
 
The module "C:\Program Files (x86)\GRC Database Information\GRCToolsDLL\grccountry.dll" was loaded but the call to DllRegisterServer failed with error code 0x80004005
 
Even if you run the regsvr32 command-line from an elevated command prompt ?

Hope This Helps, PH.
FAQ219-2884
FAQ181-2886
 
Well, I created a batch file to register all the dlls, one after the other. I then in turn try to run that batch file as an administrator. Is that what you mean?
 
I had a similar sounding issue on a Terminal Server/ Citrix install recently with a home brewed ActiveX dll stored/ registered in the app folder, it cleared when the dll was copied to C:\windows\system32 and registered there. Worth a try for you ...
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top