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

x
  • 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
0
haloexpertsexchange
Asked:
haloexpertsexchange
1 Solution
 
Jesse HouwingScrum Trainer | Microsoft MVP | ALM Ranger | ConsultantCommented:
You need to map all the file extensions to the ASP.NET handler.
See:
http://learn.iis.net/page.aspx/508/wildcard-script-mapping-and-iis-integrated-pipeline/
0

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