2. C# 4.0 and Visual Studio 2010 or Visual Studio 2010 Express
  3. CommonLibrary.NET 0.9.5 Latest Source Code ( Optional - Pre-Build dll included )
  4. Sql Server 2008 Express or Sql Server Enterprise ( Optional - Can use in-memory repositories )

Default Accounts

These account are automatically provided. Use the admin account for looking at all the features.
  1. admin user/pass : "admin", "password"
  2. power user/pass : "power", "password"
  3. normal user/pass: "user1", "password"

Visual Studio Installation

NOTE: You may receive a 404 Server error when running the application from Visual Studio. Please refer to .
Go to the properties page of the Web project and select the Web tab. In the Start Action section, set it to Specific Page, but leave the textbox empty.

Setup Option 1 - Default ( Sql Express 2008 )

NOTE : The Sql Express database is located in <ROOT>\src\apps\CommonLibrary.CMS\App_Data\cms.mdf
  1. Confirm that Sql Server Express 2008 is up and running
    1. Go to Start Menu -> Control Panel -> Administrative Tools -> Services
    2. Check "SQL Server (SQLEXPRESS)" ( Do NOT confuse this w/ SQL Server (MSSQLSERVER) or something else ), and confirm that it's status is set to "started"
    3. ( If it its not started, then right-click and select "start"
  2. Open Visual Web Developer ( Right-Click menu and run as administrator )
  3. Open solution file in studio : <ROOT>\ide\CommonLibrary.CMS.sln
  4. Select CommonLibrary.CMS as startup project and run the application

Setup Option 2 - ( Sql Enterprise )

  1. Run sql schema install file at <ROOT>\install\_install_models_all.sql
  2. Change db connection in <ROOT>\config\dev.config ( Database: connectstr )
  3. Open Visual Web Developer ( Right-Click menu and run as administrator )
  4. Open solution file in studio : <ROOT>\ide\CommonLibrary.CMS.sln
  5. Select CommonLibrary.CMS as startup project and run the application

Setup Option 3 - ( No database Server Required )

NOTE: This uses In-Memory Repositories for entity persistance for simplicity, and quick testing. See instructions below for setup w/ real repositories against Sql Server
  1. Download source zip file from releases or source code from svn
  2. Open solution file in studio: <ROOT>\ide\CommonLibrary.CMS.sln
  3. Select CommonLibrary.CMS as startup project
  4. Edit the web.config and change "loadData" to true and "useRealData" to false in "appSettings"
  5. Run the project

IIS Installation

The following IIS installation is for IIS 7.0. It is possible to run ASP.NET MVC on IIS 6, please refer to the various articles/blog posts on this subject from Scott Gu and/or other bloggers.

NOTE: After downloading the latest stable release, unpack the zip file to any directory on your drive. The zip file contains both the source code and prebuilt binaries. The path to the ASP.NET MVC CMS application is <ROOT>\src\apps\CommonLibrary.CMS where <ROOT> is the location where your unpacked the zip file.

  1. In IIS, click on "Site" and select "Add a website"
    1. Specify any name for "Site name" e.g. "CMS".
    2. Click the select button for the application pool set the "Application Pool" to "Asp.Net v4.0"
    3. Set your path to the CMS ( e.g. <ROOT>\src\apps\CommonLibrary.CMS ) This is the location the prebuilt CMS and the root folder for the ASP.NET application.
    4. Set your port number ( if you want your port number to be anything else than the default port 80 ).
  1. Configure the Application Pool
    1. Click on "Application Pools" near the top left pane
    2. Select Asp.Net v4.0
    3. Go to Advanced settings -> Process Model -> Identity and change "Built in account" to "Network Service" ( this is only for using sql express )

Last edited Feb 22, 2011 at 1:54 AM by kishore_reddy, version 2


No comments yet.