The type or namespace name "Syndication" does not exist in the namespace "System.ServiceModel". After upgrading to VS2010
I am getting the following error when trying to compile my asp.net site after upgrading the project from vs2008 to vs2010
The type or namespace name "Syndication" does not exist in the namespace "System.ServiceModel" (are you missing an assembly reference?)
I have an asp.net site targeting 3.5 (as in vs2008) I also added a link to System.ServiceModel.Web
I also have these instructions at the top of my class: using System.ServiceModel; using System.ServiceModel.Description; using System.ServiceModel.Syndication; using System.ServiceModel.Web;
The last 2 are complaining about the above error, commenting them throws errors (can't find WebGet, etc.) like flipflops.
Does anyone have any ideas?
a source to share
For me it turned out to be the following line:
<assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
he should have been
<assemblyBinding appliesTo="v2.0.50727" xmlns="urn:schemas-microsoft-com:asm.v1">
I had many other projects in solutions based on the same - not sure how it went missing, but adding it to the problem.
a source to share