[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now

  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 527
  • Last Modified:

Elmah and custom error pages in asp.net 4.0

I just installed Elmah error logging module and have it working... sort of. It works for .net file extensions and it brings up the proper custom error page and writes successfully to the database with the error. However, try to show page that doesn't go through the .net 4.0 framework (like a pdf, xls, etc. file) and I get the generic IIS error page. How can I force all file extensions to go through the .net 4.0 framework?

Thanks for your time
1 Solution
Jesse HouwingScrum Trainer | Microsoft MVP | ALM Ranger | ConsultantCommented:
You need to map all the file extensions to the ASP.NET handler.

Featured Post

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now