Installation

First connect to your sql server and create an empty database for this application with the proper security privileges. You may optionally create second empty database for your membership data.

Make sure the runtime user has access to write files to the root of your website. (This is required so the installer can write the db.config file). The release build now includes the MVC libraries. You may also use the regular MVC 1.0 installer to set this up on your server.

With the current configuration, IIS7 integrated mode (or development Casini server) is required. If you want to make it work on IIS6 or IIS7 Classic mode, you'll have to tweak the global.asax.cs routes a little bit to accommodate the url rewriting. Here's a quick googled blog about setting that up. http://haacked.com/archive/2008/11/26/asp.net-mvc-on-iis-6-walkthrough.aspx. I also found this on StackOverflow, which might come in useful. http://stackoverflow.com/questions/34194/asp-net-mvc-on-iis6.

After setting the website up in IIS or your uploading it to a shared host, browse to /Install on your site to begin the installation wizard.

Step 1 will install and setup the databases. You will be asked to supply connection information for the database. Be sure that the account you will be using has the ability to create tables and insert data.

NOTE: If you're using shared hosting (like GoDaddy, which has Medium Trust), it will throw a SecurityException after installing the databases while attempting to reset the application state. Click "Continue to next step" to continue and step 2 should run fine. Any other exception during step 1 will rollback the database changes and let you try again.

NOTE: If your host does not allow the app to write to the root web directory, you may need to manually update your db.config file with the correct settings. Here is a sample db.config file you can use as a template.
<connectionStrings>
	<clear/>
	<add name="SiteManagerDefault"
		connectionString="Data Source=.\sqlexpress;Initial Catalog=SiteManager;Integrated Security=true;"
		providerName="System.Data.SqlClient" />
	<add name="SiteManagerMembership"
		connectionString="Data Source=.\sqlexpress;Initial Catalog=SiteManager;Integrated Security=true;"
		providerName="System.Data.SqlClient"/>
</connectionStrings>

Step 2 will ask you to provide a username and password for the admin account on the site. Click Finish and your site will be ready to go.

You'll need to first login as your admin account at the path /Account/Logon. Then go checkout the Management menu for more setup information if you want to completely setup your SEO and other site settings.

For more information, see the rest of the documentation

Last edited Oct 29, 2009 at 3:07 PM by nlb6665, version 20

Comments

No comments yet.