Jump to content

ASP.NET tutorial problem


braindamage

Recommended Posts

Hi. I'm new to the .NET framework. I ran into w3schools demo: http://www.w3schools.com/aspnet/webpages_login.aspI did everything like the demo and it was o.k until the register/login pages.when i try to register to the site, i receive this error: Exception Details: System.Data.SqlServerCe.SqlCeException: The column cannot contain null values. [ Column name = UserId,Table name = UserProfile ] Source Error: Line 25: if (user == null)Line 26: {Line 27: db.Execute("INSERT INTO UserProfile (Email) VALUES (@0)", email);Line 28: WebSecurity.CreateAccount(email, password, false);Line 29: Any help will be great ! !

  • Like 1
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...