473,327 Members | 2,094 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,327 software developers and data experts.

Forms authentication error 4005

We have an application that's running ok on most of our customers machines,
but on one of them we get an error. They're running on windows 2003 server
with iis6. In the web.config, the authentication is set to forms, and the
form tag contains: timeout="25" slidingExpiration="true"

Event Type: Information
Event Source: ASP.NET 2.0.50727.0
Event Category: Web Event
Event code: 4005
Event message: Forms authentication failed for the request. Reason: The
ticket supplied has expired. Event detail code: 50202

Any ideas ?
--
Adrian Parker
Ingenuity At Work Ltd
Dec 15 '06 #1
7 26271
Is this a web farm or are you using a web garden? If so, is the machinekey
set in the web.config so it matches the others systems? If not, then it will
be using the wrong key to decrypt the authentication ticket.

Also, check to see if the application is recycling. It may be creating new
sessions and or messing up the ticket if it's recycling too often. I had one
instance similar to this where the application pool was recycling every
minute because the resources available to ASP.Net were set too low and it
was always trying to recycle to release them.

--

Hope this helps,
Mark Fitzpatrick
Former Microsoft FrontPage MVP 199?-2006

"Adrian Parker" <ap******@nospam.nospamwrote in message
news:ei**************@TK2MSFTNGP02.phx.gbl...
We have an application that's running ok on most of our customers
machines,
but on one of them we get an error. They're running on windows 2003
server
with iis6. In the web.config, the authentication is set to forms, and
the
form tag contains: timeout="25" slidingExpiration="true"

Event Type: Information
Event Source: ASP.NET 2.0.50727.0
Event Category: Web Event
Event code: 4005
Event message: Forms authentication failed for the request. Reason: The
ticket supplied has expired. Event detail code: 50202

Any ideas ?
--
Adrian Parker
Ingenuity At Work Ltd


Dec 15 '06 #2
It is just a plain standard single machine website.

How do you change the resources available to a asp.net ?

"Mark Fitzpatrick" <ma******@fitzme.comwrote in message
news:ei**************@TK2MSFTNGP04.phx.gbl...
| Is this a web farm or are you using a web garden? If so, is the machinekey
| set in the web.config so it matches the others systems? If not, then it
will
| be using the wrong key to decrypt the authentication ticket.
|
| Also, check to see if the application is recycling. It may be creating new
| sessions and or messing up the ticket if it's recycling too often. I had
one
| instance similar to this where the application pool was recycling every
| minute because the resources available to ASP.Net were set too low and it
| was always trying to recycle to release them.
|
|
|
| --
|
| Hope this helps,
| Mark Fitzpatrick
| Former Microsoft FrontPage MVP 199?-2006
|
|
|
| "Adrian Parker" <ap******@nospam.nospamwrote in message
| news:ei**************@TK2MSFTNGP02.phx.gbl...
| We have an application that's running ok on most of our customers
| machines,
| but on one of them we get an error. They're running on windows 2003
| server
| with iis6. In the web.config, the authentication is set to forms, and
| the
| form tag contains: timeout="25" slidingExpiration="true"
| >
| Event Type: Information
| Event Source: ASP.NET 2.0.50727.0
| Event Category: Web Event
| Event code: 4005
| Event message: Forms authentication failed for the request. Reason: The
| ticket supplied has expired. Event detail code: 50202
| >
| Any ideas ?
| --
| Adrian Parker
| Ingenuity At Work Ltd
| >
| >
|
|
Dec 15 '06 #3
All I can find is that on the app pool recycle page:
Recycle worker process (in minutes) : 1740

