Thank you so much Nitish bhai. It was a great help. I had been searching for the solution of implementing Authorize attribute and role based authentication for a week and couldn’t find a single help from any article including StackOverflow. And especially for an existing mvc project. Although I have been watching your tutorials since last year but didn’t go that far. But today I’m happy that finally I’ve learnt this. I can’t express my gratitude in words. Please keep posting informative videos. God bless you.
Thanks bro...this video very helpful me...bcz I have been search on youtube for authentication and authorization since 6 month , I couldn't find ...but this video really understood me ..
Getting error while adding View for ActionResult Login() in Account Controller -> There was an error running the selected code generator: 'Unable to retrieve metadata for 'abc.Models.Membership', one or more validation errors were detected during model generation: Membership: : EntityType 'Membership' has no key defined. Define the keys for this EntityType. Memberships: EntityType: EntitySet 'Memberships' is based on type 'Membership' that has no key defined.
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: / Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.8.4075.0
Nice video. I have questions: First time you make a class with name membership and while creating view you mentioned that membership class and while creating signup functionality you use user model class. can we use same user model class both times?? and why you create membership class?
after logout, if we click the back button on browser, it still redirects to the previous page (though, if we hit refresh it goes to the return url mentioned in webconfig). How to clear the cache on logout to rectify this behaviour?
Can someone please explain the logic behind using Membership model class @13:34 for login purpose and the using User class for the signup purpose @15:34. I will be really thankful to you for the explanation.
This tutorial is so much clear and understandable.. Thank you so much for making these kind of video.. I need to Know one question this is how can I use multiple login form like admin user and others panel. Thanks in advance..
thanks for video . this is very helpful. i have a one point, that i want to ask, signup form validation is not working, how to resolve. please help me.
I followed all steps as mentioned in video and its working. Make sure to re watch the video and recheck the code again, may be some code is not proper.
can make a video for logout automatically in mvc please help suppose user keep system idle mode after login and then after 30 seconds it's gone to login page if user does not use system for 30 seconds
sir let say i want to have 2 types o users/role same like user and admin but i want to use different tables for both types of user ,then in that casehow will i make authentication possible with 2 diffrent users.
Hi, i am getting problem while build the data base connection, getting error Severity Code Description Project File Line Suppression State Error (active) CS0246 The type or namespace name 'Employee' could not be found (are you missing a using directive or an assembly reference?) WebApplication1 D:\My Study\ASPDot Net\Projects\WebApplication1\WebApplication1\Model1.Context.cs 28
Hey @WebGentle, I followed your tutorial. I have couple pages that user should visit without Login and only one page needs login. I followed you and login works for particular page but other pages showing database error although it was working earlier. Any setting on webconfig so that there won't be any error?
In this Video you have missed many things because of which I cannot do this program in the way it is appearing on tour screen. Please Mention all the things correctly once. I can see @15.30 you have missed something to explain because of which I cannot get the correct Output. Though you have shared the source code still as a beginner I cannot understand that and I have seen many of your videos same issue is there. No doughty you explain every point very clearly and that is easy to understand. But as a beginner I understand every point is important.
It works thanks but I have to place in each and every control to work or else if I placed in web.config file but when ever the user going to one control to another if he/she press back button it will not work any help
Thanks for the video .It was helpful. I have some doubt . can you tell me where can i find the front end part code? Do i have to watch some other video of yours?
Sir why didn't you use separate class project for models and database as you have used in CRUD in video #30 to 36.. please advise for best architecture in mcv.. and if there is any video related to this please share link
For best architecture everyone has his on point - Some people prefer to use separate class library project for code separation and some of them use everything under project. But I would suggest you to use separate project as it gives you more separation of code which is beneficial in many ways. Hope it will help you.
Sir, I am getting an error while adding view to action method login() in Account Controller --> There was an error running the selected code generator: unable to retrieve metadata for 'TestMVC2.Models.Membership' Pls Suggest
sir when you create a view for an account u didn't get an error but when I'm doing this same work I got an error of Error : There was an error running the selected code generator:'unableto retrieve metadata for'' plz help me with this
This tutorial is so helpful:) I have a request, Can you make a video on login through social sites like Facebook, Google, and Linkedin. That would be a great help. Thank you in advance!
bool isValid = context.User.Any(x => x.UserName==model.UserName && x.Password == model.Password); Controllers\AccountController.cs(24,82,24,110): error CS0019: Operator '==' cannot be applied to operands of type 'string' and 'int' I am getting this error...pse advice
The best ever teaching, Simplicity on peak and a wonderful explanation . Highly recommended for beginners.
Thank you SIR
maa kasam issey best video nahi dekha aaj tak, thanks a trillion, you are simply the best.....
best tutorial for Login and Logout mvc I have ever seen
jabardast es video se bahut kuch sikha hai kahi pr b authentic and authorised pr aisa video nahi hai detail mai great bro
True
membership class q bnai?
Thank you so much Nitish bhai. It was a great help.
I had been searching for the solution of implementing Authorize attribute and role based authentication for a week and couldn’t find a single help from any article including StackOverflow.
And especially for an existing mvc project. Although I have been watching your tutorials since last year but didn’t go that far. But today I’m happy that finally I’ve learnt this.
I can’t express my gratitude in words. Please keep posting informative videos.
God bless you.
Thank you 😊
Thanks bro...this video very helpful me...bcz I have been search on youtube for authentication and authorization since 6 month , I couldn't find ...but this video really understood me ..
Bhai is sey baria video TH-cam pey ni melegi. ... Superb genius bro
This video very useful for mvc beginners...Thank u sir... I don't know Hindi!! but I understand for your way of teaching.. thank you...
Getting error while adding View for ActionResult Login() in Account Controller ->
There was an error running the selected code generator: 'Unable to retrieve metadata for 'abc.Models.Membership', one or more validation errors were detected during model generation:
Membership: : EntityType 'Membership' has no key defined. Define the keys for this EntityType.
Memberships: EntityType: EntitySet 'Memberships' is based on type 'Membership' that has no key defined.
Thank you soooo much. Very detailed step by step video. Now I know how authentication system is implemented. Fantastic trainer you are.
why did you created membership class?
Same question. Was not User model class enough, just like Employee class?
Sir, logout karne ke baad agar previous button press kiya to wapas, bina login ke main pages pe redirect hota hai. Wo history kaise clear kare?
This is the most perfect tutorial I have ever come across, from the scratch.
User class ka tw btao wo kahan sy ai razor view me? Uska overall purpose etc.
Best tutorial of the word for login
I followed the vedio but Authentication is not working its not redirecting to login page can you please help me
Most awaited video.. thanks..nice content..good luck bro
Sir ye code file 2015 version pr nhi chlega kya ??? IIS server error show ho rha h
Same here I am also struggling to run the application
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: /
Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.8.4075.0
am facing visual studio tools require desktop docker error?
Hi sir instead of user class which You have used in this tutorial?Is there any other way to solve it.
Hi sir,
User.Identity.IsAuthenticated always returning value true whether login or not how can fix this
.
same prob -_-
Nice video. I have questions:
First time you make a class with name membership and while creating view you mentioned that membership class and while creating signup functionality you use user model class. can we use same user model class both times?? and why you create membership class?
I too have the same question
Thank you very much your project is perfect and im resolve my problem..
SIR YOUR ALL VEDIOS ASP NET MVC ARE THE BEST OF ALL OTHERS YOU TUBE VEDIOS. PLS MAKE ADMIN PANEL IN MVC
Excellent Brother 👌
You are best of the best man ❤❤❤
Thank you for your words. I love to hear your feedback on LinkedIn where you can tag my profile www.linkedin.com/in/meettonitish
if i opened the same url with more than one tab and from any of one i logout then how to logout from all tab
Thank you very much for the information! You help me a lot!
What is officeEntities? in which folder
can we find it
Sir I have a Problem. In my browser, the navigation bar is not showing properly.
Excellent Tutorial Bro !!! It helps a lot, have an super day!
Hi,I am facing some issue. Antiforgery problem while redirecting url to login page
Nice video.. Explained nicely...Thanks
after logout, if we click the back button on browser, it still redirects to the previous page (though, if we hit refresh it goes to the return url mentioned in webconfig). How to clear the cache on logout to rectify this behaviour?
Good question.
Did u find the answer?
Can someone please explain the logic behind using Membership model class @13:34 for login purpose
and the using User class for the signup purpose @15:34.
I will be really thankful to you for the explanation.
Same Question! Did You find any Answer?
This tutorial is so much clear and understandable.. Thank you so much for making these kind of video..
I need to Know one question this is how can I use multiple login form like admin user and others panel.
Thanks in advance..
how to validate input ..??? there is no model class ....
बहुत बडिया भाई,
Love you
Very good and detailed explanation.
How we can use data annotations with ado.net data model classes and also apply foreign key on that
Me apke video dekh kr add controller kiya to controller add nhi ho rha pakage nhi mil rha ...can u help?
Do we need Id property in Membership class?
To the point and very good. Please do more videos.
thanks for video . this is very helpful.
i have a one point, that i want to ask, signup form validation is not working, how to resolve. please help me.
I followed all steps as mentioned in video and its working. Make sure to re watch the video and recheck the code again, may be some code is not proper.
can make a video for logout automatically in mvc please help
suppose user keep system idle mode after login and then after 30 seconds it's gone to login page if user does not use system for 30 seconds
Why you have members ship model??
Great Sir,I am grateful to you.
sir why we create membership class
we also create that in database same just like that
If I need to write code in employeerepository for login what code i will write plz help me 🙏
sir let say i want to have 2 types o users/role same like user and admin but i want to use different tables for both types of user ,then in that casehow will i make authentication possible with 2 diffrent users.
Why do you want to use different tables? you shouls focus on db normalization
Great video....very good and simple explanation!👍👍
Hi, i am getting problem while build the data base connection, getting error
Severity Code Description Project File Line Suppression State
Error (active) CS0246 The type or namespace name 'Employee' could not be found (are you missing a using directive or an assembly reference?) WebApplication1 D:\My Study\ASPDot Net\Projects\WebApplication1\WebApplication1\Model1.Context.cs 28
I think you are missing Employee class in your dbcontext class. More details can be given by having a look on code.
I used crud opration which u explained in previous video no 30 to 34 and extant this project and need to implement login logout page also
What type of code i will write for employeesRepositary
ABSOLUTELY AWESOME SIR...LOVE YOU....THANK YOU
Hey @WebGentle, I followed your tutorial. I have couple pages that user should visit without Login and only one page needs login. I followed you and login works for particular page but other pages showing database error although it was working earlier. Any setting on webconfig so that there won't be any error?
This video is very helpful i am interested in learning more from you aap full course v krwate ho?
I have an error, v3/index.jeson?can you help me
Can you please explain
Difference between FormsAuthenticationTicket and FormsAuthentication.SetAuthCookie
****Waiting for reply***
In this Video you have missed many things because of which I cannot do this program in the way it is appearing on tour screen. Please Mention all the things correctly once. I can see @15.30 you have missed something to explain because of which I cannot get the correct Output.
Though you have shared the source code still as a beginner I cannot understand that and I have seen many of your videos same issue is there. No doughty you explain every point very clearly and that is easy to understand. But as a beginner I understand every point is important.
i have a problem when i implement the logout method after logout when i press back button in browser it is going to Index page any help
This is happening because of browser caching. To avoid it you can use caching filter with time zero on index action method.
It works thanks but I have to place in each and every control to work or else if I placed in web.config file but when ever the user going to one control to another if he/she press back button it will not work any help
Reply bro
Sir I have error
CS0104 Membership' is an ambiguous reference between WebApplication 1.Models Membership and System.Web.Security.Membership
sir my mvc 5 controller with views didn't download ....please guide me how to solve
Nice Explanation !! Keep it up
Thanks for the video .It was helpful.
I have some doubt . can you tell me where can i find the front end part code?
Do i have to watch some other video of yours?
mere user ka name nahi likha ja raha layout waly section me
Can u help me its saying the server not found 3:50
It means you have entered wrong server name.
@@nitishkaushik786 tnxx for correcting
What if user has disabled the cookies in their browser? Will it be affected?
thanks a lot ...this video very clear and helpfull godbless you sir
Could somebody add English subtitles please?
Nice explanation
Sir why didn't you use separate class project for models and database as you have used in CRUD in video #30 to 36.. please advise for best architecture in mcv.. and if there is any video related to this please share link
For best architecture everyone has his on point -
Some people prefer to use separate class library project for code separation and some of them use everything under project.
But I would suggest you to use separate project as it gives you more separation of code which is beneficial in many ways.
Hope it will help you.
osm video ....learn alot thank you sir
Keep learning 👍
Thank you so much!
I solved it
Why would u create this if MVC already provides you all this functionality out of the box?
sir you are awesome thank you so much
How to create admin login and user login
Entity Data Model not showing in new item
Very nice video sir
Sir Add controller krne pr Employees Controller .VB extension aa rha or execute krne pr / server error aa rhi kya kre❓
Aapne application VB m bna Li h. New application bnao using C#.
Template choose krte hue hi option aata h.
@@WebGentle Thanks sir for your reply.
Sir how can we validate and authentic details of designation/salary/user name
Helpful video..
source code not available here
Sir, I am getting an error while adding view to action method login() in Account Controller -->
There was an error running the selected code generator: unable to retrieve metadata for 'TestMVC2.Models.Membership'
Pls Suggest
Same here. Did you get the answer?
I too got the same error.
But when I used User model instead of Membership model the error resolved.
Don't the the reason.
sir when you create a view for an account u didn't get an error but when I'm doing this same work I got an error of Error :
There was an error running the selected code generator:'unableto retrieve metadata for'' plz help me with this
Same here. Did you get the answer?
Server Error in '/' Application. kindly bta dey ye error
This tutorial is so helpful:)
I have a request, Can you make a video on login through social sites like Facebook, Google, and Linkedin.
That would be a great help.
Thank you in advance!
Without using the MVC template Microsoft gives for social login.
Very good sir
But
Browser back button issue after logout.
I would recommend to use no changing filter on your controller or set it globally.
That must resolve back button issue.
Thank you sir.. very helpful
thank you Sir ji
Nice Bohut ACHA
does this work fora webpage also? I am new and I wanna know if it works offline only or will it work if uploaded to site hosting service also?
MVC is a web framework. Everything you will learn in this tutorial will work on your server.
Thank you soo much
if my case its also showing ID TextBox when i m trying to login tell me how to fix it
bool isValid = context.User.Any(x => x.UserName==model.UserName && x.Password == model.Password);
Controllers\AccountController.cs(24,82,24,110): error CS0019: Operator '==' cannot be applied to operands of type 'string' and 'int'
I am getting this error...pse advice
nicely explained
Please explain Active directory authentication and how it difference from Form Authentication.
Wish this was in English. Or I spoke your native language. I'm trying to follow along muted but it's difficult.
No bro It's not working I'm getting errors I followed each and every step but not working
Hello sir it is very helpful vedio but i need multiple client login use one database