Hi,
I've just purchased this book and it's excellent. BTW I also own prior version of this book.
Now come to the point. I've not yet read that chapter but can give you some hints to hunt the bug down.
- Open the web.config file of the website in error and locate the compilation tag. Make sure it reads like this:
Code:
<compilation language="C#" debug="true" />
- Open the SQL server database used in the sample and, drill down to Stored Procedures and double click the aspnet_Membership_GetPasswordWithFormat stored procedure. This opens the stored procedure in an editor.
- Now run your web site and place a breakpoint where your c# code is calling the stored procedure.
- The problem must be that the C# code is passing more parameters to the stored procedures that it has defined. For example, it may have a @UserID and @Password parameters but you code might be trying to pass it @UserType parameter along with the two other parameters. Since @UserType parameter is not defined the stored proc will throw error.
- Make sure you remove any extra parameters that're being supplied. [*/]
Hopefully, you should be able to solve the problem.
ejan