View Single Post
  #2 (permalink)  
Old August 26th, 2011, 12:52 PM
Imar's Avatar
Imar Imar is offline
Wrox Author
Points: 72,073, Level: 100
Points: 72,073, Level: 100 Points: 72,073, Level: 100 Points: 72,073, Level: 100
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Jun 2003
Location: Utrecht, Netherlands.
Posts: 17,089
Thanks: 80
Thanked 1,587 Times in 1,563 Posts
Default

Not sure why this doesn't work, as it looks good to me. Is this your complete config file? Have you tried this config file in a simple web site with nothing but, say, a Login control? Did you run aspnet_regsl against the target database? And where exactly (inlcuding the stack trace if you have it) do you get the error?

The only odd thing I see is a Remove statement after a Clear but that would throw a different error if it wasn't allowed, I'd say.

Cheers,

Imar
__________________
Imar Spaanjaars
http://Imar.Spaanjaars.Com
Follow me on Twitter

Author of Beginning ASP.NET 4.5 : in C# and VB, Beginning ASP.NET Web Pages with WebMatrix
and Beginning ASP.NET 4 : in C# and VB.
Did this post help you? Click the button below this post to show your appreciation!
Reply With Quote