braindamage Posted October 30, 2012 Share Posted October 30, 2012 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 ! ! 1 Link to comment Share on other sites More sharing options...
braindamage Posted October 30, 2012 Author Share Posted October 30, 2012 ok. just a bad definishen in the DB. that ok now. Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now