This was very helpful. I appreciate the fact that you take the time to explain everything and develop step by step instead of using the "out of the box" features.
👉 Full ASP NET Core Razor Pages - Scratch to Finish (.NET 7) www.udemy.com/course/aspnet-core-razor-pages-web-application-development/?couponCode=APRIL2023
Thank you all for taking out the time to watch my video, If you liked it, show your support by pressing the like button and subscribing to my channel. :) 💖 Subscribe to show support: bit.ly/2FAgXzS ☕ Buy me a coffee: www.buymeacoffee.com/SameerSaini
Very well explained, clean code, simplified and easy to understand. My project is adapted to bootstrap 4, and everything worked perfectly. I will follow your tutorials, because they are very well explained. And yes, as I think others have said, please do something with the image, that it is too small, and we have to zoom in so we can see. Otherwise, just words of praise. Bravo
This was a great video! You really helped me get a better understanding of how communication happens in a Razor pages app and how authentication and authorization fit in.
Thank you! That was really helpful. I have a question, if the unregistered user can't have access to pages like "Index" or "Privacy", how could the registered user not have access to pages like "Register" or "Login" which should be only for registered/not logged in users?
Than you!! so much for that video, hatsoff for u explaination, for great work,please try to make a video on ASP.NET Core Identity - Authentication and Authorization in ASP.NET Core - Login and Registration using Angular 13!!
Thank you for the video Sir, it's help me to understand about feature in .NET. May i ask how to get the username in Index (after login) in the start of video?
MIgrations work the same for Azure SQL server too, it needs a connection to a database and the rest of the fundamentals of the migrations remains the same
Hi Sameer, This was an awesome video. Thanks a lot for this. However I need to add a few custom fields like First Name and Last Name and was wondering if you could let me know how to do that. Thanks in advance and much appreciated. Your the best....:-)
@Sameer Saini Hey i implemented as you did in the whole video . I create a connection as you did for database but no table is created in database just like yours . Can u help me with it ?? . I really need database for the further application work .😔😔
@@ms.sufiya9353 Delete the database. And give the command again: Initial-created in PM Console. After you give the command: Update-database, and only after this command it wheel you appear the tables.
Thank you so much for detailed explanation tutorial and one thing also Could you make ASP.NET Core Identity - Authentication and Authorization in ASP.NET Core 6.0 Login and Register Thank you in advance 🙂
Hello Sameer , Thans for this tutorial. I am stuck because of the following error , Would be great if you can help me resolve this . "InvalidOperationException: Unable to resolve service for type 'Microsoft.AspNetCore.Identity.UserManager`1[Microsoft.AspNetCore.Identity.IdentityUser]' while attempting to activate 'Aspnet_Core_Identity.Pages.RegisterModel'."
Are you on the browse tab of the nuget packages? Are you using a proxy or something? Try gking to nuget website directly to see if you can access that?
I have migration errors why? An error occurred while accessing the Microsoft.Extensions.Hosting services. Continuing without the application service provider. Error: Failed to load configuration from file ...\appsettings.json'.
Hi Maninder, We cannot convert this to a Web API as it is. An Authentication API also called an Identity API is a different kind of code in which the API produces a JWT token with all sorts of stuff like subjects, claims and permissions etc. In the next few days, I will try and create a tutorial for that as well :)
I get this Error(Format of the initialization string does not conform to specification starting at index 0.) when i type the command "Update-Database" .Please tell me how to fix it?
Help please. I got to the part when you create a user but my textboxes just clear when the password and confirm password is correct. It's not adding to the database
sir can you please do a video on user login with JWT Token authentication and authorization then display user name like "Hi " in angular 13 asp.net core
HI sir When I tried to install (Microsoft.AspNetCore.Identity.EntityFrameworkCore) I fased to this error {Install microsoft.aspnetcore.identity.identity.EntityFrameworkCore failed Additional information. Package restore failed. Rolling back package changes for (PROJECT NAME)} what shoul i do ?
STARTUP.CS FILE NOT GENERATED MY VISUAL STUDIO IS 2022 FRAME WORK IS 6 WHAT IS THE REASON BEHIND THIS additional information package restore failed rolling back package change for demoproject
guys can someone help ,its giving me this error when I try to update the database server " A network-related or instance-specific error occurred while establishing a connection to SQL Server. The server was not found or was not accessible. Verify that the instance name is correct and that SQL Server is configured to allow remote connections. (provider: Named Pipes Provider, error: 40 - Could not open a connection to SQL Server)"
I've tried this 5 times, from start to finish, using all the same labels right down to the database name. It FAILS to Login. It stops at public async Task OnpostAsyn(string returnUrl = null) and goes straight to return Page(). It never does a check. ModelState is NEVER valid under ANY conditions. All well and good to have a great video, but in the end it HAS to work - and it doesn't.
Answer.... In version 6.0 and 7.0 you MUST have a ? at this point. public async Task OnPostAsync(string? returnUrl = null) -- Mind you. I had to play with it many times, so there may be more small differences! Great Video but DEFINITELY needs to be updated!
This was very helpful. I appreciate the fact that you take the time to explain everything and develop step by step instead of using the "out of the box" features.
Cheers mate
👉 Full ASP NET Core Razor Pages - Scratch to Finish (.NET 7)
www.udemy.com/course/aspnet-core-razor-pages-web-application-development/?couponCode=APRIL2023
Thanks Sameer - very informative. A couple of minor tweaks and this video was still relevant in 2024 with vs2022 & .net 8. Great stuff!
Thank you all for taking out the time to watch my video, If you liked it, show your support by pressing the like button and subscribing to my channel. :)
💖 Subscribe to show support: bit.ly/2FAgXzS
☕ Buy me a coffee: www.buymeacoffee.com/SameerSaini
mr sameer,you are a legend..i just finish your course on udemy
I was beginner and started my first mini project by your video, it really help me a lot, thankyou so much for explaining clearly.
Great to hear that 👏
Hi! Thank you very much for sharing your knowledge with us. This has been very helpful. I look forward to future videos on Razor Pages.
Cheers mate
Thank you sameer gaaru. This helped me alot.
Sandar sir, identity example 👍👍👍
Cheers
What do I do if Startup.cs is missing in Visual Studio 2022?
Program.cs
Very well explained, clean code, simplified and easy to understand. My project is adapted to bootstrap 4, and everything worked perfectly. I will follow your tutorials, because they are very well explained. And yes, as I think others have said, please do something with the image, that it is too small, and we have to zoom in so we can see. Otherwise, just words of praise. Bravo
This was a great video! You really helped me get a better understanding of how communication happens in a Razor pages app and how authentication and authorization fit in.
Glad it helped you Alice, 👍
Thank you very much , You have a very clear pronunciation and a very understandable explanation
Thanks Gerard 👍
Thank you sir for taking the time. The explanation was solid and helped me learn more about CORE web apps of which I have little experience.
Glad you liked it
Thank you very much! Your video helped a lot in creating my project!
thanks a lot man! this really helped me so much and thanks to the good explanation i think i undestand a lot more now
Cheers mate
Short and sweet. Very good introduction.
Very nice, thank you kind stranger
You're very welcome
You have earned a subscriber Sameer!
Cheers Gurdeep
Thank you very much ,great boss
You are welcome
Great Tutorial. Thank you. Just one question. The "remember me" part doesn't work at my side. What did/could I miss ?
Thank you so much for this awesome tutorial
that's exactly what I needed, thanks a lot!
Cheers Yarik
I would say it was awesome !!!.....10/10
Glad to hear that
Thank you! That was really helpful.
I have a question, if the unregistered user can't have access to pages like "Index" or "Privacy", how could the registered user not have access to pages like "Register" or "Login" which should be only for registered/not logged in users?
Would love to see an update that works with Visual Studio 2022 and Asp.Net Core 6!
Yeah, was thinking about that too, with MVC this time
Thank you very much Sir.
Cheers mate
thank you for the video, plz make the background for the IDE other than black, thank u
Thank you for making it so easy. Can you do a video on how to create multiples roles with an admin? Thank you.
Thanks mate,
Thats a great video
Thank you, It is very usefull
Than you!! so much for that video, hatsoff for u explaination, for great work,please try to make a video on ASP.NET Core Identity - Authentication and Authorization in ASP.NET Core - Login and Registration using Angular 13!!
I don't have startup file bcoz version is latest so how and where to write the code that you are written in startup
Thank you so much good man. Wish you where my university lecturer
Happy to help
dear sameer kindly make a video on how to add identity exsisting project
Thank you for the video Sir, it's help me to understand about feature in .NET. May i ask how to get the username in Index (after login) in the start of video?
Thank you so much .
You're most welcome
Thank you . I watch it and learn a lot
helpful
Glad it helped
Amazing video but I have a question, would you be able to not include Migrations if we are using Azure Sql Server?
MIgrations work the same for Azure SQL server too, it needs a connection to a database and the rest of the fundamentals of the migrations remains the same
thanks for the video . but i hoped i could find also about role operations anyway thanks again
Thanks can you please share the code you have created in this tutorial
Thank you very much!
Cheers mate
Thanks for this helpful video but if we are using SQLite Database How can we implement Context class using theses View Models?
Hello, does this work with MVC Project and Authentification Type Individual Account? Thank you really much!
Thank you, how about multiple roles with an admin?
Hi Sameer, This was an awesome video. Thanks a lot for this. However I need to add a few custom fields like First Name and Last Name and was wondering if you could let me know how to do that. Thanks in advance and much appreciated. Your the best....:-)
Thank you so much
You're most welcome
thank you sir! but how to show use user info in view side? (for example: i want to show create a page that users are able to see their information)
Life saver
@Sameer Saini
Hey i implemented as you did in the whole video . I create a connection as you did for database but no table is created in database just like yours . Can u help me with it ?? .
I really need database for the further application work .😔😔
Did you run the EF core migrations?
@@SameerSaini yes i have
When u create connection . I also do the same but no affect there .
Just like yours project has created so many tables but mine nothing .
I think due to whixh my login also not working
@@ms.sufiya9353 Delete the database. And give the command again: Initial-created in PM Console. After you give the command: Update-database, and only after this command it wheel you appear the tables.
I'm stuck. I do the create user part but then the textboxes clear and nothing happens. no data is added to table
Also when user registers a confirmation email must be sent to the user, how can we go about it?
Sir, can I follow this tutorial for .NET 6?
Wow sir ji namaskar
Thanks alott🥰
How to add other columns?
Thank you so much for detailed explanation tutorial
and one thing also
Could you make ASP.NET Core Identity - Authentication and Authorization in ASP.NET Core 6.0
Login and Register
Thank you in advance
🙂
I mean in latest .net framework 6.0
How to create a registration and login form using Web API which contains user database and entity framework model
Hello Sameer , Thans for this tutorial. I am stuck because of the following error , Would be great if you can help me resolve this . "InvalidOperationException: Unable to resolve service for type 'Microsoft.AspNetCore.Identity.UserManager`1[Microsoft.AspNetCore.Identity.IdentityUser]' while attempting to activate 'Aspnet_Core_Identity.Pages.RegisterModel'."
SignInManager.IsSignedIn(User) ... where is User coming from?
how start up .cs comes in vs code in my vs code it doesnot found
What about Admin role?
but if I want to do roles based then?
Hi. My NuGet package does not show Microsoft.Entity..... Any suggestion. Thanks
Are you on the browse tab of the nuget packages? Are you using a proxy or something? Try gking to nuget website directly to see if you can access that?
The Aspauthnet in the database was already there or you just add it?, because when i connect into the server my table folder was empty
It gets added as part of entity framework migrations
i followed this but why the startup.cs is not being created on .net 6
Amazing video thanks so much
hello sir while adding the first migration it is showing Value cannot be null. (Parameter 'connectionString')
Please help
This is because you have not added the connectionstring in tha appsettings file
I have migration errors why? An error occurred while accessing the Microsoft.Extensions.Hosting services. Continuing without the application service provider. Error: Failed to load configuration from file ...\appsettings.json'.
i'm facing so much trouble when ever i add new project there is no startup file even entity frame work does not comes when i press ctrl+dot
Hii Sameer Sir, if we want to convert this into Asp.Net Core Web Api then how we can do that please reply asap
Hi Maninder, We cannot convert this to a Web API as it is. An Authentication API also called an Identity API is a different kind of code in which the API produces a JWT token with all sorts of stuff like subjects, claims and permissions etc. In the next few days, I will try and create a tutorial for that as well :)
I get this Error(Format of the initialization string does not conform to specification starting at index 0.) when i type the command "Update-Database" .Please tell me how to fix it?
Are you using Update-Database aith or without the double quotes?
Don't use quotes with the Update-Database command
@@SameerSaini Hi sammer, but u don't say how to create in-database tables. anyone are you add the database table inside? please help us sameer.
Help please. I got to the part when you create a user but my textboxes just clear when the password and confirm password is correct. It's not adding to the database
Please Need Support when I click of register no response generate ? what I do?
Can U tell why my LogOut Button does not appear ,after sucessful login ?
Where to write code to load drop-down immediately with application loads
do I need to create database AspnetAuth before all of this in sql server?or it will create automatically?
It will create it automatically
@@SameerSaini in migration creating part, it says sometimes failed or unable to create an object. please help me
How to do it on asp.net Mvc? same way? Thank you
That's right.
sir can you please do a video on user login with JWT Token authentication and authorization then display user name like "Hi " in angular 13 asp.net core
Sir can you please make video on email verification and forget password?
will try to make that ASAP
when i hit /register said page not found
How to format the html?
Font size is hardly visible anything.
I agree to that Prasad, I am planning to make another one using ASP.NET 6 soon.
The command Update-database won't working , I've got this error : a network-related or instance-specific error occurred
HI sir
When I tried to install (Microsoft.AspNetCore.Identity.EntityFrameworkCore) I fased to this error {Install microsoft.aspnetcore.identity.identity.EntityFrameworkCore failed Additional information. Package restore failed. Rolling back package changes for (PROJECT NAME)} what shoul i do ?
STARTUP.CS FILE NOT GENERATED MY VISUAL STUDIO IS 2022 FRAME WORK IS 6 WHAT IS THE REASON BEHIND THIS additional information package restore failed rolling back package change for demoproject
Sql Server Table?
Logout not working even after created all the functionality for that
how can i get this code ?
I am only Getting View of Register.htmlCss no CS File.... Common its .CS Should be in Controller. Your Project doesn't have Controller folder????
bro plz increase the Font size and reupload it plz😊
Can anyone replay how to display details of user after logged in
Sir please help us create forgot password and change password pages also
Sure, I will work on these videos.
Why your font is that small? Don't put too much pressure on your eyes.
guys can someone help ,its giving me this error when I try to update the database server " A network-related or instance-specific error occurred while establishing a connection to SQL Server. The server was not found or was not accessible. Verify that the instance name is correct and that SQL Server is configured to allow remote connections. (provider: Named Pipes Provider, error: 40 - Could not open a connection to SQL Server)"
I'm the same as you, who can help me
Please can u upload source code?
I've tried this 5 times, from start to finish, using all the same labels right down to the database name. It FAILS to Login. It stops at public async Task OnpostAsyn(string returnUrl = null) and goes straight to return Page(). It never does a check. ModelState is NEVER valid under ANY conditions. All well and good to have a great video, but in the end it HAS to work - and it doesn't.
Answer.... In version 6.0 and 7.0 you MUST have a ? at this point. public async Task OnPostAsync(string? returnUrl = null) -- Mind you. I had to play with it many times, so there may be more small differences! Great Video but DEFINITELY needs to be updated!
The entire Internet is based on Indians
Isn't that right! Thanks for specifying that fact :)
Also you are welcome! Hope you learn something from the video.