类型或命名空间名称'聚合'不会在命名空间“System.ServiceModel”存在更新到VS2010后 [英] The type or namespace name 'Syndication' does not exist in the namespace 'System.ServiceModel' After updating to VS2010

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

问题描述

从尝试VS2008更新项目后,VS2010编译我的asp.net网站时,我收到以下错误

i get the following error when trying to compile my asp.net site after updating the project from vs2008 to vs2010

类型或命名空间名称'聚合'不会在命名空间System.ServiceModel(是否缺少程序集引用?)存在

The type or namespace name 'Syndication' does not exist in the namespace 'System.ServiceModel' (are you missing an assembly reference?)

我有asp.net网站定位3.5框架(因为它在VS2008中那样)
我也加入到System.ServiceModel.Web参考

I have the asp.net site targeting 3.5 framework (as it did in vs2008) I also added a reference to System.ServiceModel.Web

我也有这些using语句在我班上的第一名:
使用System.ServiceModel;
使用System.ServiceModel.Description;
使用System.ServiceModel.Syndication;
使用System.ServiceModel.Web;

I also have these using statements at the top of my class: using System.ServiceModel; using System.ServiceModel.Description; using System.ServiceModel.Syndication; using System.ServiceModel.Web;

最近2,出现错误抱怨上面,评论出来产生错误(找不到WebGet等),喜欢触发器。

The last 2 complain with the error above, commenting them out produces errors (cannot find WebGet, etc.) like it flipflops.

任何人有什么想法?

推荐答案

在过去想起了有点类似的事情,我通过不断改变2,3,3.5的目标,直到它的工作固定它 - 是的,你听我的权利。我的猜测是用了一两次从一个版本到下一个为它的自我修复配置文件。

remembered a kinda similar thing in the past, i fixed it by continuously changing the target between 2,3,3.5 until it worked - yes you heard me right. My guess is it took a time or two from one version to the next for it to self-fix the config file.

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

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