ASP.NET Application intermittently fails to start

Ask a Question related to ASP.NET Security, Design and Development.

  1. #1

    Default ASP.NET Application intermittently fails to start

    We have deployed an ASP.NET application on 20 servers in different locations,
    and it is used daily by about 300 users around the country.

    Every couple of weeks at one location or another, users cannot get into the
    application. The Default.htm redirection page displays, but then, instead of
    entering our ASP.NET main page, the unhandled exception message below is
    displayed. Sometimes if the users wait and try again they can get in. The
    most recent time this occured, three users could not get in, and waiting and
    trying again didn't help. We rebooted the server and all was well again.

    The exception message seems to indicate that there is a problem with
    authentication, and this occurs outside of any code we have written. We are
    using integrated Windows authentication.

    Could this be a Kerberos issue or some kind of Active Directory network
    issue? How would we go about finding and fixing the problem?

    The application runs on Windows 2003 servers using IIS in IIS5 mode. The
    clients typically use Windows 2000.
    howard39@nospam.nospam Guest

  2. Similar Questions and Discussions

    1. #40446 [NEW]: php.exe fails to start
      From: a at b dot c dot de Operating system: Windows XP SP2 PHP version: 5.2.1 PHP Bug Type: Reproducible crash Bug...
    2. #40446 [Opn->Bgs]: php.exe fails to start
      ID: 40446 Updated by: tony2001@php.net Reported By: a at b dot c dot de -Status: Open +Status: Bogus...
    3. #40446 [Opn]: php.exe fails to start
      ID: 40446 User updated by: a at b dot c dot de Reported By: a at b dot c dot de Status: Open Bug Type: ...
    4. Coldfusion M7 fails to start
      Ensure that you're not running out of disk space on the system. We have seen cases where that has caused this problem. Try to keep a backup of the...
    5. photoshop fails to start up
      I am running photoshop 7.0 on windows xp with 512mb of ram, pentium 4 1.6, 18.6 gb hard drive with 3 gb's free. It was working fine yesterday however...
  3. #2

    Default RE: ASP.NET Application intermittently fails to start

    Here is the exception text:

    Server Error in '/XXXXXXXXXX' Application.
    --------------------------------------------------------------------------------

    The remote procedure call failed.
    Description: An unhandled exception occurred during the execution of the
    current web request. Please review the stack trace for more information about
    the error and where it originated in the code.

    Exception Details: System.ApplicationException: The remote procedure call
    failed.

    Source Error:

    An unhandled exception was generated during the execution of the current web
    request. Information regarding the origin and location of the exception can
    be identified using the exception stack trace below.

    Stack Trace:

    [ApplicationException: The remote procedure call failed.
    ]
    System.Security.Principal.WindowsIdentity._Resolve Identity(IntPtr
    userToken) +0
    System.Security.Principal.WindowsIdentity.get_Name () +71
    System.Web.Configuration.AuthorizationConfigRule.I sUserAllowed(IPrincipal
    user, String verb) +106
    System.Web.Configuration.AuthorizationConfig.IsUse rAllowed(IPrincipal
    user, String verb) +81
    System.Web.Security.UrlAuthorizationModule.OnEnter (Object source,
    EventArgs eventArgs) +181
    System.Web.SyncEventExecutionStep.System.Web.HttpA pplication+IExecutionStep.Execute() +60
    System.Web.HttpApplication.ExecuteStep(IExecutionS tep step, Boolean&
    completedSynchronously) +87

    --------------------------------------------------------------------------------
    Version Information: Microsoft .NET Framework Version:1.1.4322.2032; ASP.NET
    Version:1.1.4322.2032


    "howard39@nospam.nospam" wrote:
    > We have deployed an ASP.NET application on 20 servers in different locations,
    > and it is used daily by about 300 users around the country.
    >
    > Every couple of weeks at one location or another, users cannot get into the
    > application. The Default.htm redirection page displays, but then, instead of
    > entering our ASP.NET main page, the unhandled exception message below is
    > displayed. Sometimes if the users wait and try again they can get in. The
    > most recent time this occured, three users could not get in, and waiting and
    > trying again didn't help. We rebooted the server and all was well again.
    >
    > The exception message seems to indicate that there is a problem with
    > authentication, and this occurs outside of any code we have written. We are
    > using integrated Windows authentication.
    >
    > Could this be a Kerberos issue or some kind of Active Directory network
    > issue? How would we go about finding and fixing the problem?
    >
    > The application runs on Windows 2003 servers using IIS in IIS5 mode. The
    > clients typically use Windows 2000.
    howard39@nospam.nospam Guest

  4. #3

    Default RE: ASP.NET Application intermittently fails to start

    Hello,

    From the error message, it seems the error occur when ASPNET query the AD
    for User indetity information. You may begin trouble shooting here. For
    example, you can catch this execption. When it occurred, you can run some
    customized code on the server to query AD, to see if you can get the user
    info or more detail error message.

    Luke

    [MSFT] Guest

  5. #4

    Default RE: ASP.NET Application intermittently fails to start

    How would I catch this exception? It doesn't seem to be in the Page_Init or
    Page_Load events.

    "[MSFT]" wrote:
    > Hello,
    >
    > From the error message, it seems the error occur when ASPNET query the AD
    > for User indetity information. You may begin trouble shooting here. For
    > example, you can catch this execption. When it occurred, you can run some
    > customized code on the server to query AD, to see if you can get the user
    > info or more detail error message.
    >
    > Luke
    >
    >
    howard39@nospam.nospam Guest

  6. #5

    Default RE: ASP.NET Application intermittently fails to start

    Also, what kind of more detailed information would I look for? We already
    know the user name. The exception is being thrown in Microsoft's code
    (System.Security.Principal.WindowsIdentity._Resolv eIdentity) -- I don't know
    how to debug it.

    "howard39@nospam.nospam" wrote:
    > How would I catch this exception? It doesn't seem to be in the Page_Init or
    > Page_Load events.
    >
    > "[MSFT]" wrote:
    >
    > > Hello,
    > >
    > > From the error message, it seems the error occur when ASPNET query the AD
    > > for User indetity information. You may begin trouble shooting here. For
    > > example, you can catch this execption. When it occurred, you can run some
    > > customized code on the server to query AD, to see if you can get the user
    > > info or more detail error message.
    > >
    > > Luke
    > >
    > >
    howard39@nospam.nospam Guest

  7. #6

    Default Re: ASP.NET Application intermittently fails to start

    I've seen those ApplicationExceptions throw by some of the deep internals of
    the WindowsIdentity class (the part that is actually written in C++ that you
    can't see with Reflector) and they always seem to be related to issues with
    network connectivity to the domain controller. I have no idea why they are
    bubbled up as ApplicationExceptions, but that seems to be what happens.

    Are you sure you aren't having network connectivity issues? Is Kerberos
    traffic (port 88 TCP AND UDP) getting to all the DCs in the server's site?

    The good news (or bad news) is that this isn't your code's fault.

    Joe K.

    <howard39@nospam.nospam> wrote in message
    news:BF88A1C9-BD39-4CFE-9C71-86FAFFB57924@microsoft.com...
    > Also, what kind of more detailed information would I look for? We already
    > know the user name. The exception is being thrown in Microsoft's code
    > (System.Security.Principal.WindowsIdentity._Resolv eIdentity) -- I don't
    > know
    > how to debug it.
    >
    > "howard39@nospam.nospam" wrote:
    >
    >> How would I catch this exception? It doesn't seem to be in the Page_Init
    >> or
    >> Page_Load events.
    >>
    >> "[MSFT]" wrote:
    >>
    >> > Hello,
    >> >
    >> > From the error message, it seems the error occur when ASPNET query the
    >> > AD
    >> > for User indetity information. You may begin trouble shooting here. For
    >> > example, you can catch this execption. When it occurred, you can run
    >> > some
    >> > customized code on the server to query AD, to see if you can get the
    >> > user
    >> > info or more detail error message.
    >> >
    >> > Luke
    >> >
    >> >

    Joe Kaplan \(MVP - ADSI\) Guest

  8. #7

    Default RE: ASP.NET Application intermittently fails to start

    To trace such an security exception, you can use Custom Errors:

    [url]http://support.microsoft.com/default.aspx?scid=KB;EN-US;Q815166[/url]

    After find the exception, you may run some code to detect the network or
    query AD. This may return more detail information than you see in ASP.NET.

    Luke

    [MSFT] Guest

  9. #8

    Default Re: ASP.NET Application intermittently fails to start

    Custom errors won't help here as the error is thrown from unmanaged code so
    the stack trace dies at the WindowsIdentity._ResolveIdentity method and the
    error isn't very helpful. I think looking in the event logs for errors
    related to DC connections or checking for Kerberos problems is what will be
    needed here.

    Joe K.

    "[MSFT]" <lukezhan@online.microsoft.com> wrote in message
    news:sSdL3pNOFHA.3784@TK2MSFTNGXA03.phx.gbl...
    > To trace such an security exception, you can use Custom Errors:
    >
    > [url]http://support.microsoft.com/default.aspx?scid=KB;EN-US;Q815166[/url]
    >
    > After find the exception, you may run some code to detect the network or
    > query AD. This may return more detail information than you see in ASP.NET.
    >
    > Luke
    >

    Joe Kaplan \(MVP - ADSI\) Guest

  10. #9

    Default Re: ASP.NET Application intermittently fails to start

    Thanks, next time it happens we'll check the server event logs, and run the
    problem by any networking, DC, and Kerberos experts that we may have here.
    howard39@nospam.nospam Guest

Posting Permissions

  • You may not post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139