Monthly Archives: February 2007

ASP.Net role and Membership providers

I’ve been fighting with ASP.Net’s role and membership providers for a while now.

After creating the scripts and installing them on a SQL Server 2005, instance, I was still getting a random error about a mdf file. As it turns out, I had configured my membership provider to go against my SQL Server database, but my role provider was still hitting the local Access db. Here’s how I configured them correctly in my web.config.

<membership userIsOnlineTimeWindow=”20″ defaultProvider=”SqlProvider”>
<providers>
<remove name=”AspNetSqlProvider” />
<remove name=”SqlProvider” />
<add name=”SqlProvider”
connectionStringName=”JJ_DBConnection”
enablePasswordRetrieval=”false”
enablePasswordReset=”true”
requiresQuestionAndAnswer=”true”
passwordFormat=”Clear”
applicationName=”JJ”
type=”System.Web.Security.SqlMembershipProvider” />
</providers>
</membership>

<roleManager enabled=”true” defaultProvider=”SqlRoleManager”>
<providers>
<add name=”SqlRoleManager”
type=”System.Web.Security.SqlRoleProvider”
connectionStringName=”JJ_DBConnection”
applicationName=”JumpingJupiters” />
</providers>
</roleManager>

On Menus

I’ve been fighting with trying to put together a cool menu system for our website. I wish I knew of a nice open source one. I’ve tried several javascript ones, but to no avail. I ended up with out-of-the-box ASP.net, but I really don’t like it. I’m going with the old-school tried and true background color changes onmouseover. works well for text.