I write code given below to read Atom feed.
string strUrL = "http://loluyede.blogspot.com/atom.xml";
WebRequest objWR = WebRequest.Create(strUrL);
WebProxy objWP = new WebProxy("strAddress", 1978);
objWP.Credentials = new NetworkCredential("username", "password");
objWR.Proxy = objWP;
StreamReader objSR = new StreamReader(objWR.GetResponse().GetResponseStream(), System.Text.Encoding.ASCII);
AtomFeed feed = AtomFeed.Load(objSR);
at the end of the statement following error comes
ERROR In Code:
The type initializer for 'Atom.Utils.DefaultValues' threw an exception.
ERROR on Page
Server Error in '/WebAppUI' Application.
--------------------------------------------------------------------------------
Value cannot be null.
Parameter name: stream
Anybody suggest me what i have to do.
The solution is much simpler:
To get it fully up and running you should change from AtomFeed to ASP.Net RSS Toolkit (free from codeplex).
Good luck!
EDITED on 2010-09-12:
Given the fact, that the AtomFeed project is discontinued and written for .NET v1.1 therefore too old, I’ve created a sample application fetching your feed using RSS Toolkit. Feel free to download the source codes from http://www.isource.ro/StackOverflow/RssReaderTest.zip.
If you have questions don’t hesitate to ask.