Event ID 1309 ASP.NET 4.0.30319.0 Warning

Will 20 Reputation points
2023-10-03T16:00:54.65+00:00

I put the whole error below, but before I continue there's a phrase in this error people are going to focus on and it's NOT the problem.

There is no trust relationship problem with the server.

What I don't doubt is at issue is communication to the domain controller during this "outage" is somehow comprised or affected...

This is an IIS server and the one website it's hosting crashes whenever this error occurs. Having said that I do not know cause and effect here. Am I seeing this ASP warning because it's the problem? Or is something else happening that causes this error to generate?

I'm pretty good with Promon64 and have had it running when this issue occurs, there's nothing standing out as a real issue.

Any ideas on how to troubleshoot or what logs to investigate next?

Event code: 3005 
Event message: An unhandled exception has occurred. 
Event time: 9/27/2023 8:45:46 AM 
Event time (UTC): 9/27/2023 12:45:46 PM 
Event ID: 3f6529ce78f1489fb1392a78c510954b 
Event sequence: 3922 
Event occurrence: 1 
Event detail code: 0 
 
Application information: 
    Application domain: /LM/W3SVC/2/ROOT-1-133402281845197659 
    Trust level: Full 
    Application Virtual Path: / 
    Application Path: C:\WebSites\ImageClearing\ 
    Machine name: BFXP8 
 
Process information: 
    Process ID: 3856 
    Process name: w3wp.exe 
    Account name: DOM\serivceacct 
 
Exception information: 
    Exception type: SystemException 
    Exception message: The trust relationship between this workstation and the primary domain failed.

   at System.Security.Principal.NTAccount.TranslateToSids(IdentityReferenceCollection sourceAccounts, Boolean& someFailed)
   at System.Security.Principal.NTAccount.Translate(IdentityReferenceCollection sourceAccounts, Type targetType, Boolean forceSuccess)
   at System.Security.Principal.WindowsPrincipal.IsInRole(String role)
   at System.Web.Configuration.AuthorizationRule.IsTheUserInAnyRole(StringCollection roles, IPrincipal principal)
   at System.Web.Configuration.AuthorizationRule.IsUserAllowed(IPrincipal user, String verb)
   at System.Web.Configuration.AuthorizationRuleCollection.IsUserAllowed(IPrincipal user, String verb)
   at System.Web.Security.UrlAuthorizationModule.OnEnter(Object source, EventArgs eventArgs)
   at System.Web.HttpApplication.SyncEventExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute()
   at System.Web.HttpApplication.ExecuteStepImpl(IExecutionStep step)
   at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously)

 
 
Request information: 
    Request URL: http://dst-bfxp8.dst.local/AMP/X9BrowseDocument.aspx?M=Home 
    Request path: /AMP/X9BrowseDocument.aspx 
    User host address: 10.22.38.6 
    User: DOM\FOD0134 
    Is authenticated: True 
    Authentication Type: Negotiate 
    Thread account name: DOM\Serviceacct
 
Thread information: 
    Thread ID: 39 
    Thread account name: DOM\Serviceacct
    Is impersonating: False 
    Stack trace:    at System.Security.Principal.NTAccount.TranslateToSids(IdentityReferenceCollection sourceAccounts, Boolean& someFailed)
   at System.Security.Principal.NTAccount.Translate(IdentityReferenceCollection sourceAccounts, Type targetType, Boolean forceSuccess)
   at System.Security.Principal.WindowsPrincipal.IsInRole(String role)
   at System.Web.Configuration.AuthorizationRule.IsTheUserInAnyRole(StringCollection roles, IPrincipal principal)
   at System.Web.Configuration.AuthorizationRule.IsUserAllowed(IPrincipal user, String verb)
   at System.Web.Configuration.AuthorizationRuleCollection.IsUserAllowed(IPrincipal user, String verb)
   at System.Web.Security.UrlAuthorizationModule.OnEnter(Object source, EventArgs eventArgs)
   at System.Web.HttpApplication.SyncEventExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute()
   at System.Web.HttpApplication.ExecuteStepImpl(IExecutionStep step)
   at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously)
 
 
Custom event details: 

Internet Information Services
ASP.NET
ASP.NET
A set of technologies in the .NET Framework for building web applications and XML web services.
3,490 questions
Windows Server
Windows Server
A family of Microsoft server operating systems that support enterprise-level management, data storage, applications, and communications.
13,095 questions
{count} votes

1 answer

Sort by: Most helpful
  1. Lex Li (Microsoft) 5,582 Reputation points Microsoft Employee
    2023-10-04T07:11:06.13+00:00

    An ASP.NET 4.x web app should implement its own logic to handle all exceptions, so that no unhandled exception will be thrown and crash the worker process like you observed.

    You can learn more from https://learn.microsoft.com/en-us/aspnet/web-forms/overview/older-versions-getting-started/deploying-web-site-projects/processing-unhandled-exceptions-cs

    Back to the exception itself, nothing over the network is 100% reliable, so sometimes calls to domain controller do fail and such exceptions occur. There isn't much to worry about, as long as the exceptions remain rare.

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.