Skip to content

Magenaut

  • Home
  • Topics
    • Notes
    • Tutorial
    • Bug fixing
    • Extension
    • Server
  • Q&A
  • Privacy Policy
  • About

custom-error-pages

ASP.NET custom error page – Server.GetLastError() is null

September 3, 2022 by Magenaut

I have a custom error page set up for my application:

Categories ASP.NET, Q&A Tags asp.net, custom-error-pages, exception, web-applications Leave a comment

Routing for custom ASP.NET MVC 404 Error page

September 3, 2022 by Magenaut

I am trying to make a custom HTTP 404 error page when someone types in a URL
that doesn’t invoke a valid action or controller in ASP.NET MVC, instead of it displaying the generic “Resource Not Found” ASP.NET error.

Categories ASP.NET, Q&A Tags asp.net, asp.net-mvc, asp.net-mvc-routing, custom-error-pages, http-status-code-404 Leave a comment

How to add a default error page using httpErrors

August 30, 2022 by Magenaut

i have successfully added a custom 404 page. what I want to do is to create another custom error page that is displayed when there is any error other than 404. e.g. 500, 403 etc.

Categories ASP.NET, Q&A Tags asp.net, custom-error-pages, iis, visual-studio Leave a comment

Custom error page configured in IIS for code 400 (bad request) is ignored

August 26, 2022 by Magenaut

For my website I configured some custom error pages.
If I generate a 404, the redirect works fine.
When hitting a 400, the “bad request” text shows up instead of the configured URl.

Categories ASP.NET, Q&A Tags asp.net, asp.net-mvc, custom-error-pages, iis Leave a comment

Asp.net – Web.Config – Custom Errors

August 23, 2022 by Magenaut

How can I set 404 and other error pages using web.config? I have tried adding following block in web.config.

Categories ASP.NET, Q&A Tags asp.net, custom-error-pages Leave a comment
  1. michealSmith07 on Is there a way to dynamically refresh the less command?August 21, 2022

    That is a very nice post. I like this post.

  2. anonymous on Fix libwacom9 dependency issue when upgrade DebianJune 27, 2022

    saved my day!! Thanks for the help…

  3. sreedhar on Fix libwacom9 dependency issue when upgrade DebianMay 10, 2022

    Thanks its working

  4. saintnick on Fix libwacom9 dependency issue when upgrade DebianMay 10, 2022

    remove libwacom2 worked for me as well

  5. ranafoul on Fix libwacom9 dependency issue when upgrade DebianApril 22, 2022

    apt remove libwacom2 helped on kali 2022.01. gr8

.net ajax asp.net asp.net-core asp.net-mvc asp.net-mvc-3 asp.net-mvc-4 asp.net-web-api bash c# command-line css custom-post-types custom-taxonomy dataframe dictionary django entity-framework functions gridview html iis javascript jquery json linux list matplotlib numpy pandas php plugin-development plugins posts python python-2.7 python-3.x security shell shell-script sql string vb.net webforms wp-query

© 2026 Magenaut • Built with GeneratePress