Exchange Server 2019 - ASP.NET 4.0.30319.0 Event ID 1309

EDDY RAFFOUL 20 Reputation points
2025-03-06T05:37:56.73+00:00

Hello,

I have an Exchange 2019 CU14 and it was working fine till I installed the Security Update for Exchange 2019 Cumulative Update 14 (KB5036401).

since then my Event viewer is filled with ASP.NET 4.0.30319.0 Event ID 1309. ECP and OWA are working fine

Event code: 3005 

Event message: An unhandled exception has occurred. 

Event time: 3/5/2025 6:28:06 PM 

Event time (UTC): 3/5/2025 4:28:06 PM 

Event ID: 4ec8677e5ebc451d9237cb12da82d41b 

Event sequence: 31608 

Event occurrence: 694 

Event detail code: 0 

 

Application information: 

    Application domain: /LM/W3SVC/2/ROOT/owa-2-133850245435189009 

    Trust level: Full 

    Application Virtual Path: /owa 

    Application Path: C:\Program Files\Microsoft\Exchange Server\V15\ClientAccess\owa\ 

    Machine name: ServerName

 

Process information: 

    Process ID: 1376 

    Process name: w3wp.exe 

    Account name: NT AUTHORITY\SYSTEM 

 

Exception information: 

    Exception type: NullReferenceException 

    Exception message: Object reference not set to an instance of an object.

   at Microsoft.Exchange.Clients.Owa2.Server.Core.OwaModule.ShouldBlockIncomingRequest(HttpContext httpContext)

   at Microsoft.Exchange.Clients.Owa2.Server.Core.OwaModule.OnAuthenticateRequest(Object sender, EventArgs e)

   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: https://domain:444/owa/prem/15.2.1544.9/ext/def/a216ceed-7791-4635-a752-5a4ac0a5eb93/images/app_icon.png 

    Request path: /owa/prem/15.2.1544.9/ext/def/a216ceed-7791-4635-a752-5a4ac0a5eb93/images/app_icon.png 

    User host address: 192.168.3.17 

    User:  

    Is authenticated: False 

    Authentication Type:  

    Thread account name: NT AUTHORITY\SYSTEM 

 

Thread information: 

    Thread ID: 50 

    Thread account name: NT AUTHORITY\SYSTEM 

    Is impersonating: False 

    Stack trace:    at Microsoft.Exchange.Clients.Owa2.Server.Core.OwaModule.ShouldBlockIncomingRequest(HttpContext httpContext)

   at Microsoft.Exchange.Clients.Owa2.Server.Core.OwaModule.OnAuthenticateRequest(Object sender, EventArgs e)

   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)

Exchange | Exchange Server | Management
{count} votes

Accepted answer
  1. Anonymous
    2025-03-13T08:34:17.8333333+00:00

    Hi @EDDY RAFFOUL,

    Thank you for your prompt feedback.

    1. You are currently using Exchange version KB5036401, which was released on 12 March 2024, and would like to know why you chose to use this relatively old version? What are your reasons for choosing to use this relatively old version?
    2. In what scenarios do you encounter this error? Other users have reported that this error occurs when using the My Templates add-in, are you experiencing the same situation?
    3. We strongly recommend you upgrade Exchange to the latest CU15 version, which has fixed many problems in previous versions, significantly enhanced system security, improved system efficiency, and brought you a more efficient, stable and reliable experience. Exchange Server build numbers and release dates | Microsoft Learn

    User's image

    If the answer is helpful, please click on “Accept answer” as it could help other members of the Microsoft Q&A community who have similar questions and are looking for solutions.

    Thank you for your support and understanding.


2 additional answers

Sort by: Most helpful
  1. Anonymous
    2025-03-06T09:35:57.9933333+00:00

    Hi @EDDY RAFFOUL,

    Thank you for posting your question in the Microsoft Q&A forum.

    Based on your description, your issue is with Event ID 1309 after installing the security update for Exchange 2019 Cumulative Update 14 (KB5036401). Below are some suggestions that we hope will help you.

    1. Please check your .net framework version first. According to the official documentation, it should be 4.8. If your current version does not match, we recommend you to upgrade it to ensure the compatibility and stability of your system.
    2. In the thread with similar issue as yours, there is feedback from users that deleting ‘targetFramework="4.5.1" ’ in the file ‘X:\Program Files\Microsoft\Exchange Server\V15\ClientAccess\rest\web.config’ , and then run IISRESET or restart the server, which may effectively solve the problem. You can try this method, but be sure to make a backup of this file before the operation, so that you can restore the original state in time to avoid unnecessary losses if the operation is abnormal.

    In addition, I would like to know, in addition to the current error message, have you encountered any other problems with Exchange?

    If the answer is helpful, please click on “Accept answer” as it could help other members of the Microsoft Q&A community who have similar questions and are looking for solutions.

    Thank you for your support and understanding.


  2. EDDY RAFFOUL 20 Reputation points
    2025-03-17T10:21:55.6566667+00:00

    Hello Again,

    i confirm after installing Exchange2019-KB5037224-x64-en the ASP.net error stopped. and the outlook search also is working again.

    thank you for your help


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.