SSAPI.DLL Registration

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

Moderator: SourceGear

Post Reply
rschummer
Posts: 6
Joined: Thu Dec 22, 2005 12:35 am

SSAPI.DLL Registration

Post by rschummer » Thu Dec 22, 2005 12:59 am

I have both the SOS server, the SOS client (v4.1), and VSS 6.0d on my development machine. The SOS client is set to connect to the VSS database on my machine. Each time I start the SOS client I get the following message:

The server was unable to connect to the SourceSafe database.
Check your server's log file for additional information.

To fix it I do the following:

regsvr32 "C:\Program Files\Microsoft Visual Studio\VSS\win32\SSAPI.DLL"
Restart the Source Offsite Service via the Computer Management Applet

It works until I shut down the SOS client. Then I get the message again and have to repair it again.

Is there a more permanent solution?
Rick Schummer
White Light Computing

lbauer
Posts: 9736
Joined: Tue Dec 16, 2003 1:25 pm
Location: SourceGear

Post by lbauer » Thu Dec 22, 2005 8:37 am

We haven't seen this behavior before.
Check your server's log file for additional information.
Are there any error messages in the SOS Server log? It's log.txt and is in the SOS Server directory.
Linda Bauer
SourceGear
Technical Support Manager

rschummer
Posts: 6
Joined: Thu Dec 22, 2005 12:35 am

SSAPI.DLL Registration

Post by rschummer » Thu Dec 22, 2005 8:50 am

Here is my recent log entries:

12/21/2005 11:22:14 PM - ****************************************************
12/21/2005 11:22:14 PM - SourceOffSite Server 4.1 Professional - With Cryptography

12/21/2005 11:22:14 PM - CurrentCulture is en-US.

12/21/2005 11:23:27 PM - Server Information
12/21/2005 11:23:27 PM - No Operating System information is avaiable
12/21/2005 11:23:27 PM - Total Physical Memory: 1023.36 MB
12/21/2005 11:23:27 PM - Time Zone: (GMT-05:00) Eastern Time (US & Canada)
12/21/2005 11:23:27 PM -
12/21/2005 11:23:27 PM - SSAPI.dll Information:
12/21/2005 11:23:27 PM - Location: file:///C:/Program Files/SourceOffSite Server/Interop.SourceSafeTypeLib.DLL
12/21/2005 11:23:27 PM - DisplayName: Interop.SourceSafeTypeLib, Version=5.1.0.0, Culture=neutral, PublicKeyToken=null
12/21/2005 11:23:27 PM -
12/21/2005 11:23:27 PM - Started at 12/21/2005 11:23:27 PM

12/21/2005 11:23:28 PM - General logging level is Error. Method logging is Disabled.

12/21/2005 11:23:28 PM - Number of licenses configured: 1
12/21/2005 11:23:28 PM - SourceSafe Initialization file(s) located at:
12/21/2005 11:23:28 PM - D:\Data\VSS\RASDevelopment\srcsafe.ini

12/21/2005 11:23:30 PM - raszt3000 is attempting to listen for connections on secure port 8081
12/21/2005 11:23:30 PM - raszt3000 is attempting to listen for connections on unsecure port 8080


12/21/2005 11:23:31 PM - Waiting for a connection....secure = True
12/21/2005 11:23:31 PM - Waiting for a connection....secure = False
12/22/2005 01:23:40 AM - Connection accepted from 127.0.0.1:3316 on local address 127.0.0.1:8080, session id is 1.
12/22/2005 01:23:41 AM - 1: Exception during Login: The handle is invalid.
12/22/2005 01:23:41 AM - 1: The handle is invalid.
Rick Schummer
White Light Computing

lbauer
Posts: 9736
Joined: Tue Dec 16, 2003 1:25 pm
Location: SourceGear

Post by lbauer » Thu Dec 22, 2005 11:28 am

What's the version of the VSS automation component on your SOS Server machine? Here's how to find out:
http://support.sourcegear.com/viewtopic.php?t=1510
Linda Bauer
SourceGear
Technical Support Manager

rschummer
Posts: 6
Joined: Thu Dec 22, 2005 12:35 am

SSAPI.DLL Registration

Post by rschummer » Thu Dec 22, 2005 1:33 pm

The version on my machine is 6.0.98.48.
Rick Schummer
White Light Computing

lbauer
Posts: 9736
Joined: Tue Dec 16, 2003 1:25 pm
Location: SourceGear

Post by lbauer » Thu Dec 22, 2005 2:58 pm

Try changing the threading model for the VSS automation component:

Find the following key in the registry on the SOS Server machine:

HKEY_CLASSES_ROOT\CLSID\{783CD4E4-9D54-11CF-B8EE-00608CC9A71F}\InprocServer32

Next, find the "ThreadingModel" Key, and set its value to "Both".

Restart the SOS Server.
Linda Bauer
SourceGear
Technical Support Manager

rschummer
Posts: 6
Joined: Thu Dec 22, 2005 12:35 am

Post by rschummer » Thu Dec 22, 2005 4:45 pm

That fixed it Linda, thanks a million (before taxes {g}). Life is good again.
Rick Schummer
White Light Computing

Post Reply