System.Web.Extensions [英] System.Web.Extensions

查看:74
本文介绍了System.Web.Extensions的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

构建应用程序时,出现错误消息:

类型或名称空间名称"ScriptManager"在名称空间"System.Web.UI"中不存在(您是否缺少程序集引用?) D:\ Verification Import \ VerificationImport \ VerificationImport \ Default.aspx .designer.cs

为此,我正在尝试将System.Web.extensions 的引用添加到我的项目中....但是已被禁用....所以我需要做些什么来添加/启用System.Web.extensions的引用?

在此先感谢...:)

When I build my application, I get an error message:

The type or namespace name ''ScriptManager'' does not exist in the namespace ''System.Web.UI'' (are you missing an assembly reference?) D:\Verification Import\VerificationImport\VerificationImport\Default.aspx.designer.cs

For this, I am trying to add a reference of System.Web.extensions to my project....however it is disabled....So what I need to do to add/enable the reference of System.Web.extensions?

Thanks in advance... :)

推荐答案

据我所知,如果您的项目较旧,则添加引用"列表中的某些项目可能会被禁用或显示为灰色.NET框架的版本.禁用或灰色的项目可能与项目的.NET框架版本不兼容,因此VS不允许您添加这些项目.

检查您的网站(或Web应用程序)的.NET Framework版本(通过在VS中单击网站/项目的属性页).如果它是较旧的版本(例如,Say,1.1)或2.0,而没有Ajax扩展名,请为网站/项目升级.NET Framework版本.

希望您能够解决该问题.
So far as I know, some items in the Add reference list may be disabled or gray if your project is of an older version of .NET framework. The disabled or grayed items may not be compatible with the version of the .NET framework of your project and hence, VS is not letting you to add those.

Check your Web site''s (Or, web application''s) .NET framework version (By clicking on property pages of the web site/project in the VS). If it is of older version (Say, 1.1), or, 2.0 without the Ajax extensions, upgrade the .NET framework version for the web site/project.

Hopefully, you will be able to fix the issue.


这篇关于System.Web.Extensions的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