Eric
09-27-2006, 11:18 AM
Thanks towisemx for bringing the Small Business Site Starter Kit to our attention.
Requirements:
- ASP.NET 2.0
- Visual Web Developer (VWD)
- SQL Express if you intend to develop on your local machine
1) Download the starter kit on your computer from http://asp.net/downloads/starterkits.
2) Open Visual Stdio 2005 and Select File>New>WebSite>Small Business Starter Kit(VB/C#)
3)By default,XML Provider is used and all data is stored in XML files ,but if you want to use the SQL provider instead (See Step 2) ,update the Web.config file as :
STEP 1:
------
- Comment out the following:
<connectionStrings>
<remove name="SQLConnectionString"/>
<add name="SQLConnectionString"
connectionString="Data Source=.\SQLExpress;integrated security=true;attachdbfilename=|DataDirectory|Smal lCompanyDB.mdf;user instance=true"/>
</connectionStrings>
- Add the following:
<connectionStrings>
<remove name="SQLConnectionString"/>
<add name="SQLConnectionString" connectionString="Data Source=<sql server name>.discountasp.net;Integrated Security=False;Initial Catalog=<DB_Name>;User ID=<db_user>;Password=<DB_password>" providerName="System.Data.SqlClient" />
</connectionStrings>
STEP 2: (SKIP if XMLProvider is to be used)
------
Replace
<SmallBusinessDataProviders peopleProviderName="xmlProvider" testimonialsProviderName="xmlProvider" catalogProviderName="xmlProvider" newsProviderName="xmlProvider">
By
<SmallBusinessDataProviders peopleProviderName="sqlProvider" testimonialsProviderName="sqlProvider" catalogProviderName="sqlProvider" newsProviderName="sqlProvider" >
4) Upload all the source files to our web server.For more information see http://kb.discountasp.net/article.aspx?id=10364.
5) Using the Web Application tool configure the application folder as a web application using the Web Application Tool in the control panel.For more information on Web Application Tool see :http://kb.discountasp.net/article.aspx?id=10181.
6)Attach the uploaded SmallCompanyDB.mdf using the SQl tools.This file can be found under App_Data.For further information see http://kb.discountasp.net/article.aspx?id=10431 (SQL 2000) or http://kb.discountasp.net/article.aspx?id=10432 (SQL 2005)
OR
You can run the SetupDatabase.sql which can be found within the App_Data,which creates the database schema using the following command in your command prompt
sqlcmd -S SQL_SERVER_NAME -U USERNAME -P PASSWORD -d DATABASE_NAME -i SetupDatabase.sql
(Note:SQLCMD comes with the Visual Studio / SQL Express installation)
The DiscountASP.NET Team
http://www.DiscountASP.NET
Requirements:
- ASP.NET 2.0
- Visual Web Developer (VWD)
- SQL Express if you intend to develop on your local machine
1) Download the starter kit on your computer from http://asp.net/downloads/starterkits.
2) Open Visual Stdio 2005 and Select File>New>WebSite>Small Business Starter Kit(VB/C#)
3)By default,XML Provider is used and all data is stored in XML files ,but if you want to use the SQL provider instead (See Step 2) ,update the Web.config file as :
STEP 1:
------
- Comment out the following:
<connectionStrings>
<remove name="SQLConnectionString"/>
<add name="SQLConnectionString"
connectionString="Data Source=.\SQLExpress;integrated security=true;attachdbfilename=|DataDirectory|Smal lCompanyDB.mdf;user instance=true"/>
</connectionStrings>
- Add the following:
<connectionStrings>
<remove name="SQLConnectionString"/>
<add name="SQLConnectionString" connectionString="Data Source=<sql server name>.discountasp.net;Integrated Security=False;Initial Catalog=<DB_Name>;User ID=<db_user>;Password=<DB_password>" providerName="System.Data.SqlClient" />
</connectionStrings>
STEP 2: (SKIP if XMLProvider is to be used)
------
Replace
<SmallBusinessDataProviders peopleProviderName="xmlProvider" testimonialsProviderName="xmlProvider" catalogProviderName="xmlProvider" newsProviderName="xmlProvider">
By
<SmallBusinessDataProviders peopleProviderName="sqlProvider" testimonialsProviderName="sqlProvider" catalogProviderName="sqlProvider" newsProviderName="sqlProvider" >
4) Upload all the source files to our web server.For more information see http://kb.discountasp.net/article.aspx?id=10364.
5) Using the Web Application tool configure the application folder as a web application using the Web Application Tool in the control panel.For more information on Web Application Tool see :http://kb.discountasp.net/article.aspx?id=10181.
6)Attach the uploaded SmallCompanyDB.mdf using the SQl tools.This file can be found under App_Data.For further information see http://kb.discountasp.net/article.aspx?id=10431 (SQL 2000) or http://kb.discountasp.net/article.aspx?id=10432 (SQL 2005)
OR
You can run the SetupDatabase.sql which can be found within the App_Data,which creates the database schema using the following command in your command prompt
sqlcmd -S SQL_SERVER_NAME -U USERNAME -P PASSWORD -d DATABASE_NAME -i SetupDatabase.sql
(Note:SQLCMD comes with the Visual Studio / SQL Express installation)
The DiscountASP.NET Team
http://www.DiscountASP.NET