"Mark Fitzpatrick" <ma******@fitzme.comwrote in message
news:ei**************@TK2MSFTNGP04.phx.gbl...
| Is this a web farm or are you using a web garden? If so, is the machinekey
| set in the web.config so it matches the others systems? If not, then it
will
| be using the wrong key to decrypt the authentication ticket.
|
| Also, check to see if the application is recycling. It may be creating new
| sessions and or messing up the ticket if it's recycling too often. I had
one
| instance similar to this where the application pool was recycling every
| minute because the resources available to ASP.Net were set too low and it
| was always trying to recycle to release them.
|
|
|
| --
|
| Hope this helps,
| Mark Fitzpatrick
| Former Microsoft FrontPage MVP 199?-2006
|
|
|
| "Adrian Parker" <ap******@nospam.nospamwrote in message
| news:ei**************@TK2MSFTNGP02.phx.gbl...
| We have an application that's running ok on most of our customers
| machines,
| but on one of them we get an error. They're running on windows 2003
| server
| with iis6. In the web.config, the authentication is set to forms, and
| the
| form tag contains: timeout="25" slidingExpiration="true"
| >
| Event Type: Information
| Event Source: ASP.NET 2.0.50727.0
| Event Category: Web Event
| Event code: 4005
| Event message: Forms authentication failed for the request. Reason: The
| ticket supplied has expired. Event detail code: 50202
| >
| Any ideas ?
| --
| Adrian Parker
| Ingenuity At Work Ltd
| >
| >
|
|
Dec 15 '06 #4
Does this happen after 25 minutes have elapsed ( the timeout you set ) ?
Or, does it happen before the timeout has occurred ?

Also, note that, to prevent compromised performance, and to avoid multiple browser
warnings for users who have cookie warnings turned on, the cookie should be updated
when more than half of the specified timeout has elapsed.

This might cause a loss of precision...or that feature might be non-functional.


Juan T. Llibre, asp.net MVP
asp.net faq : http://asp.net.do/faq/
foros de asp.net, en español : http://asp.net.do/foros/
===================================
"Adrian Parker" <ap******@nospam.nospamwrote in message
news:ei**************@TK2MSFTNGP02.phx.gbl...
We have an application that's running ok on most of our customers machines,
but on one of them we get an error. They're running on windows 2003 server
with iis6. In the web.config, the authentication is set to forms, and the
form tag contains: timeout="25" slidingExpiration="true"

Event Type: Information
Event Source: ASP.NET 2.0.50727.0
Event Category: Web Event
Event code: 4005
Event message: Forms authentication failed for the request. Reason: The
ticket supplied has expired. Event detail code: 50202

Any ideas ?
--
Adrian Parker
Ingenuity At Work Ltd

Dec 15 '06 #5
Ah, would this be caused by the session timeout being longer than the cookie
timeout ?

"Juan T. Llibre" <no***********@nowhere.comwrote in message
news:eY*************@TK2MSFTNGP06.phx.gbl...
| Does this happen after 25 minutes have elapsed ( the timeout you set ) ?
| Or, does it happen before the timeout has occurred ?
|
| Also, note that, to prevent compromised performance, and to avoid multiple
browser
| warnings for users who have cookie warnings turned on, the cookie should
be updated
| when more than half of the specified timeout has elapsed.
|
| This might cause a loss of precision...or that feature might be
non-functional.
|
|
|
|
| Juan T. Llibre, asp.net MVP
| asp.net faq : http://asp.net.do/faq/
| foros de asp.net, en español : http://asp.net.do/foros/
| ===================================
| "Adrian Parker" <ap******@nospam.nospamwrote in message
| news:ei**************@TK2MSFTNGP02.phx.gbl...
| We have an application that's running ok on most of our customers
machines,
| but on one of them we get an error. They're running on windows 2003
server
| with iis6. In the web.config, the authentication is set to forms, and
the
| form tag contains: timeout="25" slidingExpiration="true"
| >
| Event Type: Information
| Event Source: ASP.NET 2.0.50727.0
| Event Category: Web Event
| Event code: 4005
| Event message: Forms authentication failed for the request. Reason: The
| ticket supplied has expired. Event detail code: 50202
| >
| Any ideas ?
| --
| Adrian Parker
| Ingenuity At Work Ltd
|
|
Dec 15 '06 #6
re:
would this be caused by the session timeout being longer than the cookie timeout ?
Exactly.

