Jump to content

Hey guys I have a nice and small application here for the console that connects to the RSS feed f...


G+_Dean T
 Share

Recommended Posts

Hey guys I have a nice and small application here for the console that connects to the RSS feed for Coding 101 and lists each episode. Since its grabbing the RSS feed each time it runs it means it will always be up to date with the current episode.

 

To make this work you need to right click your project in the solution explorer and go to add and select reference. Then add System.Xml as well as System.ServiceModel.Syndication as these are needed to make it compatible with xml / rss.

 

I had to google a lot of this and I find it difficult to understand exactly how it works since I am still a beginner so dont worry if you dont understand it  either.

 

http://pastebin.com/7vfkR6fq

http://pastebin.com/7vfkR6fq

Link to comment
Share on other sites

Dean, I love working on your code examples but I couldn't get this to run (actually I had a lot of trouble getting things to run this week and am hoping a bit of time is put into discussing this on the show tomorrow).

 

But I couldn't get you code to run, I got this error

 

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

 

Any idea what i am doing wrong, probably something simple and obvious :-)    ?

Link to comment
Share on other sites

Its because its not been added to the project. On the right hand side of VS in the solution explorer, right click on your project and go to add and then select reference. In here you can search for and add System.ServiceModel and System.ServiceModel.Syndication.

 

These need added to the project as they allow additional code such as that used for turning the rss output in to different items such as categories.

 

I hope you get it working. If not take some screen shots of what youre doing for me.

Link to comment
Share on other sites

 Share

×
×
  • Create New...