Installation and Setup Instructions for VWD-CMS 2.1 for ASP.NET


Introduction

ASP.NET Comes with a Membership system for managing users. VWD-CMS uses the ASP.NET Membership features to provide user registration and login functionality. VWD-CMS provides more Membership functionality with custom 'Members' features that can be installed after you install the ASP.NET Membership system. Additionally, VWD-CMS comes with 'Forums' features that can easily be installed after installing the ASP.NET Membership system and the VWD-CMS Members system. There is some configuration that you will need to do before you can use these features.


Quick Checklist

Here are the basic steps that need to be taken to configure ASP.NET and VWD-CMS:
(the order of installation is important)

  1. Create a database using SQL Server or a local database file.
  2. Add a database connection string to the web.config 'connectionStrings' section.
  3. Set Authentication to 'Forms' in web.config.
  4. Add a membership provider to the web.config 'membership' section.
  5. Add a role provider to the web.config 'roleManager' section.
  6. Install ASP.NET Membership Services
  7. Verify that two Roles (User Security Groups), 'Admins' and 'Members' were created
  8. Install VWD-CMS Members Services
  9. Install VWD-CMS Forums
  10. Create one or more SMTP Accounts in the vwdcms.config 'smtpaccounts' section
  11. Create a User account by using the
  12. Add your User account to the 'Admins' Role using the
  13. Edit the Email Templates - customize and set the SMTP Account to use

web.config Settings

Connection Strings (inside the <configuration> section)


<connectionStrings>
	<add name="devdb" 
	connectionString="Data Source=(local)\SQLEXPRESS;
	Initial Catalog=MySite;Integrated Security=SSPI;"/>
</connectionStrings>
	

Authentication (inside the <system.web> section)


<authentication mode="Forms"/>

Membership (inside the <system.web> section)


<membership defaultProvider="devmp" userIsOnlineTimeWindow="15">
	<providers>
		<clear/>
		<add name="devmp" 
		type="System.Web.Security.SqlMembershipProvider" 
		connectionStringName="devdb" 
		applicationName="MySite" 
		requiresUniqueEmail="true" 
		passwordFormat="Hashed" 
		enablePasswordRetrieval="false" 
		enablePasswordReset="true" 
		requiresQuestionAndAnswer="false" 
		maxInvalidPasswordAttempts="5" 
		minRequiredPasswordLength="6" 
		minRequiredNonalphanumericCharacters="0" 
		passwordAttemptWindow="10" 
		passwordStrengthRegularExpression="(?=.{6,})"/>
	</providers>
</membership>

RoleManager (inside the <system.web> section)


<roleManager defaultProvider="devrp" 
	cacheRolesInCookie="false" 
	cookieName=".ASPXROLES" 
	cookiePath="/" 
	cookieProtection="All" 
	cookieRequireSSL="false" 
	cookieSlidingExpiration="true" 
	cookieTimeout="30" 
	createPersistentCookie="false" 
	domain="" 
	enabled="true" 
	maxCachedResults="25">
	<providers>
		<clear/>
		<add name="devrp" connectionStringName="devdb" 
		applicationName="MySite" 
		type="System.Web.Security.SqlRoleProvider, System.Web, 
		Version=2.0.0.0, Culture=neutral, 
		PublicKeyToken=b03f5f7f11d50a3a"/>
	</providers>
</roleManager>

vwdcms.config Settings

SMTP Accounts (inside the <smtpaccounts> section)


<smtpaccounts>
	<smtpaccount>
		<key>support@domain.com</key>
		<displayname>MySite Support</displayname>
		<from>support@domain.com</from>
		<sender>support@domain.com</sender>
		<replyto>support@domain.com</replyto>
		<host>mail.domain.com</host>
		<user>support@domain.com</user>
		<password>smtppassword</password>
		<port>25</port>
		<authenticationtype>Basic</authenticationtype>
	</smtpaccount>
</smtpaccounts>