Ami ei video ta 5 bochor aage dekhechilam. Tokhon college e Final year project e Thik korechilam MVC te korbo but MVC er byapare Zero knowledge chilo but iccha thakleo confidence chilo na tao neme porechilam... tokhon apnar ei video seriese chara ar kichu chilo na... Apnar help e egono suru... aj 5 bochore life onek bodle geche... jibone kichu dur egiyechi... tobe egiye jaoyar biswas suru apnar ei video theke... Dhonnobad apnake.
couple of notes. This is a great tutorial and is packed with actual practical knowledge. Except for a few things. 1. You should check if the password is strong. 2. You should check if the username exists. 3. Just set the confirm password to null after you hash, you already performed the compare. also you should build your queries like this to avoid SqlInjection attacks. public static bool UsernameExists(string Username) { bool result = false; Models.UserRegistrationPasswordEntities db = new Models.UserRegistrationPasswordEntities(); var queryResult = db.Users.SqlQuery("SELECT userName FROM User WHERE userName = @1", Username).ToList(); // the ternary opertor is pretty awesome result = queryResult == null ? false : true; return result; }
Hello, great tutorial. I'm late to tell you about this, but the link for part 2 you provided in the description is wrong, make sure you update it because it's super helpful. Thanks for the great work again! :)
Awesome, cannot thank you enough Sourav. Sound was a bit low at times but you explained what you were doing quite well and this worked for me after fixing a few errors. One thing to mention is that using a new gmail account to send a verification email requires allowing access for less secure apps on the gmail you created otherwise you will get an authentication error.
I run web part : User/Registration success but click button create web show Error Description: HTTP 404. The resource you are looking for (or one of its dependencies) could have been removed, had its name changed, or is temporarily unavailable. Please review the following URL and make sure that it is spelled correctly. Requested URL: /User/Registration
Thanks, Sourav for the great tutorial. It's very easy to understand. Looking forward to part 2, and link for the second part in your description is wrong. Please correct it.
iam running my project then any error : The resource cannot be found. Description: HTTP 404. The resource you are looking for (or one of its dependencies) could have been removed, had its name changed, or is temporarily unavailable. Please review the following URL and make sure that it is spelled correctly.
"System.Net.Mail.SmtpException: 'The SMTP server requires a secure connection or the client was not authenticated. The server response was: 5.7.0 Authentication Required" how to fix this
Thank you very much for the video! Sorry but I do not understand what is the verifyUrl in SendVerificationLinkEmail method. My link does not work by the resource has not been found. Is it some view that you had done before . Thank you so much
for some reason when I try to create a view for Registration with the User model, the model in the view file can not access the properties in UserMetaData. What could be the reason for this?
sir as your create database in app data can we create database not like that and usually create database in Sql server please help me how can we do like that
Maybe this could save hours for someone else: If you are getting this error, "The SMTP server requires a secure connection or the client was not authenticated. The server response was: 5.5.1", try the following methods below 1) Ensure that your network does not block your application 2) Go to Gmail Settings > Forwarding and POP/IMAP > IMAP Access > Enable IMAP 3) Go to Google Account > Security > Less secure app access > On If the above still doesnt work, try changing to stronger password. Hope this helps!
Has anyone noticed that on the part of sending email to user the video cuts off and while he starts with var scheme and var host, then those are deleted and replaced by something completely different with no explanation of why and what's the difference???
Sir i am getting this Error ! The SMTP server requires a secure connection or the client was not authenticated. The server response was: 5.5.1 Authentication Required?? what i do ???
hello #question if one of my fields is username and i want to validate if it exist or not do i apply the same method used to check if email exist ? only change variables from email to username?
The SMTP server requires a secure connection or the client was not authenticated. The server response was: 5.7.0 Authentication Required how to resolve this issue on generate email check
Dear sourav mondal i have tried this tutorial but when i have clicked on controller to add view i have got different view code from you, what thing i have to set first in my development environment, i have visual studio 2012, with entity framework 5 installed. any thing else i need to install kindly guide me ???
have you created the entity model from your database? I have a User table in my database from where I got the User Model when I generate the Entity model from the database
The page gives an exception when clicked on register . The exception is : InvalidOperationException: The model item passed into the dictionary is of type 'System.Security.Principal.WindowsPrincipal', but this dictionary requires a model item of type 'InstructionalResource2.Models.User'. Please help..
System.InvalidOperationException: 'Both ErrorMessageResourceType and ErrorMessageResourceName need to be set on this attribute.' Sir Please Help me For Solve this Problum
Can someone help me out? Everytime i hash the password it gives me an error message on registration. I think it is because after the hashing the compare with confirm password doesnt work since they do not match anymore. Can someone tell me what i need to do to fix this issue?
hi Sourav, i have been following your instruction but i don't receive the email with activation code, i used my email as "fromEmail" and and my password as "fromEmailPassword" but the application is giving me a success message after registration. how can i fix this issue?
hi i did this as per your tutorial instructions , its should we run well as error messages,and date show and conform password ,but when i click on create button he through error Server Error in '/' Application. The resource cannot be found. Description: HTTP 404. The resource you are looking for (or one of its dependencies) could have been removed, had its name changed, or is temporarily unavailable. Please review the following URL and make sure that it is spelled correctly. Requested URL: /User/Registration
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code. Exception Details: System.Net.Mail.SmtpException: The SMTP server requires a secure connection or the client was not authenticated. The server response was: 5.5.1 Authentication Required. Learn more at Source Error: Line 128: IsBodyHtml = true Line 129: }) Line 130: smtp.Send(message); Line 131: } Line 132: } got this error while trying to execute the page. everything else was good. how can i fix this?
Can any one help me with this error ' An exception of type 'System.Data.Entity.Infrastructure.DbUpdateException' occurred in EntityFramework.dll but was not handled in user code ' in dc.SaveChanges();
"Maybe this will come in handy for someone: If after running the program, you receive the error "System.Net.Mail.SmtpException: The SMTP server requires a secure connection or the client was not authenticated. The server response was: 5.7.0 Authentication Required," you just need to set up two-step verification on the Gmail account of the sender and generate a special application password. Then, in "var fromEmailPassword," instead of your Gmail account password, you need to enter the "application password" previously generated and copied from the Google account settings.
great video ,this is what i was looking for, but i have read many places that salting should be a part of storing user passwords for security reasons. Have you any comments on this and could you show us if you think its important ?
Server Error in '/' Application.The SMTP server requires a secure connection or the client was not authenticated. The server response was: 5.5.1 Authentication Required. How I it solve.
Hello Sir, Thank You for Helpful Video. Sir I have one issue. When I add User.cs new class in new folder so this showing ambiguous error. Please help me in solving this issue sir
This error occurs when I have created an sql database in the backend.An acception occurs that is given below. An exception of type 'System.InvalidOperationException' occurred in System.ComponentModel.DataAnnotations.dll but was not handled in user code Additional information: The associated metadata type for type 'RegistrationAndLogin.Models.User' contains the following unknown properties or fields: DateOfBirth. Please make sure that the names of these members match the names of the properties on the main type.
Hi Sourav , I am facing an issue with rendering the Registration.cshtml view. Athough it's not showing any .net exception in the browser but the page remains blank. From the IntelliTrace window in VS 2012 I noticed that its throwing null pointer exception in the below line @Html.EditorFor(model => model.ConfirmPassword, new {htmlAttributes = new {@class="form-control"}}) But not able to figure out why its throwing exception. Could you please shed some light on my issue. Struggling really hard for past 2 days
everything is fine...but when i submit details via create button....it throwing me an error with :An exception of type 'System.Data.Entity.Infrastructure.DbUpdateException' occurred in EntityFramework.dll but was not handled in user code...............how to resolve this?
Ami ei video ta 5 bochor aage dekhechilam.
Tokhon college e Final year project e Thik korechilam MVC te korbo but MVC er byapare Zero knowledge chilo but iccha thakleo confidence chilo na tao neme porechilam... tokhon apnar ei video seriese chara ar kichu chilo na...
Apnar help e egono suru... aj 5 bochore life onek bodle geche... jibone kichu dur egiyechi... tobe egiye jaoyar biswas suru apnar ei video theke... Dhonnobad apnake.
couple of notes. This is a great tutorial and is packed with actual practical knowledge. Except for a few things.
1. You should check if the password is strong.
2. You should check if the username exists.
3. Just set the confirm password to null after you hash, you already performed the compare.
also you should build your queries like this to avoid SqlInjection attacks.
public static bool UsernameExists(string Username)
{
bool result = false;
Models.UserRegistrationPasswordEntities db = new Models.UserRegistrationPasswordEntities();
var queryResult = db.Users.SqlQuery("SELECT userName FROM User WHERE userName = @1", Username).ToList();
// the ternary opertor is pretty awesome
result = queryResult == null ? false : true;
return result;
}
Not just tutorial but also teaches how to program in MVC. Simply Great ..
Hello, great tutorial.
I'm late to tell you about this, but the link for part 2 you provided in the description is wrong, make sure you update it because it's super helpful.
Thanks for the great work again! :)
Awesome, cannot thank you enough Sourav. Sound was a bit low at times but you explained what you were doing quite well and this worked for me after fixing a few errors. One thing to mention is that using a new gmail account to send a verification email requires allowing access for less secure apps on the gmail you created otherwise you will get an authentication error.
great work brother..you are awesome tutor..thanks for this ..keep uploading such type of videos
hooaaaah after some hardwork and retake on my code i got it welll done sourav nice tutorial nw heading towards the second part thanks May God Bless U
super tutorial..I love it.God Bless you..Ameen
Thank you so much it worked so far with me and I will watch the video again because it is very informative
Awesome tutorial. I didn't know nothing about forms authorization. Thanks. I subscribed. Sorry for my poor English. Greeting from Mexico.
Appreciate your work Sourav.want more advanced topic from u ..
This is a great tutorial WHEN i understand what you're saying...
Unfortunately there are times where i have no idea what you are saying..
Awesome. It totally works. But we'll need more tutorials like this
sand krdy plzzz
really very helpful video, much appreciated...
Thanks for tutorial it's really helped me. Thanks so much again. Thank you my friend.
Great example Sourav
Superb tutorial......
You are the best ...... Thank you so much for your guidance
i have done all things, exception receiving "Validation failed for one or more entities" on dc.SaveChanges() where i am doing wrong?
I run web part : User/Registration success
but click button create web show Error
Description: HTTP 404. The resource you are looking for (or one of its dependencies) could have been removed, had its name changed, or is temporarily unavailable. Please review the following URL and make sure that it is spelled correctly.
Requested URL: /User/Registration
Thanks, Sourav for the great tutorial. It's very easy to understand.
Looking forward to part 2, and link for the second part in your description is wrong.
Please correct it.
thanks young man. nice tutorial. in the future, i hope u make advance topics. Thankss
Excellent one Sourav bro.need more videos from you regularly so we gain enormous knowledge
Keep up the good work @sourav mondal
iam running my project then any error :
The resource cannot be found.
Description: HTTP 404. The resource you are looking for (or one of its dependencies) could have been removed, had its name changed, or is temporarily unavailable. Please review the following URL and make sure that it is spelled correctly.
"System.Net.Mail.SmtpException: 'The SMTP server requires a secure connection or the client was not authenticated. The server response was: 5.7.0 Authentication Required" how to fix this
Thank you very much for the video! Sorry but I do not understand what is the verifyUrl in SendVerificationLinkEmail method. My link does not work by the resource has not been found. Is it some view that you had done before . Thank you so much
Great you help in my university project
Thank you for sharing this and keeping it simple
for some reason when I try to create a view for Registration with the User model, the model in the view file can not access the properties in UserMetaData.
What could be the reason for this?
really awesome video , plz explain everything inside code......like generate hash for password
Please help, after creating my model, nothing appears. Only MyModel.edmx shows. The .cs files don't show.
Thank you so much Sourav Mondal.
sir as your create database in app data can we create database not like that and usually create database in Sql server please help me how can we do like that
Maybe this could save hours for someone else:
If you are getting this error, "The SMTP server requires a secure connection or the client was not authenticated. The server response was: 5.5.1", try the following methods below
1) Ensure that your network does not block your application
2) Go to Gmail Settings > Forwarding and POP/IMAP > IMAP Access > Enable IMAP
3) Go to Google Account > Security > Less secure app access > On
If the above still doesnt work, try changing to stronger password.
Hope this helps!
thank you.
hello Sourav
i'm getting exception in my code at dc.SaveChanges()
The exception is dbentityvalidationexception
please help how can i solve this??
You don't need to add identity specification for "USERID" in database?
I got this problem too, when i try to register a new User I got error "IDENTITY_INSERT is set to OFF
"
Why didnt you utilize the use of 3 tier layer architecture bro?.
brother,you didn't show when click on create button process, so i am lag on that process of my email verification application. so please help me.
Thank you very much! It was very helpful and clear
Has anyone noticed that on the part of sending email to user the video cuts off and while he starts with var scheme and var host, then those are deleted and replaced by something completely different with no explanation of why and what's the difference???
Sir i am getting this Error ! The SMTP server requires a secure connection or the client was not authenticated. The server response was: 5.5.1 Authentication Required?? what i do ???
Same question
hello #question if one of my fields is username and i want to validate if it exist or not do i apply the same method used to check if email exist ? only change variables from email to username?
The SMTP server requires a secure connection or the client was not authenticated. The server response was: 5.7.0 Authentication Required how to resolve this issue on generate email check
Dear sourav mondal i have tried this tutorial but when i have clicked on controller to add view i have got different view code from you, what thing i have to set first in my development environment, i have visual studio 2012, with entity framework 5 installed. any thing else i need to install kindly guide me ???
Hello sir ,i have also make mvc registration page but when i'm summited my form one exception throws ..
At 41:08 i'm unable to get my Entity name i.e MyDatabaseEntities. how to get that .i got struck there plz help
@
sourav mondal
Very Nice... Thank you a lot.
Nice tutorial... Thank you brother...
can i verify email if my database have not collumn "activation code"?
Thankyou good job sir
👋👋
how to create administration and user roles differently such that admin can view/add/users where users cant do it
Just awesome . thank you so much sir.
I dont get drop down on my models 9:48
Just the best thank you very good tutorial! Subscribed
Thankyou very match Sourav Modal
can i implement this using visual studio 2013? or i need vs2015 for this?
can you please make a tutorial video how to use login and registration templates in visual studio *please* ??
Awesome tutorial, very nicely explained. Thank you very much.
Thanks very much brother !!! God Bless you ..!!
a great tutorial man but please next time use high Voice
Good day. Your tutorial is very good :) I just want to ask if this tutorial is for online only? Thanks in advance :)
where's that vid u talk about ki it has simple explained login n regis cuz m beginner hope u reply sooon thank u
Hi Sourav,
I'm getting this Exceptio. Please help me.
The entity type User is not part of the model for the current context.'
have you created the entity model from your database? I have a User table in my database from where I got the User Model when I generate the Entity model from the database
did you ever resolve this error? cause i keep getting it and i cant find a solution
@32:53 what he said? reply please
The page gives an exception when clicked on register . The exception is : InvalidOperationException: The model item passed into the dictionary is of type 'System.Security.Principal.WindowsPrincipal', but this dictionary requires a model item of type 'InstructionalResource2.Models.User'. Please help..
Awesome work.
System.InvalidOperationException: 'Both ErrorMessageResourceType and ErrorMessageResourceName need to be set on this attribute.' Sir Please Help me For Solve this Problum
Can someone help me out? Everytime i hash the password it gives me an error message on registration. I think it is because after the hashing the compare with confirm password doesnt work since they do not match anymore. Can someone tell me what i need to do to fix this issue?
Great job. Many thanks.
hi Sourav,
i have been following your instruction but i don't receive the email with activation code, i used my email as "fromEmail" and and my password as "fromEmailPassword" but the application is giving me a success message after registration. how can i fix this issue?
bro where chalk up u been, it is so cool
I have a problem in last using function kindly help me out to resorve them
hi i did this as per your tutorial instructions , its should we run well as error messages,and date show and conform password ,but when i click on create button he through error
Server Error in '/' Application.
The resource cannot be found.
Description: HTTP 404. The resource you are looking for (or one of its dependencies) could have been removed, had its name changed, or is temporarily unavailable. Please review the following URL and make sure that it is spelled correctly.
Requested URL: /User/Registration
Why not use the user management already in the framework?
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
Exception Details: System.Net.Mail.SmtpException: The SMTP server requires a secure connection or the client was not authenticated. The server response was: 5.5.1 Authentication Required. Learn more at
Source Error:
Line 128: IsBodyHtml = true
Line 129: })
Line 130: smtp.Send(message);
Line 131: }
Line 132: }
got this error while trying to execute the page.
everything else was good.
how can i fix this?
did you resolve this issue?
Hi Sourav, Its not sending the email neither showing the error.
Cannot load the Data after publishing in my IIS machine. Any Help?
Hello sourav. Good day. Can you help me? Im having this error: Unable to cast object of type 'System.Int64' to type 'System.Array'.
Can any one help me with this error ' An exception of type 'System.Data.Entity.Infrastructure.DbUpdateException' occurred in EntityFramework.dll but was not handled in user code ' in dc.SaveChanges();
simply awesome...
you have created it with default view i have added a registeration template now how its done
I don't have shared folder on my vs how to get it
"Maybe this will come in handy for someone: If after running the program, you receive the error "System.Net.Mail.SmtpException: The SMTP server requires a secure connection or the client was not authenticated. The server response was: 5.7.0 Authentication Required," you just need to set up two-step verification on the Gmail account of the sender and generate a special application password. Then, in "var fromEmailPassword," instead of your Gmail account password, you need to enter the "application password" previously generated and copied from the Google account settings.
i am trying this kindly keep in touch with me
great video ,this is what i was looking for, but i have read many places that salting should be a part of storing user passwords for security reasons. Have you any comments on this and could you show us if you think its important ?
Hi sir what's version asp.net mvc for this tutorial? Thanks before
Server Error in '/' Application.The SMTP server requires a secure connection or the client was not authenticated. The server response was: 5.5.1 Authentication Required. How I it solve.
Syed Rana I got the same error
Any one who solve This error ..plz help Il
Hello Sir, Thank You for Helpful Video.
Sir I have one issue. When I add User.cs new class in new folder so this showing ambiguous error. Please help me in solving this issue sir
How did you get the Registration message to appear, mine doesn't?
Hi thanks for your video with the same application i want connect to postgre sql database and store the data in it, can u plz help me how to do it.
My user.ActivationCode doesn't work or the [Bind] doesn't bind . How do I fix this issue? Thanks
Thank you so much!!! Great tutorial!!
This error occurs when I have created an sql database in the backend.An acception occurs that is given below.
An exception of type 'System.InvalidOperationException' occurred in System.ComponentModel.DataAnnotations.dll but was not handled in user code
Additional information: The associated metadata type for type 'RegistrationAndLogin.Models.User' contains the following unknown properties or fields: DateOfBirth. Please make sure that the names of these members match the names of the properties on the main type.
It's giving me the same error
Hi Sourav , I am facing an issue with rendering the Registration.cshtml view. Athough it's not showing any .net exception in the browser but the page remains blank.
From the IntelliTrace window in VS 2012 I noticed that its throwing null pointer exception in the below line
@Html.EditorFor(model => model.ConfirmPassword, new {htmlAttributes = new {@class="form-control"}})
But not able to figure out why its throwing exception. Could you please shed some light on my issue. Struggling really hard for past 2 days
This is finally working!!!
How did you resolve it please?
everything is fine...but when i submit details via create button....it throwing me an error with :An exception of type 'System.Data.Entity.Infrastructure.DbUpdateException' occurred in EntityFramework.dll but was not handled in user code...............how to resolve this?
did you find the solution ?
does this authorize in action and controller please help
sir nice video thank you . how to send multiple emails in timings
hello Sourav, thanks for sharing your knowledge. nicely explained. can u share an exemple of forgot password? thank u
the part 2 link in the description is incorrect. plz do update it
Hi, I'm not getting validation messages