Microsoft KB Archive/231612

= How To Use a Single SourceSafe Database with Multiple Web Servers =

Article ID: 231612

Article Last Modified on 7/13/2004

-

APPLIES TO


 * Microsoft Visual SourceSafe 5.0 Standard Edition
 * Microsoft Visual SourceSafe 6.0 Standard Edition
 * Microsoft Visual InterDev 1.0 Standard Edition
 * Microsoft Visual InterDev 6.0 Standard Edition

-



This article was previously published under Q231612



SUMMARY
Developers often want to have their own individual Web servers to develop a Web application against while keeping project files in a single Visual SourceSafe project. Although Visual InterDev/Visual SourceSafe integration was designed with one Web Server and one SourceSafe Database in mind, there are two ways to do this. This article describes both methods.



MORE INFORMATION
Visual InterDev uses the FrontPage Server Extensions to do all Visual SourceSafe integration. The files that handle the Visual SourceSafe functionality from within the Visual InterDev integrated development environment (IDE) are located on the Web server. If each developer has his or her own Web server and any of the developers adds or removes files, those changes will not be propagated to the other developers' Web servers.

The following two methods allow Visual SourceSafe to work with multiple Web servers:

Method 1 - Local Mode
 In Visual InterDev, create a centralized Web server that has the project added to Visual SourceSafe.  Open Visual InterDev. Click New Project on the File menu. Enter the name of the Web server.  Each user opens the centralized Web project in Visual InterDev and specifies the \Wwwroot\ directory on his or her Web server as the working folder for the project.</li> On the Start Menu, point to Programs, and then point to Windows NT 4.0 Option Pack, and then point to Internet Information Server. Click Internet Service Manager.</li> Make this new project an application: Right-click the project and select Properties, and then click Create.</li> Open the Web in "local mode" so that all saves only occur on the local Web server. (See the "References" section of this article for more information on working in local mode.)</li> Check the file out by right-clicking on it in the Project Explorer and clicking Check Out.</li> Do all testing locally.</li> When finished testing, check the file back in by right-clicking on it in the Project Explorer and clicking Check In, updating the master Web.</li></ol>

Method 2 - Localhost
 Make the Web project connect to "localhost" as the Web server.  Open Visual InterDev.</li> Click New Project on the File menu.</li> Enter localhost for the Web server.</li> Choose to work in Local Mode.</li></ol> </li> Add to Visual SourceSafe:  In Visual InterDev, select the Solution file in the Project Explorer.</li> <li>On the Project menu, point to Source Control, and then click Add to Source Control.</li></ol> </li> <li>New users connect to the Web by opening the File menu and clicking on Open Project, and then clicking on Source Control and pointing to the SourceSafe database.</li> <li>In Visual InterDev, select the Project menu, point to Web Project, and click Recalculate Links.</li></ol>

<div class="references_section">