I started getting this exception being thrown in my production environment. Unfortunately, I have not seen it while debugging. This is from a project referencing the toolkit.
System.Web.HttpUnhandledException: Exception of type 'System.Web.HttpUnhandledException' was thrown. ---> System.NotSupportedException: Assembly "AjaxControlToolkit, Version=3.5.40412.0, Culture=neutral, PublicKeyToken=28f01b0e84b6d53e" does not contain a script with hash code "7311d143/".
at AjaxControlToolkit.ToolkitScriptManager.DeserializeScriptEntries(String serializedScriptEntries, Boolean loaded) in d:\hg\act\Server\AjaxControlToolkit\ToolkitScriptManager\ToolkitScriptManager.cs:line 633
at AjaxControlToolkit.ToolkitScriptManager.OutputCombinedScriptFile(HttpContext context) in d:\hg\act\Server\AjaxControlToolkit\ToolkitScriptManager\ToolkitScriptManager.cs:line 347
at AjaxControlToolkit.ToolkitScriptManager.OnInit(EventArgs e) in d:\hg\act\Server\AjaxControlToolkit\ToolkitScriptManager\ToolkitScriptManager.cs:line 284
at System.Web.UI.Control.InitRecursive(Control namingContainer)
at System.Web.UI.Control.InitRecursive(Control namingContainer)
at System.Web.UI.Control.InitRecursive(Control namingContainer)
at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
--- End of inner exception stack trace ---
at System.Web.UI.Page.HandleError(Exception e)
at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
at System.Web.UI.Page.ProcessRequest(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
at System.Web.UI.Page.ProcessRequest()
at System.Web.UI.Page.ProcessRequestWithNoAssert(HttpContext context)
at System.Web.UI.Page.ProcessRequest(HttpContext context)
at ASP.projectspage_aspx.ProcessRequest(HttpContext context)
at System.Web.HttpApplication.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute()
at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously)
Comments: This error seems to be because of the usage of the GetHashCode() method in ToolkitScriptManager.cs. GetHashCode() method produces different results for 32-bit and 64-bit systems. When the scriptmanager tries to reach a referenced script using its' hashcode, it fails, giving the above error message. serdar
System.Web.HttpUnhandledException: Exception of type 'System.Web.HttpUnhandledException' was thrown. ---> System.NotSupportedException: Assembly "AjaxControlToolkit, Version=3.5.40412.0, Culture=neutral, PublicKeyToken=28f01b0e84b6d53e" does not contain a script with hash code "7311d143/".
at AjaxControlToolkit.ToolkitScriptManager.DeserializeScriptEntries(String serializedScriptEntries, Boolean loaded) in d:\hg\act\Server\AjaxControlToolkit\ToolkitScriptManager\ToolkitScriptManager.cs:line 633
at AjaxControlToolkit.ToolkitScriptManager.OutputCombinedScriptFile(HttpContext context) in d:\hg\act\Server\AjaxControlToolkit\ToolkitScriptManager\ToolkitScriptManager.cs:line 347
at AjaxControlToolkit.ToolkitScriptManager.OnInit(EventArgs e) in d:\hg\act\Server\AjaxControlToolkit\ToolkitScriptManager\ToolkitScriptManager.cs:line 284
at System.Web.UI.Control.InitRecursive(Control namingContainer)
at System.Web.UI.Control.InitRecursive(Control namingContainer)
at System.Web.UI.Control.InitRecursive(Control namingContainer)
at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
--- End of inner exception stack trace ---
at System.Web.UI.Page.HandleError(Exception e)
at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
at System.Web.UI.Page.ProcessRequest(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
at System.Web.UI.Page.ProcessRequest()
at System.Web.UI.Page.ProcessRequestWithNoAssert(HttpContext context)
at System.Web.UI.Page.ProcessRequest(HttpContext context)
at ASP.projectspage_aspx.ProcessRequest(HttpContext context)
at System.Web.HttpApplication.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute()
at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously)
Comments: This error seems to be because of the usage of the GetHashCode() method in ToolkitScriptManager.cs. GetHashCode() method produces different results for 32-bit and 64-bit systems. When the scriptmanager tries to reach a referenced script using its' hashcode, it fails, giving the above error message. serdar