Visual Studio 2005
Visual SourceSafe (Internet) plug-in can be configured to access a Visual SourceSafe database either on the same computer where the Visual SourceSafe Web service is running or on another computer. In the latter case, both the Web service computer and the computer that is hosting the database must reside inside the same Windows domain.
Setting Up Internet Access on the Same Computer as the Web Service
To set up access on the same computer as the Web service
- IIS is required to run the Internet service. If it is not installed, see How to: Enable Internet Information Services (IIS).
- In Visual SourceSafe Administrator, on the File menu, click Open SourceSafe Database.
- Create a network share.
- Through the share you created in the previous step, open the database for which you want to enable remote access.
- On the Server menu, click Configure.
- In the Server Configuration dialog box, click Remote Access.
- Select the Enable remote access for this computer check box to enable the Internet service for the server computer.
- Choose Enable remote access for this database to allow remote access to the database you have specified.
- (Optional) You can require secure communication using SSL, as described in How to: Set Up Secure Sockets Layer (SSL). Use of SSL is strongly recommended.
- In Web Server Name, type the name of the Web server. You can enter either a DNS name or an IP address.
- Click OK to apply your settings.
-
Repeat this procedure, if needed, for any other databases.
- Notify any users of the SourceSafe Internet plug-in in Visual Studio that the service is enabled and they can start accessing the Visual SourceSafe database through the web service. Make sure that you provide clients with the name of the server to connect to and the name of the share where VSS database is shared. For more information, see Using Visual SourceSafe in Microsoft Visual Studio.
Setting Up Internet Access on a Different Computer than the Web Service
This section describes how to configure Microsoft SourceSafe Internet plug-in to access a database on a file server computer that is different computer from the one VSS Web Service is running on. Two procedures are provided: one for setting up access for a new database, and one for setting up access for an existing database.
- Enabling Internet Access for a new database. This procedure describes how to configure Internet access for a database on another computer by enabling Internet access for the database while the database is stored on the same computer (the Web server) and then moving the database to another computer (the File server).
- Enabling Internet Access for an existing database. If you need to configure an existing database, this procedure describes how to configure Internet access to an existing VSS database located on a computer (the File Server) different from the computer running VSS Web Service.
To set up access on a different computer than the Web service
- Create the VSS database on the web server.
- Enable Internet Access for the database. For more information, see How to: Enable the Internet Service for Remote Access.
- Move the VSS database to the File Server by copying all the files in the database to a folder on the file server.
- Create a network share, and assign user access rights to the share. For more information, see the article "Locking Down Your Database (Visual SourceSafe)" on MSDN.
- Correct the IIS virtual folder paths to point to the new location as follows:
- Open the srcsafe.ini file and note the values for the DownloadVDir and UploadVDir variables.
- In Internet Information Services manager, find the virtual folders listed in srcsafe.ini file under Default Web Site, SourceSafe.
- Select the download folder (from the DownloadVDir variable noted in step 7), and select Properties.
- In the Properties dialog, on the Directory tab, change Local Path to point to the new database location download file:new_database_location\VssWebDownload (for example, \\FileServer\Database\VssWebDownload).
- Select the upload folder (from the UploadVDir variable noted in step 7), and select Properties.
- In the Properties dialog, on the Directory tab, change Local Path to point to the new database location upload file:new_database_location\VssWebUpload (for example, \\FileServer\Database\VssWebUpload).
- Correct the web configuration file as follows:
- Open the web.config file from your Visual SourceSafe installation folder in the \VSSWebService folder (for example, C:\Program Files\Microsoft Visual SourceSafe\VSSWebService).
- Find the section <Add key=”Database_path”> that points to the database.
- Modify the path for the database to point to the new location. (For example: <Add key=”\\FileServer\Database">)
- Save the web.config file.
- Configure authentication delegation for the server as follows:
- Open Active Directory Users and Computers.
- In the console tree, click Computers.
- In the details pane, right-click the computer running the VSS Web Service and then click Properties.
- On the Delegation tab, check the Trust this computer for delegation to specified services only box.
- Confirm that Use Kerberos only is checked.
- Click Add, and in the Add Services dialog box, click Users and Computers.
- In Enter the File Server name, enter the file server name, and then click OK.
- In the Add Services dialog box, select service “cifs,” and click OK.
- After completing these steps, you should be able to connect to the web service using the Visual Studio Plug-In.
To enable Internet Access for an existing database on a different computer than the Web service
- Create a new VSS database on the web server.
- Enable Internet Access for the existing database. For more information, see How to: Enable the Internet Service for Remote Access.
- Create folders in the existing database to upload and download files as follows:
- In the database location, create a \VssWebDownload folder (for example, \\FileServer\Database\VssWebDownload).
- In the database location, create a \VssWebUpload folder (for example \\FileServer\Database\VssWebUpload).
- Add the Web service URL to srcsafe.ini file as follows:
- Open the srcsafe.ini file in the temporary database.
- Find the variable Web_Service pointing to the VSS web service (for example, Web_Service = http://vss.microsoft.com/SourceSafe/VssService.asmx)
- Copy this line into the srcsafe.ini file of the existing database.
- Correct the IIS virtual folder paths to point to the new location as follows:
- Open the srcsafe.ini of the database that was created on the Web Server and copy the lines for the DownloadVDir and UploadVDirvariables.
- Paste these lines into srcsafe.ini file of the existing database.
- In Internet Information Services manager, find the virtual folders listed in srcsafe.ini file under Default Web Site, SourceSafe.
- Select the download folder (from the DownloadVDir variable noted in step 7), and select Properties.
- In the Properties dialog, on the Directory tab, change Local Path to point to the database location download file:new_database_location\VssWebDownload (for example, \\FileServer\Database\VssWebDownload).
- Select the upload folder (from the UploadVDir variable noted in step 7), and select Properties.
- In the Properties dialog, on the Directory tab, change Local Path to point to the database location upload file:new_database_location\VssWebUpload (for example, \\FileServer\Database\VssWebUpload).
- Correct the web configuration file as follows:
- Open the web.config file from your Visual SourceSafe installation folder in the \VSSWebService folder (for example, C:\Program Files\Microsoft Visual SourceSafe\VSSWebService).
- Find the section <Add key=”Database_path”> that points to the database.
- Modify the path for the database to point to the new location. (For example: <Add key=”\\FileServer\Database">)
- Save the web.config file.
- Configure authentication delegation for the server as follows:
- Open Active Directory Users and Computers.
- In the console tree, click Computers.
- In the details pane, right-click the computer running the VSS Web Service and then click Properties.
- On the Delegation tab, check the Trust this computer for delegation to specified services only box.
- Confirm that Use Kerberos only is checked.
- Click Add, and in the Add Services dialog box, click Users and Computers.
- In Enter the File Server name, enter the file server name, and then click OK.
- In the Add Services dialog box, select service “cifs,” and click OK.
- After completing these steps, you should be able to connect to the web service using the Visual Studio Plug-In.