Global exception handling in asp net core mvc

  Рет қаралды 111,186

kudvenkat

kudvenkat

Күн бұрын

Пікірлер: 52
@ankitmvp
@ankitmvp 5 жыл бұрын
@kudvenkat You are the best teacher in the world. No one can replace you. Please keep on sharing these type of series. Thanks for all you are doing for whole Software Development community and developers.
@socialworker7519
@socialworker7519 2 ай бұрын
Very well explained. Superb 👍
@darkogele
@darkogele 5 жыл бұрын
You are machine son great job as always THUMBS UP !!!
@Csharp-video-tutorialsBlogspot
@Csharp-video-tutorialsBlogspot 5 жыл бұрын
:-)
@softwareengineer1426
@softwareengineer1426 2 жыл бұрын
Very good illustration , many thanks
@talkathiriify
@talkathiriify 5 жыл бұрын
Dear Kudvenkat Thank you very much for valuable series They are highly appreciated
@sipi41
@sipi41 3 жыл бұрын
Thank you, the docs mention this but not the way you did, thank you again!
@carlosinigo9225
@carlosinigo9225 4 жыл бұрын
why is my DeveloperExceptionPage middleware not working??? It says Exception unhandled.. pls help
@FOBZOGAMING
@FOBZOGAMING 5 жыл бұрын
sir i visited to your channel but is 2-3 asp.net playlist I'm cofused which order should i followed can you plz guide me .
@Csharp-video-tutorialsBlogspot
@Csharp-video-tutorialsBlogspot 5 жыл бұрын
ASP .NET tutorial for beginners - This course is on using asp .net web forms to build web applications. This is an old technology. I wouldn't suggest to start learning this if you are new to .NET world. kzbin.info/aero/PL6n9fhu94yhXQS_p1i-HLIftB9Y7Vnxlo ASP .NET MVC tutorial for beginners - This course explains how to use asp .net mvc to build web applications. There's lot of demand for asp .net mvc developers. Though MVC and .NET Core MVC are slightly different, lot of concepts are still the same. So, I suggest learn this technology. kzbin.info/aero/PL6n9fhu94yhVm6S8I2xd6nYz2ZORd7X2v ASP .NET Core tutorial for beginners - ASP .NET Core is the latest new technology from Microsoft for building web applications. After you are done with asp .net mvc, I suggest learn asp .net core as well, to broaden your chances of finding a job as a dot net web developer. Hope this answers your question. kzbin.info/aero/PL6n9fhu94yhVkdrusLaQsfERmL_Jh4XmU
@yasirirfan5262
@yasirirfan5262 8 ай бұрын
excellent.
@javaguitarist
@javaguitarist 4 жыл бұрын
I had a 500 error on the Error view because I got fancy and added this at the top: @{ ViewBag["Title"] = "Error"; } I think it was because there was no model set on the page. Is there a way to make that work?
@TheITomG
@TheITomG 3 жыл бұрын
@{ ViewBag.Title = "Error"; }
@ramisaleiman9063
@ramisaleiman9063 5 жыл бұрын
اشكرك اخى الكريم على اى فيديو جديد لما فيه من إفادة للجميع ، وفى ميزان حسناتك ان شاء الله، ولى سؤال : هل الغرض من هذا الفيديو هو معالجة الاخطاء فى الدوت نت كور؟ كما فهمت، اما يوجد معنى اخر من هذا الفيديو؟
@osamaabushammala5344
@osamaabushammala5344 5 жыл бұрын
مش ملاحظ انو بحكي انجلش
@ramisaleiman9063
@ramisaleiman9063 5 жыл бұрын
وهل يوجد مشكلة اخى الكريم انى اسأل بالغة العربية، وعلى اى حال : كنت اتوقع من حضرتك الرد على السؤال بصدر رحب، ونفع الغير بعلمك الذى تتقنه باللغة العربية.
@bilalelmursi4039
@bilalelmursi4039 5 жыл бұрын
handle unexpected application errors الغرض من هذا الفيديو هو السيطرة على الأخطاء الغير متوقعة بحيث يتم تفاديها لكي لا تعيق عمل البرنامج ولا تسبب توقفه عن التنفيذ
@ramisaleiman9063
@ramisaleiman9063 5 жыл бұрын
@@bilalelmursi4039 اشكرك استاذ بلال على الرد وجزاك الله كل خيراً وفى ميزان حسناتك، وفى سؤال بيطرح نفسه: هو لما يتفادى الاخطاء الغير متوقعة، ويتم تنفيذ الابليكشن بهذة الاخطاء ، ما هو الجديد الذى تم اضافته فى تفادى الاخطاء وتنفيذ الابليكشن بالاخطاء
@nys8260
@nys8260 4 жыл бұрын
@@ramisaleiman9063 الفكرة انه ان حدث خطاً في الـ application يتم بعث رسالة للـ Developer فيها تفاصيل الخطاً لحتى يعالجها في الـ application عن طريق اصلاح الكود البرمجي
@akashkumar-ul4cd
@akashkumar-ul4cd 4 жыл бұрын
thanks sir , great solution
@lifetraveler8008
@lifetraveler8008 4 жыл бұрын
Hi. Instead of getting the developer exception page i am getting 'Exception Use-Unhandled System.Exception: 'Error in Details View' . If I hit continue, i do get the exception page, but would like to understand why 'Exception Use-Unhandled System.Exception: 'Error in Details View' . occurs Also the 'throw new exception... gives a warning 'unreachable code detected; Can anyone help please?
@sujitbehera156
@sujitbehera156 11 ай бұрын
Nice...
@dhamodharanm8191
@dhamodharanm8191 3 жыл бұрын
Thank u sir, am having doubt can u pls clear it, difference between exception filter in global error hanlder
@danielbuchar2178
@danielbuchar2178 5 жыл бұрын
Hello, thank you for great tutorial. Im going throw all your lessons and it is prepared really well. But today Im slightly stucked, because my global exceptions dont catch any throw exception :/ Everything is set according tutorial. But any new throw exception, place anywhere in controllers or models are not caught by ExceptionHandler(env Production) or DeveloperExceptionPage(env Development) and app chrashes with comment undhandled exception. Thanks in advance.
@TommiLipponen
@TommiLipponen 5 жыл бұрын
I have the same. "Exeption User-Unhandled" "System.Exeption: Exeption in Details View" caused by this 'throw new exeption' that we added. ASP NET CORE 3.1.1 and VS 16.4.3
@lifetraveler8008
@lifetraveler8008 4 жыл бұрын
@@TommiLipponen I am having the same issue. Did you find what's wrong?
@TommiLipponen
@TommiLipponen 4 жыл бұрын
​@@lifetraveler8008 Hi, i can't remember exactly what i did, but in my Homecontroller "Details" i have this "throw new Exception("Exeption in Details View"); commented out. This way it works, when i uncomment it, doesn't work anymore. Now i see that there is a typo in word "Exeption" in my code too.
@lifetraveler8008
@lifetraveler8008 4 жыл бұрын
@@TommiLipponen Thank you
@AshutoshKumar-kt1dd
@AshutoshKumar-kt1dd 5 жыл бұрын
Great
@kerimbalayev6168
@kerimbalayev6168 5 жыл бұрын
Dear Kudvenkat Thank you for amazing series. I learn a lot from you. But I need advice. I have watched your c# and adonet videos and also other courses as well and also angular.. I wanna learn backend now asp net core. But without knpwing aspnet fundamental is it possible to directly dive into your aspnet core courses and learn? And also would it be easy to pass from your core courses to aspnet series if needed later? Thanks a lot
@Csharp-video-tutorialsBlogspot
@Csharp-video-tutorialsBlogspot 5 жыл бұрын
Hello Kerim - Yes, you can start with ASP .NET Core without having to learn asp .net first. We have covered everything you need to start with this course straight away. Hope this answers your question.
@ymtan
@ymtan 5 жыл бұрын
Hello Venkat, could you kindly please reply my question which I have posted as a comment in Part 53 - File upload in asp net core mvc ???
@gkmishra2009
@gkmishra2009 5 жыл бұрын
Give video on microservices?
@shahabjalili
@shahabjalili 5 жыл бұрын
Hi Kudvenkat, Thanks for amazing tutorial :) I have a strange problem. when I change environment variable to Production, application do not use any layout we have created through the project. web browser shows buttons, links, pics any where it wants with different sizes. it seems it does not use bootstrap at all. would you help me in this. Thanks
@nithinreddykotta9680
@nithinreddykotta9680 4 жыл бұрын
I'm facing the same issue did you resolve it ??
@shahabjalili
@shahabjalili 4 жыл бұрын
@@nithinreddykotta9680 I'm not quite sure ho I fixed that, it was while ago, but I think it was something in the app.jason file, there is a field needs to be changed to development
@sahiltiwari3518
@sahiltiwari3518 3 жыл бұрын
In a layout file he advise to involve all the bootstrap configuration by your own for environment other than development ...please include the bootstrap js and jQuery file reference for production and it will work
@connerm8443
@connerm8443 5 жыл бұрын
Middleware doesn't seem to be catching. Page is stuck on loading and the program just exits.
@Csharp-video-tutorialsBlogspot
@Csharp-video-tutorialsBlogspot 5 жыл бұрын
Hello Conner - That's a bit unusual. Can you place a break point, debug and see what's causing this weird behaviour. Would love to hear back from you to understand what's causing this unusual execution.
@connerm8443
@connerm8443 5 жыл бұрын
​@@Csharp-video-tutorialsBlogspot​ Hello - It was weird a one. I launched it via command line using "dotnet run" and the exception page was working. But when I try using the IIS Express Profile it didn't seem to work.
@borismartinovic2074
@borismartinovic2074 4 жыл бұрын
I'm stuck with the same problem. After it crashes I just click 'Continue' and both Developer Exception Page and Error View show up depending on the ASPNETCORE_ENVIRONMENT value of course. If you found a solution to this problem, please can you post it here in the comments?
@AjayKumar-dz9xf
@AjayKumar-dz9xf 4 жыл бұрын
I'm Stuck on the same problem.
@AjayKumar-dz9xf
@AjayKumar-dz9xf 4 жыл бұрын
In my case the rezor View file(.cshtml) was not under correct folder. Move or add view under Error view folder.
@Ruhgtfo
@Ruhgtfo 5 жыл бұрын
throw new Exception("Error in Details View"); Exception User Handled ???
@Ruhgtfo
@Ruhgtfo 4 жыл бұрын
@@avanipatel1008 good question I been forgotten :/ hihi
@shahidwani6445
@shahidwani6445 5 жыл бұрын
Thank you, Sir
@hanumansree5
@hanumansree5 5 жыл бұрын
Hi...Is there any github repository for this project ,thanks @kudvenkat
@javaguitarist
@javaguitarist 4 жыл бұрын
I think only this form is available under the links: Text version of the video csharp-video-tutorials.blogspot.com/2019/05/global-exception-handling-in-aspnet.html
@mohamedmustafa9786
@mohamedmustafa9786 Жыл бұрын
@kudvenkat You are the best teacher in the world. No one can replace you. Please keep on sharing these type of series. Thanks for all you are doing for whole Software Development community and developers.
Logging in ASP NET Core
9:28
kudvenkat
Рет қаралды 149 М.
Jaidarman TOP / Жоғары лига-2023 / Жекпе-жек 1-ТУР / 1-топ
1:30:54
Beginner's Guide to Exception Handling in C#
29:46
Nick Proud
Рет қаралды 4,9 М.
ASP NET Core dependency injection tutorial
9:28
kudvenkat
Рет қаралды 435 М.
Centralised 404 error handling in ASP NET Core
9:44
kudvenkat
Рет қаралды 79 М.
Brutally honest advice for new .NET Web Developers
7:19
Ed Andersen
Рет қаралды 313 М.
Manage user claims in asp net core
17:27
kudvenkat
Рет қаралды 66 М.
Elegant Global Error Handling Using Middleware In ASP.NET Core
13:58
Milan Jovanović
Рет қаралды 92 М.
Repository pattern in asp net core
14:50
kudvenkat
Рет қаралды 310 М.