Juan T. Llibre, asp.net MVP
asp.net faq : http://asp.net.do/faq/
foros de asp.net, en español : http://asp.net.do/foros/
===================================
"Adrian Parker" <ap******@nospam.nospamwrote in message
news:%2****************@TK2MSFTNGP06.phx.gbl...
Ah, would this be caused by the session timeout being longer than the cookie
timeout ?

"Juan T. Llibre" <no***********@nowhere.comwrote in message
news:eY*************@TK2MSFTNGP06.phx.gbl...
| Does this happen after 25 minutes have elapsed ( the timeout you set ) ?
| Or, does it happen before the timeout has occurred ?
|
| Also, note that, to prevent compromised performance, and to avoid multiple
browser
| warnings for users who have cookie warnings turned on, the cookie should
be updated
| when more than half of the specified timeout has elapsed.
|
| This might cause a loss of precision...or that feature might be
non-functional.
|
|
|
|
| Juan T. Llibre, asp.net MVP
| asp.net faq : http://asp.net.do/faq/
| foros de asp.net, en español : http://asp.net.do/foros/
| ===================================
| "Adrian Parker" <ap******@nospam.nospamwrote in message
| news:ei**************@TK2MSFTNGP02.phx.gbl...
| We have an application that's running ok on most of our customers
machines,
| but on one of them we get an error. They're running on windows 2003
server
| with iis6. In the web.config, the authentication is set to forms, and
the
| form tag contains: timeout="25" slidingExpiration="true"
| >
| Event Type: Information
| Event Source: ASP.NET 2.0.50727.0
| Event Category: Web Event
| Event code: 4005
| Event message: Forms authentication failed for the request. Reason: The
| ticket supplied has expired. Event detail code: 50202
| >
| Any ideas ?
| --
| Adrian Parker
| Ingenuity At Work Ltd
|
|


Dec 15 '06 #7
Hi Adrian,

Since the web application works well on most machines, I don't think the
problem should be related to your ASP.NET application's code logic or
setting. Also, when you perform the test, are you using the same client
machine to access all those webservers that host your web application? If
so, this can ensure that it is not the client machine which may cause the
error behavior.

Also, you can try comparing the difference between the problem server and
those server that host your application well.

BTW, is the error occuring occasionaly or frequently or does it always
occur under a fixed condition? Based on my experience, there does exists
some similar issue that may occured when the application deployed in
webfarm or webgarden mode. As for the "How do you change the resources
available to a asp.net" , this is the setting of your ASP.NET worker
process, and it depend on whether the server is using IIS5 or IIS6. for
IIS5, ASP.NET worker process use the setting in the machine.config
<processModelelement to control its recycle limitation. While for IIS6,
it use application pool model, so those recycle setting is in IIS's
application pool's performance/health setting. Anyway, you can have a look
at this if the error you met does likely be caused by worker process
recycling.

Please feel free to post here if you have any further questions.

Sincerely,

Steven Cheng

Microsoft MSDN Online Support Lead
This posting is provided "AS IS" with no warranties, and confers no rights.

Dec 18 '06 #8

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

12
by: Brett Robichaud | last post by:
Is anyone familiar with this error? I have this running just fine on my local machine but when I pushed it out to our development server I get this error. I have no idea what it is saying. Any...
2
by: Thomas Scheiderich | last post by:
I am trying to set up forms authentication in my IIS pages. I have a folder inside of my root folder I am trying to protect and I am getting an error when a page in the folder is accessed. The...
2
by: Kurt Schroeder | last post by:
this is straight out of asp.nat unleashed chapter 19: the code listed below give the following error: Parser Error Message: It is an error to use a section registered as...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.