views:

278

answers:

2

Hello, i get the following error when trying to compile my asp.net site after updating 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 the asp.net site targeting 3.5 framework (as it did in vs2008) I also added a reference to 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;

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

Anyone have any ideas?

A: 

Try deleting any references in question and then re-adding them afresh and compile. Does the same happen?

OmegaMan
same result, but i did find a fix, see above.
schmoopy
A: 

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.

schmoopy