PDA

View Full Version : How to install the ASP.NET 2.0 Time Tracker Kit


vvsharma
07-25-2006, 10:09 AM
How to install the ASP.NET 2.0 Time Tracker Kit
Requirements:
- ASP.NET 2.0
- Visual Web Developer (VWD)
- SQL Express if you intend to develop on your local machine

1) Download and install the starter kit on your computer from http://asp.net/downloads/starterkits/. Once installed, the Time Tracker Starter kit should be one of the available templates in VWD

2) Open Visual Web Developer

3) Create a local copy of the site
- Select File -> New -> Website. This should bring up the New Web Site dialogue box.
- Select "Time Tracker Web Site Starter Kit"
- In Location: Select "File System"
- Put in a location where you want VWD to install the web site
- Select either Visual Basic or Visual C# as language
- Click "OK".

4) Install the Database Schema on DiscountASP.NET SQL server
- The SQL script to generate the database is located in the /App_code directory
- You can use your favorite SQL client to execute the script. Here, I am using osql as an example
-Execute the command below to create the schema
osql -S <sql server name> -U <db_user> -P <DB_password> -d <DB_Name> -i <path to the starterKit>\App_datat\timetracker-add.sql
OR
-You could upload TimeTracker.mdf and attach it using the SQL Tools.

5) Update the Web.config file

- Comment out the following:

<add name="aspnet_staterKits_TimeTracker" connectionString="Data Source=.\SQLEXPRESS;AttachDbFilename=|DataDirector y|\TimeTracker.mdf;Integrated Security=True;User Instance=True" providerName="System.Data.SqlClient" />

- Add the following:

<add name="aspnet_staterKits_TimeTracker" connectionString="Data Source=<sql server name>.discountasp.net;Initial Catalog=<DB_Name>;User ID=<db_user>;Password=<DB_password>" />

6) Set up membership / role provider database
See KB: http://kb.discountasp.net/article.aspx?id=10413

7) Copy your site to DiscountASP.NET servers
See KB: http://kb.discountasp.net/article.aspx?id=10364

8) Setup the directory as a web application using the Web Application Tool in the control panel.











Post Edited By Moderator (mjp) : 8/2/2006 9:02:52 PM GMT