tag:blogger.com,1999:blog-6367112134390591724.post4959300675184407517..comments2024-03-23T10:06:12.663-07:00Comments on ITORIAN BLOG: Adding Email, Details field in UserProfile DB Table in MVCUnknownnoreply@blogger.comBlogger24125tag:blogger.com,1999:blog-6367112134390591724.post-49784700616903112972016-04-10T06:47:03.212-07:002016-04-10T06:47:03.212-07:00Great Job.Great Job.Rajeevhttps://www.blogger.com/profile/16527385701322951295noreply@blogger.comtag:blogger.com,1999:blog-6367112134390591724.post-54451260576107362052016-01-08T07:51:21.483-08:002016-01-08T07:51:21.483-08:00thank. it was awesomethank. it was awesomeeasyitlearnhttps://www.blogger.com/profile/15215790563096702961noreply@blogger.comtag:blogger.com,1999:blog-6367112134390591724.post-39480004143272474032015-03-05T01:57:19.643-08:002015-03-05T01:57:19.643-08:00Thanks it's helpingThanks it's helpingAnonymousnoreply@blogger.comtag:blogger.com,1999:blog-6367112134390591724.post-54245561089407120962015-02-13T22:25:34.400-08:002015-02-13T22:25:34.400-08:00Nice Job Dud....Nice Job Dud....rajuhttps://www.blogger.com/profile/16032818632052374593noreply@blogger.comtag:blogger.com,1999:blog-6367112134390591724.post-57472665359006651652014-12-25T12:16:57.187-08:002014-12-25T12:16:57.187-08:00Nice post but i need add "user profile pictur...Nice post but i need add "user profile picture" section.How can I make ?Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-6367112134390591724.post-35957650098424253462014-06-02T05:14:50.276-07:002014-06-02T05:14:50.276-07:00Nice Post. But how can I access to EmailID if I do...Nice Post. But how can I access to EmailID if I don't use it instead of UserID. Actually I've seen your post about this issue in VS2013 but It's not working in VS2012.<br />Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-6367112134390591724.post-6491963647725623752014-05-07T21:25:42.072-07:002014-05-07T21:25:42.072-07:00Nice PostNice PostAnonymoushttps://www.blogger.com/profile/15835166114496822077noreply@blogger.comtag:blogger.com,1999:blog-6367112134390591724.post-54422636349502665212014-04-23T02:55:56.977-07:002014-04-23T02:55:56.977-07:00Thank you! Very helpful.Thank you! Very helpful.Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-6367112134390591724.post-37667132153320973112013-10-09T07:43:37.405-07:002013-10-09T07:43:37.405-07:00Ignoring the simple NULL issues, if you use WebSec...Ignoring the simple NULL issues, if you use WebSecurity.InitializeDatabaseConnection("DefaultConnection", "UserProfile", "UserId", "EmailId", autoCreateTables: true) as suggested you simply wind up with the username replacing the emaiIId field in the database. This results in a null userName (unless you add that back in the CreateUserAndAccount call) so theUnknownhttps://www.blogger.com/profile/02197430750648608332noreply@blogger.comtag:blogger.com,1999:blog-6367112134390591724.post-37246263266822352062013-10-09T07:41:04.322-07:002013-10-09T07:41:04.322-07:00I found this also. Any custom fields added to the ...I found this also. Any custom fields added to the models are not added to the UserProfile table on create. They need to be pre-authored (as you did in your first step). You might want to delete your tables and see what happens on your example.Unknownhttps://www.blogger.com/profile/02197430750648608332noreply@blogger.comtag:blogger.com,1999:blog-6367112134390591724.post-73348219203401637452013-10-09T07:38:51.946-07:002013-10-09T07:38:51.946-07:00I also found that any custom fields are not genera...I also found that any custom fields are not generated from the objects and must be pre-authored into the simple membership tables.Unknownhttps://www.blogger.com/profile/02197430750648608332noreply@blogger.comtag:blogger.com,1999:blog-6367112134390591724.post-24017354611724347922013-08-01T12:16:02.103-07:002013-08-01T12:16:02.103-07:00you didn't explain what to do that email login...you didn't explain what to do that email login in would work, you just said you have to change the variable from UserName to EmailID, which doesn't work..<br /><br />Cannot insert the value NULL into column 'UserName', table 'db.dbo.UserProfile'; column does not allow nulls. INSERT fails.<br />The statement has been terminated.Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-6367112134390591724.post-65315710340738401212013-06-14T03:32:40.134-07:002013-06-14T03:32:40.134-07:00hello sir
nice post ...but i want to display diffe...hello sir<br />nice post ...but i want to display different column name e.g<br /> when user has successfully logged in it should display user Firstname instead of username or(any other column which is added manually), ....<br />can you suggest something thanks in advanceAnonymoushttps://www.blogger.com/profile/11564779223365884355noreply@blogger.comtag:blogger.com,1999:blog-6367112134390591724.post-32345112129013472322013-06-12T09:36:23.566-07:002013-06-12T09:36:23.566-07:00hello sir,
i'm trying to register at run-time(...hello sir,<br />i'm trying to register at run-time(register view) in mvc4, but it gives error as-<br /><br />Cannot insert explicit value for identity column in table 'webpages_Membership' when IDENTITY_INSERT is set to OFF.<br /><br />at-<br /><br />WebSecurity.CreateUserAndAccount(model.UserName, model.Password, new {Address = model.Address, City = model.City, State = model.State, Anonymoushttps://www.blogger.com/profile/16884092314436196117noreply@blogger.comtag:blogger.com,1999:blog-6367112134390591724.post-85348704311519398822013-04-11T21:31:37.605-07:002013-04-11T21:31:37.605-07:00Please follow the ditto steps advised.Please follow the ditto steps advised.Abhimanyu Kumar Vatsahttps://www.blogger.com/profile/01536208807178853605noreply@blogger.comtag:blogger.com,1999:blog-6367112134390591724.post-20337511258154827752013-04-11T02:19:03.850-07:002013-04-11T02:19:03.850-07:00Hello I tried to add the Column Email for userProf...Hello I tried to add the Column Email for userProfiles. When i try to register a user with a new email i get this error.<br />Cannot insert the value NULL into column 'UserId', table 'DB.DB.UserProfile'; column does not allow nulls. INSERT fails.Anonymoushttps://www.blogger.com/profile/01100721104659271509noreply@blogger.comtag:blogger.com,1999:blog-6367112134390591724.post-57236471964021576512013-03-27T22:12:48.826-07:002013-03-27T22:12:48.826-07:00You maybe missing a step. Create a new project fir...You maybe missing a step. Create a new project first and then try creating a new user account that will generate the simple membership database and then add new fields as given in step 1.Abhimanyu Kumar Vatsahttps://www.blogger.com/profile/01536208807178853605noreply@blogger.comtag:blogger.com,1999:blog-6367112134390591724.post-59602772047720495932013-03-27T12:40:53.644-07:002013-03-27T12:40:53.644-07:00Hi Abhimanyu.
I discovered your blog because I wa...Hi Abhimanyu.<br /> I discovered your blog because I was doing exactly what you are doing here but when I run for the first time the website, for some reason my new fields are not created on the table.<br /><br /> I have tried a lot of things and nothing works, and I do exactly what you are doing.<br /> I have Windows 8, VS2012 professional and also MSSQL server 2012 with all the updates.<br /><Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-6367112134390591724.post-12439082720085197802012-12-16T22:28:42.508-08:002012-12-16T22:28:42.508-08:00Thank you Jalpesh :) nice suggestion, i'll add...Thank you Jalpesh :) nice suggestion, i'll add this feature very soon.Abhimanyu Kumar Vatsahttps://www.blogger.com/profile/01536208807178853605noreply@blogger.comtag:blogger.com,1999:blog-6367112134390591724.post-17228370914386075542012-12-16T21:52:36.370-08:002012-12-16T21:52:36.370-08:00Nice tip Abhimanyu!!. I have one suggestion for yo...Nice tip Abhimanyu!!. I have one suggestion for you. Use syntax highlighter instead of putting code pictures over there. So Please can copy and use your code directly.Jalpesh Vadgamahttp://www.dotnetjalps.comnoreply@blogger.comtag:blogger.com,1999:blog-6367112134390591724.post-78148791193184869972012-11-14T08:03:18.654-08:002012-11-14T08:03:18.654-08:00really helpful your notes but you didnt mention ab...really helpful your notes but you didnt mention about the database coonection to this application ...Anonymoushttps://www.blogger.com/profile/18241265198335006795noreply@blogger.comtag:blogger.com,1999:blog-6367112134390591724.post-92147479645678771552012-11-06T02:34:15.612-08:002012-11-06T02:34:15.612-08:00Patel: for this you need to re-design the registra...Patel: for this you need to re-design the registration page & login page. you are getting this error because in 'UserProfile' database table 'username' column is NOT NULL field.Abhimanyu Kumar Vatsahttps://www.blogger.com/profile/01536208807178853605noreply@blogger.comtag:blogger.com,1999:blog-6367112134390591724.post-56461078583535665342012-11-06T01:01:43.377-08:002012-11-06T01:01:43.377-08:00Nice article, but notice that "What if one wa...Nice article, but notice that "What if one wants to let the user login using an email id?" doesn't work well.<br /><br />It is throwing error: Cannot insert the value NULL into column 'UserName', table 'LoginSys.dbo.UserProfile'; column does not allow nulls. INSERT fails.<br />The statement has been terminated.<br /><br />Do you know what could be cause of this error?V Patelhttp://www.dailyfreecode.comnoreply@blogger.comtag:blogger.com,1999:blog-6367112134390591724.post-75730780342957821272012-11-05T20:20:14.560-08:002012-11-05T20:20:14.560-08:00Nice post, thanks !Nice post, thanks !Best International Finance Bookshttps://www.blogger.com/profile/14425460020863935372noreply@blogger.com