BINARYWATER.NET |
|||||||||
HOME | 28. May 2006 | ||||||||
Provider configurationBelow is explained step by step how to configure the providers. The main configuration is made in the web.config file of your Application. Machine Key : For decryption and validation of Password data a machineKey section needs to be created within the web.config under <system.web>. The keys are Application specific Hex codes. You should use stronger keys than below. <machineKey validationKey="0123456789ABCDEF0123456789ABCDEF01234567,IsolateApps" decryptionKey="0123456789ABCDEF0123456789ABCDEF0123456789ABCDEF,IsolateApps" validation="MD5" decryption="AES" /> Connection : The Binarywater.NETproviders are using the OleDbServices connectionString. This is defined in the web.config under <connectionStrings>. The following connection strings assumes that the Users.mdb MS Access database is under App_Data folder. <add name="OleDbServices" Membership provider : The Binarywater.NET membership provider needs to be declared in the web.config under <system.web>. The provider works through multiple application. Therefore you should define the applicationName property. <membership defaultProvider="OleDbProvider" userIsOnlineTimeWindow="15"> Role provider : The Binarywater.NET role provider needs to be declared in the web.config under <system.web>. The provider works through multiple application. Therefore you should define the applicationName property. <roleManager defaultProvider="OleDbRoleProvider"
Provider installation
Download the Binarywater.Net OleDbProvider.zip Copy the OleDbMembershipProvider.cs and OleDbRoleProvider.cs providers into the App_Code folder of your application. Copy the User.mdb Database into the App_Data folder of your application. ( Or create a new Users.mdb database using the create.sql script file ) Now you should be able to use the ASP.NET Configuration to setup users and roles.
Feedback If you have problems, suggestions, bug fixes or you are just happy about this little providers - please let me know : eMail : source@binarywater.net
Have Fun! Patrick
|
|||||||||