G+_Dean T Posted March 11, 2014 Share Posted March 11, 2014 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 More sharing options...
G+_Pete Murphy Posted March 12, 2014 Share Posted March 12, 2014 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 More sharing options...
G+_Dean T Posted March 13, 2014 Author Share Posted March 13, 2014 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 More sharing options...
G+_Dean T Posted March 13, 2014 Author Share Posted March 13, 2014 Also are you copying the entire code not just the main area as you also need the include statements at the top. Link to comment Share on other sites More sharing options...
G+_Shannon Morse Posted March 13, 2014 Share Posted March 13, 2014 I got it to work. I don't have an option in my Add -> Reference for System.ServiceModel.Syndication. I DO have the System.ServiceModel reference though, so I clicked that one. Worked just fine when I ran it. Thanks! Link to comment Share on other sites More sharing options...
Recommended Posts