I have been having this same problem all night and I never figured it out. I completely re-wrote my HttpModule after authoring a new flow diagram ( http://www.flickr.com/photos/elusivebyte/9172450/ :) ) It was good to clean up the code, and I figured
I had scrubbed the bug out in the process, but then it was still there! I screamed out loud! I'd been pulling my hair out for hours!
To tell the truth I didn't have much hope when I read your fix, but it worked! WHAT does the usage of the QueryString collection have to do with url rewriting? I had a check for QueryString["path"]. I didn't even care what the value was. I was only checking
for null. Now I used a Regex to see if it's in the raw QueryString and the error went away. I'm not using the ServerVariables though. I'm using HttpContext.Current.Request.Url.Query.
My module handles all requests by adding the wildcard, ".*", to IIS mapped to Asp.Net. From your example, it looks like you were just rewriting aspx pages to other aspx pages. Is that the case? Also, I turned off tracing and my rewriting still works fine.
Thank you so much for posting your fix! I owe you a beer... or ten!
None
0 Points
27 Posts
Re: Url rewriting problem associated with trace tag in web.config
Apr 12, 2005 12:29 AM|ElusiveByte|LINK
I have been having this same problem all night and I never figured it out. I completely re-wrote my HttpModule after authoring a new flow diagram ( http://www.flickr.com/photos/elusivebyte/9172450/ :) ) It was good to clean up the code, and I figured I had scrubbed the bug out in the process, but then it was still there! I screamed out loud! I'd been pulling my hair out for hours!
To tell the truth I didn't have much hope when I read your fix, but it worked! WHAT does the usage of the QueryString collection have to do with url rewriting? I had a check for QueryString["path"]. I didn't even care what the value was. I was only checking for null. Now I used a Regex to see if it's in the raw QueryString and the error went away. I'm not using the ServerVariables though. I'm using HttpContext.Current.Request.Url.Query.
My module handles all requests by adding the wildcard, ".*", to IIS mapped to Asp.Net. From your example, it looks like you were just rewriting aspx pages to other aspx pages. Is that the case? Also, I turned off tracing and my rewriting still works fine.
Thank you so much for posting your fix! I owe you a beer... or ten!
- Todd