Versions / Builds Affected
20140616Status
ResolvedProblem Summary
Warning event log 1309 with exception message 'Script controls may not be registered before PreRender' is being logged whenever a user opens the Archive pageTT / JIRAID
2502How to Identify
Typical symptom reported by the customer:
Since upgrading to MARC 2014 build 20140616 the Application event log lists a high amount of warnings with event ID 1309 (source: ASP.NET)
Note that such warnings can be common and that checking the content for this specific warning is very important to properly identify this known issue. Do only use this article if the exception message matches! The relevant part of the event to identify this known issue is:
----- RELEVANT PARTS OF THE EVENT -----
Event ID: 1309
Source: ASP.NET 4.0.30319.0 (note that this version number might differ slightly)
Level: Warning
...
Exception information:
Exception type: InvalidOperationException
Exception message: Script controls may not be registered before PreRender.
...
Request information:
Request URL: http://localhost/MailArchiver/User/Archive.aspx?getAdvState=1408604636415
Request path: /MailArchiver/User/Archive.aspx
...
----------
Here is the complete event for reference:
----- FULL EVENT -----
Log Name: Application
Source: ASP.NET 4.0.30319.0
Date: 8/21/2014 8:03:56 AM
Event ID: 1309
Task Category: Web Event
Level: Warning
Keywords: Classic
Event code: 3005
Event message: An unhandled exception has occurred.
Event time: 8/21/2014 8:03:56 AM
Event time (UTC): 8/21/2014 7:03:56 AM
Event ID: b7ea1aa845e04dddb0657e60c0f13f6e
Event sequence: 1227
Event occurrence: 21
Event detail code: 0
Application information:
Application domain: /LM/W3SVC/1/ROOT/MailArchiver-1-130528381165824845
Trust level: Full
Application Virtual Path: /MailArchiver
Application Path: C:\Program Files\GFI\MailArchiver\ASPNET\UI\
Machine name: SERVERNAME
Process information:
Process ID: 316
Process name: w3wp.exe
Account name: NT AUTHORITY\NETWORK SERVICE
Exception information:
Exception type: InvalidOperationException
Exception message: Script controls may not be registered before PreRender.
at System.Web.UI.ScriptControlManager.RegisterScriptControl[TScriptControl](TScriptControl scriptControl)
at System.Web.UI.Control.PreRenderRecursiveInternal()
at System.Web.UI.Control.PreRenderRecursiveInternal()
at System.Web.UI.Control.PreRenderRecursiveInternal()
at System.Web.UI.Control.PreRenderRecursiveInternal()
at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
Request information:
Request URL: http://localhost/MailArchiver/User/Archive.aspx?getAdvState=1408604636415
Request path: /MailArchiver/User/Archive.aspx
User host address: ::1
User: DOMAIN\User
Is authenticated: True
Authentication Type: ADA\UnknownWindows
Thread account name: NT AUTHORITY\NETWORK SERVICE
Thread information:
Thread ID: 24
Thread account name: NT AUTHORITY\NETWORK SERVICE
Is impersonating: False
Stack trace: at System.Web.UI.ScriptControlManager.RegisterScriptControl[TScriptControl](TScriptControl scriptControl)
at System.Web.UI.Control.PreRenderRecursiveInternal()
at System.Web.UI.Control.PreRenderRecursiveInternal()
at System.Web.UI.Control.PreRenderRecursiveInternal()
at System.Web.UI.Control.PreRenderRecursiveInternal()
at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)Workaround / Fix Details
Fixed in MARC2015 build 20141117
-----
http://ftp.gfisoftware.com/patches/MARC2014/20140616/MARC2014_PATCH_20140917_2502.zipRequired Actions
Upgrade to the version mentioned in the fix section