Ask a Question related to ASP.NET Security, Design and Development.
-
howard39@nospam.nospam #1
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
-
#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... -
#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... -
#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: ... -
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... -
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... -
howard39@nospam.nospam #2
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
-
[MSFT] #3
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
-
howard39@nospam.nospam #4
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
-
howard39@nospam.nospam #5
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
-
Joe Kaplan \(MVP - ADSI\) #6
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
-
[MSFT] #7
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
-
Joe Kaplan \(MVP - ADSI\) #8
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
-
howard39@nospam.nospam #9
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



Reply With Quote

