将ref添加到SYSTEM.WEB.EXTENSIONS

时间:2012-02-12 18:37:57

标签: c# visual-studio-2010 web-config system.web

我有以下几行:

[System.Diagnostics.DebuggerNonUserCodeAttribute()] private global::AjaxControlToolkit.ToolkitScriptManager @__BuildControlToolkitScriptManager1() { global::AjaxControlToolkit.ToolkitScriptManager @__ctrl;

我收到了这个错误:

The type 'System.Web.UI.ScriptManager' is defined in an assembly that is not referenced. You must add a reference to assembly 'System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35'.

我在可视化网络开发者中选择了Add Reference>.Net>system.web.extension version 4.0,但仍然会收到相同的错误。

我该怎么办?

0 个答案:

没有答案