0

我们正在将我们的 Kentico 安装从 v5.5 R2 升级到版本 6.0。该站点正在运行,但我们在加载 Telerik 控件时遇到问题,并收到以下错误消息:

Assembly "System.Web.Extensions, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" does not contain a script with hash code "ea597d4b".

Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code. 

Exception Details: System.NotSupportedException: Assembly "System.Web.Extensions, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" does not contain a script with hash code "ea597d4b".

Source Error: 


    Line 18: {
    Line 19: // Ensure script manager
    Line 20: PortalHelper.EnsureScriptManager(Page);
    Line 21: }
    Line 22: }

Source File: d:\Websites\staging_coronapubliclibrary\CMSPages\ScriptManager.aspx.cs Line: 20 

Stack Trace: 


[NotSupportedException: Assembly "System.Web.Extensions, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" does not contain a script with hash code "ea597d4b".]
AjaxControlToolkit.ToolkitScriptManager.DeserializeScriptEntries(String serializedScriptEntries, Boolean loaded) +1088
AjaxControlToolkit.ToolkitScriptManager.OutputCombinedScriptFile(HttpContext context) +1005
AjaxControlToolkit.ToolkitScriptManager.OnInit(EventArgs e) +66
System.Web.UI.Control.InitRecursive(Control namingContainer) +133
System.Web.UI.Control.AddedControl(Control control, Int32 index) +277
CMS.UIControls.AbstractCMSPage.EnsureScriptManager() +202
CMSPages_ScriptManager.Page_Init(Object sender, EventArgs e) in d:\Websites\staging_coronapubliclibrary\CMSPages\ScriptManager.aspx.cs:20
System.Web.Util.CalliHelper.EventArgFunctionCaller(IntPtr fp, Object o, Object t, EventArgs e) +25
System.Web.UI.Page.OnInit(EventArgs e) +105
CMS.UIControls.AbstractCMSPage.OnInit(EventArgs e) +16
CMS.UIControls.CMSPage.OnInit(EventArgs e) +87
System.Web.UI.Control.InitRecursive(Control namingContainer) +133
System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +1970

请求的资源是:

http://staging.coronapubliclibrary.org/Telerik.Web.UI.WebResource.axd?_TSM_HiddenField_=sm1_TSM&compress=1&_TSM_CombinedScripts_=%3b%3bSystem.Web.Extensions%2c+Version%3d4.0​​.0.0%2c+Culture%3dneutral %2c+PublicKeyToken%3d31bf3856ad364e35%3aen-US%3a387126a6-cbc0-46b4-b6ca-c8de25a0044f%3aea597d4b%3ab25378d2

关于如何解决此问题的任何想法?任何帮助,将不胜感激。

4

1 回答 1

0

There are 2 ways to fix this issue:

  1. To fix this, set the "EnableScriptCombine" attribute to "false" on the RadScriptManager control.

  2. Instead of using the RadScriptManager, you can use the ASP.NET toolkit script manager in its place, using the same ID attribute as shown below:

<ajaxToolkit:ToolkitScriptManager runat="server" ID="ScriptManager1" ScriptMode="Release" />

于 2014-01-07T02:10:29.727 回答