Setup AspNet Xml Providers in a Web Application

Download binaries or build them by yourself and place the assembly file in your web application bin folder.
Change web.config file for the appropriate provider you want to use:

- Role Provider
<roleManager enabled="true" defaultProvider="XmlRoleProvider">
    <providers>
	<clear/>
	<add applicationName="YOUR_APP" name="XmlRoleProvider" type="WebUtil.XmlProviders.XmlRoleProvider"/>
    </providers>
</roleManager>


- Membership Provider
<membership defaultProvider="XmlMembershipProvider">
    <providers>
	<clear/>
	<add applicationName="YOUR_APP" name="XmlMembershipProvider" type="WebUtil.XmlProviders.XmlMembershipProvider"
minRequiredPasswordLength="1" minRequiredNonAlphanumericCharacters="0" requiresQuestionAndAnswer="false" requiresUniqueEmail="false" 
passwordFormat="Hashed"/>
    </providers>
</membership>


- Profile Provider
<profile enabled="true" defaultProvider="XmlProfileProvider">
    <providers>
	<clear/>
	<add applicationName="YOUR_APP" name="XmlProfileProvider" type="WebUtil.XmlProviders.XmlProfileProvider"/>
    </providers>
</profile>



Note: Do not forget to replace YOUR_APP with the real name of your web application ;) and customize membership provider settings as you preffer.

Last edited Jun 15, 2007 at 11:30 AM by velio, version 1

Comments

No comments yet.