British Inside

An Englishman living in small town America

James Shaw

News

  • Copyright James Shaw 2004-2007

    Creative Commons License

    View James Shaw's profile on LinkedIn

Of course it's not consistent

I guess everyone else just makes different mistakes than me, huh?

My contribution today to the Google Q&A machine is.. what to do about this exception..

Could not load type 'System.Web.Security.SqlProfileProvider'

The answer is to stop being so lazy and copy+pasting code all over the shop. Yes, you just proved you did it, no need to argue. You copied the <membership> or <roleManager> section in your web.config and renamed it <profile>.

Well d*ckhead, you assumed too much! SqlProfileProvider is in a different namespace than SqlMembershipProvider and SqlRoleProvider. Hah! Fancy falling for THAT one.

You need type="System.Web.Profile.SqlProfileProvider"


Posted: Thursday, September 21, 2006 4:38 PM by James
Filed under:

Comments

Dan Hounshell said:

James Shaw makes me laugh. tee he he
# September 21, 2006 6:40 PM

Dan Hounshell said:

I guess it wasn't so funny. I ran into this today. Thank goodness you posted this because it was the only search result that Google gave me when I searched on the error message.
# September 29, 2006 8:38 AM

Digging My Blog - Dan Hounshell said:

Thankfully James Shaw wrote a post about this a bit back . His was the only result returned when searching

# September 29, 2006 8:47 AM

Emanuele said:

I write from italy, thank god I find this post becuse I din't know how solve my problem!
# June 29, 2007 1:46 AM

Loosely Coupled Human Code Factory said:

Thanks James, for pointing out I'm a dickhead. You saved me at least a few more minutes of troubleshooting! ...

# November 8, 2007 9:58 PM

MorbidKoder said:

nice! =) however, this time I copied it from a functional and existing 2.0 application. I received this error when posting the framework 2.0 copied code into 3.5. So yea, i suppose im still a d*ckhead for copying and pasting ;)
# January 14, 2008 8:37 PM
New Comments to this post are disabled