Когда я пытался добавить Ajax AutoComplete с помощью Ajax Toolkit в VS 2008, я получил ошибку.Пожалуйста, смотрите описание ниже - PullRequest
0 голосов
/ 02 июля 2010

У меня ошибка здесь: пожалуйста, пройдите через это и скажите мне, в чем ошибка.Ошибка сервера в приложении «/ WebSite1».

Could not load type 'System.Web.UI.ScriptReferenceBase' from assembly 'System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35'.
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.TypeLoadException: Could not load type 'System.Web.UI.ScriptReferenceBase' from assembly 'System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35'.

Source Error:

An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.

Stack Trace:

[TypeLoadException: Could not load type 'System.Web.UI.ScriptReferenceBase' from assembly 'System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35'.]
   AjaxControlToolkit.ToolkitScriptManager.OnResolveScriptReference(ScriptReferenceEventArgs e) in d:\hg\act\Server\AjaxControlToolkit\ToolkitScriptManager\ToolkitScriptManager.cs:276
   System.Web.UI.ScriptManager.RegisterScripts() +261
   System.Web.UI.ScriptManager.OnPagePreRenderComplete(Object sender, EventArgs e) +117
   System.Web.UI.Page.OnPreRenderComplete(EventArgs e) +2063008
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +2247


Version Information: Microsoft .NET Framework Version:2.0.50727.1433; ASP.NET Version:2.0.50727.14

33 

1 Ответ

0 голосов
/ 02 июля 2010

Убедитесь, что на сервере установлена ​​правильная версия .net framework (.net 3.5 SP1 ). Также попробуйте заменить ajaxToolkit:ToolkitScriptManager на asp:ScriptManager в файле aspx

Добро пожаловать на сайт PullRequest, где вы можете задавать вопросы и получать ответы от других членов сообщества.
...