Forms authentication failed for the request



I have a web application that was developed for .NET 1.1. It uses forms
authentication and a custom handler for jpg and gif files so I have the
approprate extension mappings. I have some directories that are excluded from
the handler by the web config file located in the directory.

Web.config in root directory

<httpHandlers>
<add verb="*" path="*.jpg" type="blah, blah" />
<add verb="*" path="*.gif" type="blah, blah" />
</httpHandlers>

Web.config in excluded directory

<httpHandlers>
<remove verb="*" path="*.jpg" />
<remove verb="*" path="*.gif" />
</httpHandlers>

All works quite well.

I ported it to .NET 2.0 running on a Windows 2000 server. Again all works
well.

I moved it to my internet provider's server (Windows 2003) and the handler
seems to work well, but images in the excluded directory do not display. I
log entry into the handler and it is not being entered for the images that
will not display.

The event log on the server shows this error.

Event code: 4005
Event message: Forms authentication failed for the request. Reason: The
ticket supplied has expired.
Event time: 08/03/2006 12:34:40 PM
Event time (UTC): 08/03/2006 5:34:40 PM
Event ID: 19b1d9d2438841ccbe2fd732dec950b8
Event sequence: 2
Event occurrence: 1
Event detail code: 50202

Application information:
Application domain: /LM/W3SVC/4859720/Root-1-127863128795797591
Trust level: Full
Application Virtual Path: /
Application Path: c:\web\www.memoriestoscrap.ca\
Machine name: WEB-02

Process information:
Process ID: 3564
Process name: w3wp.exe
Account name: NT AUTHORITY\NETWORK SERVICE

Request information:
Request URL:

http://www.memoriestoscrap.ca/Sites/MemoriesToScrap/Themes/Tracy/Images/cdnflag50x25.jpg

Request path:
/Sites/MemoriesToScrap/Themes/Tracy/Images/cdnflag50x25.jpg
User host address: 64.235.195.218
User:
Is authenticated: False
Authentication Type:
Thread account name: NT AUTHORITY\NETWORK SERVICE

Name to authenticate:

Custom event details:

For more information, see Help and Support Center at
http://go.microsoft.com/fwlink/events.asp.


Of course there is no additional information if I follow help and support
center link.

Any ideas would be helpful.

--
Bill
.



Relevant Pages

  • Forms authentication failed for the request
    ... authentication and a custom handler for jpg and gif files so I have the ... the handler by the web config file located in the directory. ... Forms authentication failed for the request. ...
    (microsoft.public.dotnet.framework)
  • RE: How to continue request execution in a HttpHandler
    ... to the *.aspx File you want to be compiled. ... > against some Authentication method and then allows him to continue his ... > as internal and can't be instantiated from my handler. ... > PageHandler and invoke it's ProcessRequest method from my Handler (as I ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: Forms authentication doesnt work for downloads
    ... Forms authentication is handled by the framework - thus you likely need to ... pass that type of file through the asp.net handler by mapping it in IIS... ... this doesn't work for downloads. ... I expected that people would also be routed to the login ...
    (microsoft.public.dotnet.framework.aspnet.security)
  • Re: Custom HttpHandler and Server.Transfer
    ... I don't see my custom handler getting invoked on the ... RewritePath call, but I have not had the chance to digg too deeply ... >Hi Bryan, ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: Custom HttpHandler and Server.Transfer
    ... for pages because pages have handler per URL. ... Steven Cheng ... I don't see my custom handler getting invoked on the ... | RewritePath call, but I have not had the chance to digg too deeply ...
    (microsoft.public.dotnet.framework.aspnet)