Re: Global.asax : BeginRequest Event

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance

From: Scott Allen (scott_at_nospam.OdeToCode.com)
Date: 01/07/05


Date: Fri, 07 Jan 2005 12:44:10 -0800

Pietro:

Yes, you can do this by forcing the request through the ASP.NET runtime.
You'll have to edit the script mappings in IIS for the application, see:

http://support.microsoft.com/kb/815152/EN-US/

You won't need to take the blocking steps mentioned in the bottom of the
article, but the article does do a good job explaining the why and how of
editing the script maps.

--
Scott
http://www.OdeToCode.com/blogs/scott/
> Hello, I'd like to know if the BeginRequest Event in global.asax can
> be raised when i request a image or another file not an aspx page, if
> it can, how i do it?
> 
> Thanks
> Pietro


Relevant Pages

  • Re: handling 404 errors on non-ASPX paths
    ... When a request comes into IIS, it determines how to handle that request ... based upon, among other things, script mappings. ... handled by aspnet_isapi.dll (the ISAPI DLL for ASP.NET which is loaded on ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: URL Rewriting
    ... One way is to edit the script mappings of IIS to make sure every ... request comes into the ASP.NET runtime. ... >Do I have to put dummy files in every directory on my site? ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: Request Delete after IIS Lockdown
    ... Edit urlscan.ini, enabled the delete verb if you need it. ... I need to do delete requests with IIS 5.0, but after patch my server with IIS Lockdown i can't. ... And for me in general, how work a delete request, which method, which files or process IIS use to do this. ...
    (microsoft.public.inetserver.iis.security)
  • Re: Page Cannot Be Displayed Errors
    ... In WFetch, for Advanced Request, change to "Add Headers" and write: ... > directly on the web server, ... >>> Where can I get the IIS 6.0 Resource Kit, and how do I use WFetch? ...
    (microsoft.public.inetserver.iis)
  • Re: SSL broken after Windows 2003 upgrade
    ... The svchost.exe you reference is "IIS". ... routes them to the appropriate w3wp.exe based on configuration from WAS ... WFetch can make both a normal SSL request as well as a Client-Certificate ...
    (microsoft.public.inetserver.iis)