CodeBetter.Com
CodeBetter.Com
RSS 2.0 via Feedburner
           Do you Twitter? Follow us @CodeBetter

Brendan Tompkins [MVP]

Blog First. Ask Questions Later.

Setting Up Vault 3.0 on WebHost4Life

A couple of weeks ago, I promised to create a step-by-step guide to setting up Vault on a WebHost4Life (WH4L).  I've been stalling on this basically because for me to do an accurate, detailed step-by-step guide, it will involve setting it up again, so that I can record each and every step.  Short of doing that, here's the general gist of what I did to get it setup.

Step 1

Run the install locally on my machine, using a local SQL instance.  Test it, create your users etc.

Step 2

Create a new database called “sgvault“ on your WH4L account, your username should be “sgvaultuser“ NOTE: If someone has previously created this database on your shared SQL Server, you may be out of luck.  Not sure this will work with a different DB Name. To do this, login to your WH4L control panel, and click on the “MS SQL“ link.

Step 3

Backup the “sgvalut” database on your local machine, you will need to restore this database on your WH4L SQL Server.  First you'll have to FTP the “sgvault” backup to your WebHost4Life account, follow the instructions on the MS SQL page on your WH4L account for doing a DB restore.

Step 4

Create a directory on your WH4L account called VaultService, FTP the contents of your local “VaultSevice“ directory created in step 1.  Should located on  c:\\inetpub\wwwroot\VaultService or something like that.

Step 5

Give the ASPNET Account WR permissions to the VaultService directory on your WH4L account (Do this under the “File Permission“ link.  You may be able to tighten security more, but this'll get you started.

Step 6

Create an IIS Application for the VaultService directory.  Click the “Set IIS Application“ link and follow the on screen directions.

Step 7

Edit the web.config file in the VaultService directory, making two changes:

    <add key="ConfigPath" value="c:\hosting\webhost4life\member\[WH4L ACCT NAME]\VaultService\Vault.config" />

    <add key="ConnectString" value="Application Name='SourceGear Vault Server'; Connection Reset='false'; Server=[YOUR DB IP]; Database=sgvault; User ID=sgvaultuser; password=[YOUR PASSWORD]" />

Note that you're using a clear text password here.  Vault uses a Machine hashed password if you're using the “pwd“ attribute for the line above.  Short of having someone at WH4L running a program to gen this, I had to go with clear text.

That's about it.  Launch your vault client and start controlling some source code!  It's been working great for me!

-Brendan



Comments

Jake Good said:

Also.. I'm pretty sure you can call it whatever else you want..

you can change the ConnectString key to default to another database if necessary...
# December 11, 2004 2:14 PM

Jake Good said:

You'll also want to edit the Vault.config file at the end to use the correct service URL...
# December 11, 2004 2:43 PM

Jake Good said:

The directions here are A.O.K. :) Plus I verified that you can name your DB whatever you want.. just make sure it's reflected in the config.

and if you're expecting to go to
http://[yourdomain.com]/VaultService to see something.. you'll get an Authorization Failed page...

head to
http://[yourdomain.com]/VaultService/VaultWeb/login.aspx
# December 11, 2004 3:07 PM

Brendan Tompkins said:

Jake, Thanks for the test! Glad to hear that it works!
# December 13, 2004 1:45 AM

JustinCollum said:

Thanks for posting this, it helped me out big time. I'd add that you should write down all your users/passwords as you go through the install process (since you end up with 3 of them, I got confused).
# February 3, 2005 3:20 PM

Lyle Dodge said:

I detailed the steps for webhost4life based on the starting steps here.  It includes all the config file changes for temp & logs, etc.

http://www.orangetoad.com/blog/PermaLink,guid,a06851a6-0ba4-489c-9219-2d993746bea8.aspx

# October 31, 2006 8:46 AM

Leave a Comment

(required)  
(optional)
(required)  

Enter the numbers above:
Add

About Brendan Tompkins

Brendan has been programming with .NET since the first public beta and is owner and operator of Port Technology Services, a consultancy company providing .NET application development services to the Maritime industry. In July, 2007, he was awarded the Microsoft MVP award for ASP.NET. He's also a proud co-founder of failed .COM startup Intrinsigo, and has had a hand in the failure of numerous other businesses. He currently runs CodeBetter.Com and Devlicio.us, and lives in Norfolk, Virgina with his wife Tiara and son Ian.

View Brendan's profile on LinkedIn

Check out Devlicio.us!

Our Sponsors

Free Tech Publications