Forms authentication failed for the request. Reason: The ticket supplied has expired.

Discussion in 'ASP .Net' started by Gibble, May 14, 2007.

  1. Gibble

    Gibble Guest

    Hi,

    We have a javascript on a page that calls a .NET web service. Oddly,
    in our web servers event logs the following errors kept repeating
    every minute (that made sense since the web service was on a minute
    timer).

    Event code: 4005
    Event message: Forms authentication failed for the request. Reason:
    The ticket supplied has expired.
    Event time: 5/11/2007 11:38:14 AM
    Event time (UTC): 5/11/2007 4:38:14 PM
    Event ID: 8d4cef6673914d6db1c5cc3c641cd67e
    Event sequence: 18473
    Event occurrence: 112
    Event detail code: 50202

    Application information:
    Application domain: /LM/W3SVC/692275466/Root-1-128233734034204773
    Trust level: Full
    Application Virtual Path: /

    Process information:
    Process ID: 7716
    Process name: w3wp.exe

    Request information:
    Request URL: http://domain:port/WebServices/service.asmx/service?userId=&lastMsg=671498
    Request path: /WebServices/service.asmx/service
    User host address: 82.81.177.24
    User:
    Is authenticated: False
    Authentication Type:


    When I try to recreate this error I can't, everything seems fine. I
    looked at the IIS logs, and the IP that caused it hit a couple pages,
    then this web service every minute. So the user was idle.

    The part that's baffling me is why this error happened, and ONLY for
    one user...?

    Any ideas would be appreciated.

    Thanks.
    Chad
    Gibble, May 14, 2007
    #1
    1. Advertising

  2. Gibble

    Gibble Guest

    This is very odd. Several IPs have been generating this error in our
    event logs. But oddly, not enough that it indicates an error in our
    code. Only a person or two will be generating this error at a time,
    meanwhile 100s are logged into the site at any given time (plus
    anonymous users).

    I'm pulling out my hair here...

    -C

    On May 14, 10:38 am, Gibble <> wrote:
    > Hi,
    >
    > We have a javascript on a page that calls a .NET web service. Oddly,
    > in our web servers event logs the following errors kept repeating
    > every minute (that made sense since the web service was on a minute
    > timer).
    >
    > Event code: 4005
    > Event message: Forms authentication failed for the request. Reason:
    > The ticket supplied has expired.
    > Event time: 5/11/2007 11:38:14 AM
    > Event time (UTC): 5/11/2007 4:38:14 PM
    > Event ID: 8d4cef6673914d6db1c5cc3c641cd67e
    > Event sequence: 18473
    > Event occurrence: 112
    > Event detail code: 50202
    >
    > Application information:
    > Application domain: /LM/W3SVC/692275466/Root-1-128233734034204773
    > Trust level: Full
    > Application Virtual Path: /
    >
    > Process information:
    > Process ID: 7716
    > Process name: w3wp.exe
    >
    > Request information:
    > Request URL:http://domain:port/WebServices/service.asmx/service?userId=&lastMsg=6...
    > Request path: /WebServices/service.asmx/service
    > User host address: 82.81.177.24
    > User:
    > Is authenticated: False
    > Authentication Type:
    >
    > When I try to recreate this error I can't, everything seems fine. I
    > looked at the IIS logs, and the IP that caused it hit a couple pages,
    > then this web service every minute. So the user was idle.
    >
    > The part that's baffling me is why this error happened, and ONLY for
    > one user...?
    >
    > Any ideas would be appreciated.
    >
    > Thanks.
    > Chad
    Gibble, May 14, 2007
    #2
    1. Advertising

  3. Gibble

    Gibble Guest

    Out of curiousity...why would this end up in the windows event log?

    On May 14, 12:22 pm, Gibble <> wrote:
    > This is very odd. Several IPs have been generating this error in our
    > event logs. But oddly, not enough that it indicates an error in our
    > code. Only a person or two will be generating this error at a time,
    > meanwhile 100s are logged into the site at any given time (plus
    > anonymous users).
    >
    > I'm pulling out my hair here...
    >
    > -C
    >
    > On May 14, 10:38 am, Gibble <> wrote:
    >
    > > Hi,

    >
    > > We have a javascript on a page that calls a .NET web service. Oddly,
    > > in our web servers event logs the following errors kept repeating
    > > every minute (that made sense since the web service was on a minute
    > > timer).

    >
    > > Event code: 4005
    > > Event message: Forms authentication failed for the request. Reason:
    > > The ticket supplied has expired.
    > > Event time: 5/11/2007 11:38:14 AM
    > > Event time (UTC): 5/11/2007 4:38:14 PM
    > > Event ID: 8d4cef6673914d6db1c5cc3c641cd67e
    > > Event sequence: 18473
    > > Event occurrence: 112
    > > Event detail code: 50202

    >
    > > Application information:
    > > Application domain: /LM/W3SVC/692275466/Root-1-128233734034204773
    > > Trust level: Full
    > > Application Virtual Path: /

    >
    > > Process information:
    > > Process ID: 7716
    > > Process name: w3wp.exe

    >
    > > Request information:
    > > Request URL:http://domain:port/WebServices/service.asmx/service?userId=&lastMsg=6...
    > > Request path: /WebServices/service.asmx/service
    > > User host address: 82.81.177.24
    > > User:
    > > Is authenticated: False
    > > Authentication Type:

    >
    > > When I try to recreate this error I can't, everything seems fine. I
    > > looked at the IIS logs, and the IP that caused it hit a couple pages,
    > > then this web service every minute. So the user was idle.

    >
    > > The part that's baffling me is why this error happened, and ONLY for
    > > one user...?

    >
    > > Any ideas would be appreciated.

    >
    > > Thanks.
    > > Chad
    Gibble, May 14, 2007
    #3
  4. Re: Forms authentication failed for the request. Reason: The ticke

    Hi, how are you trying to reproduce the error? It's not clear whether you
    meant the user is idle or not. One reason for the error could be the user was
    idle for a long time in which case it timeout and logged it as an error. If
    this is so, then no need to worry about it.

    HTH
    =?Utf-8?B?VmlqYXk=?=, May 14, 2007
    #4
  5. Gibble

    Gibble Guest

    Re: Forms authentication failed for the request. Reason: The ticke

    I can't recreate it...as I don't yet know what's causing it exactly.

    I've done some research and some people seem to think it's because the
    session timeout is longer than the forms authentication cookie
    timeout, but I'm not using sessions:

    <authentication mode="Forms">
    <forms loginUrl="login.aspx" name=".FOO" protection="All"
    path="/" timeout="120" cookieless="UseCookies" />
    </authentication>

    <sessionState mode="Off"/>

    So I don't know what's causing this...?


    On May 14, 3:42 pm, Vijay <> wrote:
    > Hi, how are you trying to reproduce the error? It's not clear whether you
    > meant the user is idle or not. One reason for the error could be the user was
    > idle for a long time in which case it timeout and logged it as an error. If
    > this is so, then no need to worry about it.
    >
    > HTH
    Gibble, May 14, 2007
    #5
  6. Gibble

    Gibble Guest

    Re: Forms authentication failed for the request. Reason: The ticke

    Any ideas?

    On May 14, 4:41 pm, Gibble <> wrote:
    > I can't recreate it...as I don't yet know what's causing it exactly.
    >
    > I've done some research and some people seem to think it's because the
    > session timeout is longer than the forms authentication cookie
    > timeout, but I'm not using sessions:
    >
    > <authentication mode="Forms">
    > <forms loginUrl="login.aspx" name=".FOO" protection="All"
    > path="/" timeout="120" cookieless="UseCookies" />
    > </authentication>
    >
    > <sessionState mode="Off"/>
    >
    > So I don't know what's causing this...?
    >
    > On May 14, 3:42 pm, Vijay <> wrote:
    >
    > > Hi, how are you trying to reproduce the error? It's not clear whether you
    > > meant the user is idle or not. One reason for the error could be the user was
    > > idle for a long time in which case it timeout and logged it as an error. If
    > > this is so, then no need to worry about it.

    >
    > > HTH
    Gibble, May 15, 2007
    #6
  7. Re: Forms authentication failed for the request. Reason: The ticke

    try using slidingExpiration="true" in the forms tag & also make sure forms
    timeout is same as session timeout.
    =?Utf-8?B?VmlqYXk=?=, May 15, 2007
    #7
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Les Caudle
    Replies:
    7
    Views:
    1,133
    Walter Wang [MSFT]
    Jul 31, 2007
  2. Replies:
    5
    Views:
    1,175
    Steven Cheng [MSFT]
    Aug 29, 2008
  3. Lauchlan M
    Replies:
    0
    Views:
    217
    Lauchlan M
    Oct 1, 2003
  4. jfer
    Replies:
    3
    Views:
    545
    Dominick Baier [DevelopMentor]
    Sep 16, 2005
  5. Eric
    Replies:
    2
    Views:
    467
Loading...

Share This Page