Author: brichardssa | Posted on: 5/28/2009 6:06:03 AM | Views : 1340

Hi Everyone,
 I have created an ASP.NET website. I wanted to use the built in Profile functionality in ASP.NET but with a custom property called 'User' which is an object that contains all of the properties of a the user record in my DB. It was working like a charm until I added a Global.asax file.
After the I added this file, suddenly my custom profile object that inherits from ProfileBase threw an error:
When the user logs in, the following code is executed:
 BusinessLayer.User aLoggedInUser = BusinessLayer.User_Logic.Authenticate(txtUsername.Text, txtPassword.Text); MyCustomUserProfile profile = new MyCustomUserProfile(); profile.Initialize(txtUsername.Text, true); profile.User = aLoggedInUser; profile.Save();  
On the first line of this block of code, I get the following error:
The type 'Website1.MyCustomUs ...

Go to the complete details ...