This project is read-only.


Sys.WebForms.PageRequestManagerServerErrorException: Script entries not loaded yet


I'm working on a .NET 4 Web site running on IIS 5.1 and use Ajax Control Toolkit (July 2013).

A Sys.WebForms.PageRequestManagerServerErrorException exception is thrown after a period of inactivity (or a forced iisreset) and clicking a server Button in a custom control. The Button is inside an UpdatePanel and the latter is inside a TabContainer.

POST response:
30|error|500|Script entries not loaded yet.|

Exception message:
Script entries not loaded yet.

The exception is not thrown if I use Ajax Control Toolkit (June 2013).
Closed Dec 14, 2013 at 2:38 AM by Superexpert


ivleth wrote Sep 15, 2013 at 11:45 AM

I have the same problem on iis7.5 with using toolscript manager and it drives me nuts. There is no logical explanation, it just happens sometimes causing others logged on users to experience problems too. I use a SQL express server for session storage, I have 2 loadbanced web servers en each website uses 2 w3p processes. Everything is configured to run in a clusters mode, so no worker process recycle, website Ids the same, same encryption key etc etc. Anybody an idea? I will try the June edition today and let you know what happens.

Regards Ingmar

hickskp wrote Oct 3, 2013 at 8:15 PM

I had the same issue today with the latest ATK build. I have no I idea how to fix, but it happens when ScriptMode is Release in the Toolkitscriptmanager. Of course you don't have to manually set this when you publish since it inherits the Release mode when debug=false in the web.config. It has something to do with the combinescript handler, I think. I set combinescript = false in the tsm and this error goes away.

I have my tsm setup like the example on the atk demo site. Lines in the web.config have been added and ajaxtoolkit.config exists.

So basically if I try and combine the scripts it will fail on the first ajax postback when in Release mode.

JerryH wrote Oct 9, 2013 at 12:32 AM

Same thing is happening for us with the SEP 2013 build. Works fine in debug, but gacks when in release mode.

Exception type: OperationCanceledException
Exception message: Script entries not loaded yet.
at AjaxControlToolkit.ToolkitScriptManagerCombiner.IsScriptRegistered(ScriptReference scriptReference)
at AjaxControlToolkit.ToolkitScriptManager.OnResolveScriptReference(ScriptReferenceEventArgs e)
at System.Web.UI.ScriptManager.RegisterScripts()
at System.Web.UI.ScriptManager.OnPagePreRenderComplete(Object sender, EventArgs e)
at System.EventHandler.Invoke(Object sender, EventArgs e)
at System.Web.UI.Page.OnPreRenderComplete(EventArgs e)
at System.Web.UI.Page.PerformPreRenderComplete()
at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)

Will try setting combinescript=false for now (fingers are crossed), and see if any of the other ACT builds are working correctly.

(very large sigh)

Jerry H.

ivleth wrote Oct 9, 2013 at 3:24 PM

FYI, you can replay this behaviour by editing the web.config file. The webprocesses are then restarted and probably trashing the combinedscripts. I did a lot of research and found that a virus scanner can cause issues. I never had touble with that but after excluding the webroot folders from being scanned the stability increased. Still I do worry that there is no active follow up on this by the author as the Ajax Control Toolkit is heavily used worldwide.

regards Ingmar

codeWarrior456 wrote Oct 9, 2013 at 3:55 PM

I have a page that contains three tabs. When I go to this page click a button in an update panel in the second tab I get this error consistently. However, when go to this page and only two of the tabs are showing and click the same button I don't get this error. It doesn't make sense that the same behavior would work in one scenario but not another.

Wild_Beast wrote Oct 28, 2013 at 7:32 AM

Causes when (all true):
  1. page has AjaxControltoolkit:ComboBox (mb something else)
  2. form do async postback
  3. Use combine scripts
  4. Use release script mode.
    Because ComboBox determines by ScriptManager as ScriptControl manager try to check its references, but can't. All extender controls has:
    protected override IEnumerable<ScriptReference> GetScriptReferences()
    return null;
    in ExtenderControlBase and no references checked for extenders, but script control combobox has:
    protected virtual IEnumerable<ScriptReference> GetScriptReferences()
    if (this.Visible)
    List<ScriptReference> list = new List<ScriptReference>();
    list.AddRange(ScriptObjectBuilder.GetScriptReferences(base.GetType(), false));
    return list;
    return null;
    and references must be checked, but can't, because scripts not loaded on async postback (issue exception is raised).

Wild_Beast wrote Oct 28, 2013 at 8:42 AM

Workaround is inherit ComboBox, override GetScriptRrerences and return null if page in async postback.

vkroutik wrote Nov 18, 2013 at 1:12 AM

Confirming, its an issue with any postbacks which are generated from Javascript using __doPostBack function! in release mode

fankof wrote Dec 4, 2013 at 9:04 PM

This bug dont have yet any solution? Its true that happen when the site is on Release mode and Combine scripts

godwares wrote Dec 7, 2013 at 11:53 PM

To temporarily solve this issue, set ToolkitScriptManager's ScriptMode="Release" and CombineScripts="False".

corradPlex wrote Dec 10, 2013 at 11:43 AM

i'have same problem

sadjad_bp wrote Dec 10, 2013 at 9:51 PM

I have the same problem, only setting CombineScripts="False" helped getting rid of the problem for now. Any updates on this error?