Using ELMAH and URLRewritingNet Together

Posted by Chris Laythorpe on Stack Overflow See other posts from Stack Overflow or by Chris Laythorpe
Published on 2010-02-24T17:30:57Z Indexed on 2010/03/27 5:03 UTC
Read the original article Hit count: 471

Filed under:
|
|
|
|

I have ELMAH setup on my production server and it has done a fantastic job of letting me know about any niggles - as well as any creative SQL injection!

I've decided to introduce URl Rewriting and went for http://www.urlrewriting.net/ in the end. It was nice and easy to setup and it's doing exactly what I want with the customer-facing site.

The problem is ELMAH. Because I've set the urlrewritingnet node in my config like so:

<urlrewritingnet
  rewriteOnlyVirtualUrls="true"
  contextItemsPrefix="QueryString"
  defaultPage = "default.aspx"
  defaultProvider="RegEx"
  xmlns="http://www.urlrewriting.net/schemas/config/2006/07" >

...ELMAH likes to do this to it's axd links;

http://www.mydomain.com/elmah.axd/stylesheet/default.aspx

Does anyone have any idea how to either a) stop the re-writer following the .axd; or b) add rules to the re-writer to get ELMAH to work

Any ideas? I'm happy to hack about with the httpHandlers...

© Stack Overflow or respective owner

Related posts about elmah

Related posts about ASP.NET