mike's web log

 

Blog Search


(Supports AND)

 

Google Ads

 

Feed

Subscribe to the RSS feed for this blog.

See this post for info on full versus truncated feeds.

 

Quote

There's no point improving the implementation of a bad idea.

Raymond Chen



 

Navigation






<May 2013>
SMTWTFS
2829301234
567891011
12131415161718
19202122232425
2627282930311
2345678


 

25 Most-Visited Entries

 

Categories

  RSS
  RSS
  RSS
  RSS
  RSS
  RSS
  RSS
  RSS
  RSS
  RSS
  RSS
  RSS
  RSS
  RSS
  RSS
  RSS
  RSS
  RSS
  RSS
  RSS
  RSS
  RSS
  RSS
  RSS
  RSS
  RSS
 

Blogs I Read

 

Contact

Email me
 

Blog Statistics

Dates
First entry - 6/27/2003
Most recent entry - 4/9/2013

Totals
Posts - 2293
Comments - 2463
Hits - 1,527,345

Averages
Entries/day - 0.63
Comments/entry - 1.07
Hits/day - 423

Update every 30 minutes. Last: 3:25 AM Pacific

 
   |  MembershipProvider error in ASP.NET Web Pages

posted at 10:23 PM | | [4] |

If you use membership in ASP.NET Web Pages, you might get the error To call this method, the "Membership.Provider" property must be an instance of "ExtendedMembershipProvider":


I happened to run across this while playing around with the new OAuth login capabilities in the beta version of Web Pages 2, but you might see it under other conditions as well.

Per one of our testers, this can indicate that the server has no AspNetSqlMembershipProvider configured. (A clue here is that everything works great when you test locally, but then throws an error when you deploy to your hosting provider.)

In my case, I fixed this by adding the following to the site's local Web.config file:

<appSettings>
<add key="enableSimpleMembership" value="true" />
</appSettings>
This is a child of the <configuration> element and a peer of the <system.web> element.

Anyway, that worked for me. I'm curious if others have seen this error and if so, how they fixed it.

[categories] ,