Note that there are some explanatory texts on larger screens.

plurals
  1. POToolkitScriptManager throws NullReferenceException during concurrent access to a page for the first time
    primarykey
    data
    text
    <p>i'm developing a ASP.NET web application which uses the AjaxControlkit 3.0.30512.20315. I have a <code>ToolkitScriptManager</code> instance on my master page which has some <code>ScriptReferences</code> in the <code>CombineScripts</code> collection. If i access my default page from 2 differenct clients after an <code>iisreset</code>, i get the following exception</p> <pre><code>[NullReferenceException: Object Reference not set to an instance of an object.] System.Collections.Generic.Dictionary`2.Insert(TKey key, TValue value, Boolean add) +143 System.Collections.Generic.Dictionary`2.set_Item(TKey key, TValue value) +11 AjaxControlToolkit.ToolkitScriptManager.GetScriptCombineAttributes(Assembly assembly) +129 AjaxControlToolkit.ToolkitScriptManager.IsScriptCombinable(ScriptEntry scriptEntry) +148 AjaxControlToolkit.ToolkitScriptManager.OnResolveScriptReference(ScriptReferenceEventArgs e) +415 System.Web.UI.ScriptManager.RegisterScripts() +191 System.Web.UI.ScriptManager.OnPagePreRenderComplete(Object sender, EventArgs e) +113 System.Web.UI.Page.OnPreRenderComplete(EventArgs e) +8698462 System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +1029 </code></pre> <p>Using <code>.NET Reflector</code> i found out that the <code>GetScriptCombineAttributes</code>method access a <code>static dictionary</code>, which is <code>not protected against concurrent access</code>. Either i have a race condition in my code or there is a bug in the <code>AjaxToolkit</code>.</p> <p>Can anybody give me a hint on that one?</p> <p>Thanks in advance</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload