Sunday, August 31, 2008

IIS7 Membership provider

I've just installed Windows 2008 on one of my main web servers. I have an ASP.NET web site that uses the SQL Membership provider.

Originally I had this in my web.config file :-

< defaultprovider="MyMembershipProvider">
<>
< name="MyMembershipProvider" connectionstringname="MyMembershipConnectionString" type="System.Web.Security.SqlMembershipProvider" applicationname="MyAppName" enablepasswordretrieval="false" enablepasswordreset="true" requiresquestionandanswer="true" requiresuniqueemail="true" passwordformat="Hashed">
< /add >
< /providers >
< /membership >

But I discovered that this works as a membership provider but does not allow IIS Manager to display the users when the .NET Users button is clicked. If you replace the type attribute above with :-

type="System.Web.Security.SqlMembershipProvider,System.Web,Version=2.0.0.0,Culture=neutral,PublicKeyToken=b03f5f7f11d50a3a"

it works.

No comments: