You need to add the HTTP handler to your web configurator for gif files:
<system.web> <httpHandlers> <add path="*.gif" verb="GET,HEAD" type="System.Web.StaticFileHandler" validate="true"/> </httpHandlers> </system.web>
This causes .Net to process the file, then you get a .Net error.
Server error in application "/".
Resource is not found. Description: HTTP 404. The resource you are looking for (or its dependencies) may have been deleted, its name changed or temporarily unavailable. Review the following URL and make sure it is spelled correctly.
Requested URL: /test.gif
Version Information: Microsoft.NET Framework Version: 2.0.50727.1433; ASP.NET Version: 2.0.50727.1433
source share