Casting errors of the identity or principal objects are almost always caused by a problem in your base page, or your failure the ensure the base init event gets called at the right time in your .aspx pages.
It's hard to determine the exact situation for each person without going through your code in Visual Studio. You should take your time and makes sure your code is right and your projects are set up right.
|