Click here to Skip to main content
15,886,806 members
Please Sign up or sign in to vote.
3.00/5 (1 vote)
See more:
HI,
My asp.net application is working fine in my local machine and QA Server(Windows server 2008, IIS7), But it is not working sometimes in DEV server( Windows Server 2008, IIS7.0). I even verified the Forms Authentication in enable for my website in IIS 7.
When I run the application on dev server, it is giving me login page and after clicking 'Sing In' button it is just displaying as "Internet Explorer Cannot display the web page".

My authentication settings in Web.config:
XML
<authentication mode="Forms">
      <forms loginUrl="Login.aspx"
      protection="All"
           timeout="30"
           name=".ASPXAUTH"
           path="/"
           requireSSL="false"
           slidingExpiration="true"
           defaultUrl="SDAuditUI.aspx"
           cookieless="UseDeviceProfile"
           enableCrossAppRedirects="false" />
    </authentication>
    <authorization>
      <deny users ="?" />
      <allow users = "*" />
    </authorization>


Please help me in fixing the issue.
Below is the information from Event Viewer:

Event code: 4005 <br />
Event message: Forms authentication failed for the request. Reason: The ticket supplied has expired. <br />
Event time: 9/7/2011 8:23:19 AM <br />
Event time (UTC): 9/7/2011 2:23:19 PM <br />
Event ID: b5fb4de7d8f345318a0128350166c92f <br />
Event sequence: 2 <br />
Event occurrence: 1 <br />
Event detail code: 50202 <br />
 <br />
Application information: <br />
    Application domain: /LM/W3SVC/2/ROOT/QueryUIApp-1-129598789993721155 <br />
    Trust level: Full <br />
    Application Virtual Path: /QueryUIApp <br />
    Application Path: E:\QueryUI\QueryUIApp\ <br />
    Machine name: DNVDEVSAPINT2 <br />
 <br />
Process information: <br />
    Process ID: 3184 <br />
    Process name: w3wp.exe <br />
    Account name: NT AUTHORITY\NETWORK SERVICE <br />
 <br />
Request information: <br />
    Request URL: http://dnvdevsapint2:83/QueryUIApp/Login.aspx?ReturnUrl=Forms authentication failed for the request. Reason: The ticket supplied has expired.fQueryUIAppForms authentication failed for the request. Reason: The ticket supplied has expired.fSDAuditUI.aspx <br />
    Request path: /QueryUIApp/Login.aspx <br />
    User host address: 172.25.186.16 <br />
    User:  <br />
    Is authenticated: False <br />
    Authentication Type:  <br />
    Thread account name: NT AUTHORITY\NETWORK SERVICE <br />
 <br />
Name to authenticate:  <br />
 <br />
Custom event details:
Posted
Updated 7-Sep-11 5:20am
v2

This could be related to machine config of the DEV server that you are using, the below discussion may provide more insight:

http://stackoverflow.com/questions/2686324/forms-authentication-failed-for-the-request-reason-the-ticket-supplied-has-expi[^]
 
Share this answer
 
I think this has something to do with machine config file on the dev server. Check the w3wp.exe is running as service account and check the processmodel element in machine config. Also make sure so check the Impersonation element in the machine config. Compare these with your QA machine/your machine, probably you will find the issue there itself.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900