类型或命名空间名称“脚本”不存在于命名空间“System.Web” [英] The type or namespace name 'Script' does not exist in the namespace 'System.Web'

查看:151
本文介绍了类型或命名空间名称“脚本”不存在于命名空间“System.Web”的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我刚刚部署了一个网站到IIS 7(我非常无知),在尝试构建站点时,我收到这个错误。我做了一个谷歌,我看到一个文章说,我应该把system.web.extensions.dll到/ bin。但是,我也看到一篇文章说不要这样做。我试过它,但我只是收到一个不同的错误('资源找不到')。
我完全没有什么可以尝试的事情

解决方案

可以在Visual Studio中使用发布命令直接发布到网站?如果没有,请使用该命令发布到机器上的类似站点,然后将其复制到客户站点。



您还应该查看 IIS Web部署工具。它可以复制整个站点,包括IIS设置和任何数据库。它将内置于VS2010中。


I just deployed a website into IIS 7 (about which I am woefully ignorant), and upon trying to build the site, I receive this error. I did a little googleing and I saw an article that said I should put system.web.extensions.dll into the /bin. But, I also saw an article saying not to do that. I tried it anyway, but I just received a different error ('Resource cannot be found'). I am totally clueless as to what else to try

解决方案

Can you use the "Publish" command in Visual Studio to publish directly to the site? If not, then use that command to publish to a similar site on your machine, then copy it to the customer site.

You should also look into the IIS Web Deployment Tool. It can copy an entire site, including IIS settings and any databases. It will be built into VS2010.

这篇关于类型或命名空间名称“脚本”不存在于命名空间“System.Web”的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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