Access is Denied trying to connect

If you are having a problem using SourceOffSite, post a message here.

Moderator: SourceGear

Post Reply
johnbcm
Posts: 6
Joined: Wed Jul 02, 2008 10:22 am
Location: London
Contact:

Access is Denied trying to connect

Post by johnbcm » Wed Jul 02, 2008 10:34 am

Aplogies if this topic has been covered already but I couldn't find anything on the forums with this exact problem and solutions to similar problems did not seem to work.

I am currently doing a trial of SOS and when any client tries to login to the server, the login fails and this message is reported in the log:

Exception during Login: Unable to cast COM object of type 'SourceSafeTypeLib.VSSDatabaseClass' to interface type 'SourceSafeTypeLib.IVSSDatabase'. This operation failed because the QueryInterface call on the COM component for the interface with IID '{2A0DE0E2-2E9F-11D0-9236-00AA00A1EB95}' failed due to the following error: Access is denied. (Exception from HRESULT: 0x80070005 (E_ACCESSDENIED)).

I am using the encrypted version 4.2 of the product against a VSS 2005 database. Both VSS and SOS server are installed on a Win 2000 Server machine. The same error appears even when using the non encrypted port to connect. I've tried with the client on the same machine as the server and with it installed on another machine. Every time the result is the same.

Any help would be greatly appreciated.

Beth
Posts: 8550
Joined: Wed Jun 21, 2006 8:24 pm
Location: SourceGear
Contact:

Post by Beth » Thu Jul 03, 2008 7:58 am

Can I have you verify the automation component that is registered and its exact version number? Instructions for how to do that can be found here: Automation Component Version.

What account is the SOS service running under?

johnbcm
Posts: 6
Joined: Wed Jul 02, 2008 10:22 am
Location: London
Contact:

Post by johnbcm » Thu Jul 03, 2008 8:04 am

I have tried re-registering ssapi.dll and restarting the SOS server without any luck. The version is 8.0.50727.42.

The service is currently running under the LocalSystem account. I tried changing this to a domain account with local admin priviliges but the error was still the same when I tried to connect so I changed it back.

Beth
Posts: 8550
Joined: Wed Jun 21, 2006 8:24 pm
Location: SourceGear
Contact:

Post by Beth » Thu Jul 03, 2008 9:18 am

The only time I saw this before, the user did not have a VSS client installed on the SOS server. Can you connect with that VSS client that is on the same machine as the server? If not there, please install and try again.

johnbcm
Posts: 6
Joined: Wed Jul 02, 2008 10:22 am
Location: London
Contact:

Post by johnbcm » Thu Jul 03, 2008 9:51 am

VSS client and SOS client are both installed on the SOS/VSS server machine.

Beth
Posts: 8550
Joined: Wed Jun 21, 2006 8:24 pm
Location: SourceGear
Contact:

Post by Beth » Thu Jul 03, 2008 11:26 am

Can you check and see if the srcsafe.ini is read-only or writable? It should be set to writable.

johnbcm
Posts: 6
Joined: Wed Jul 02, 2008 10:22 am
Location: London
Contact:

Post by johnbcm » Thu Jul 03, 2008 11:36 am

srcsafe.ini is writeable

Beth
Posts: 8550
Joined: Wed Jun 21, 2006 8:24 pm
Location: SourceGear
Contact:

Post by Beth » Tue Jul 08, 2008 8:01 am

Could you send me an email to support at sourcegear.com (attn: Beth) with a link to this thread? I think a closer look is needed here.

When you send that email, could you also zip up and attach your entire SOS server log?

Beth
Posts: 8550
Joined: Wed Jun 21, 2006 8:24 pm
Location: SourceGear
Contact:

Post by Beth » Tue Jul 08, 2008 8:19 am

In addition to the other information in the email, can you tell me what are the OS's of the clients trying to connect?

Had you tried an SOS client right on the server? That will help narrow down the issue. When you try that client on the server, try using 'localhost' for the server name once and then try the machine name, IP address (internal and external), etc, and let me know the results for each.

johnbcm
Posts: 6
Joined: Wed Jul 02, 2008 10:22 am
Location: London
Contact:

Post by johnbcm » Tue Jul 08, 2008 8:26 am

As I said in my initial post, I have already tried connecting with the client on the same machine as the server with the same result.

Just tried again with localhost but got the same result.

The server is Windows 2000 SP4, most of the clients are Windows XP SP2.

johnbcm
Posts: 6
Joined: Wed Jul 02, 2008 10:22 am
Location: London
Contact:

Post by johnbcm » Tue Jul 08, 2008 8:28 am

IP address also gets the same result.

Beth
Posts: 8550
Joined: Wed Jun 21, 2006 8:24 pm
Location: SourceGear
Contact:

Post by Beth » Tue Jul 08, 2008 12:43 pm

I'm going to move this entirely offline to avoid confusion. When finished. we'll post results.

Post Reply