views:

40

answers:

0

Following the tutorial at
http://www.developerzen.com/2009/01/11/aspnet-mvc-rss-feed-action-result/

My code for the controller is like this, but i am not getting any result from http://www.gadgetfind.com/rss.xml

public ActionResult Feed()    
{        
    SyndicationFeed feed =        
            new SyndicationFeed("Test Feed",      
                        "This is a test feed",      
                        new Uri("http://www.gadgetfind.com/rss.xml"),     
                        "TestFeedID",     
                        DateTime.Now);     

    SyndicationItem item =
            new SyndicationItem("Test Item",
                                "This is the content for Test Item",
                                new Uri("http://www.gadgetfind.com/rss.xml"),
                                "TestItemID",
                                DateTime.Now);

    List<SyndicationItem> items = new List<SyndicationItem>();
    items.Add(item);
    feed.Items = items;

    return new RssActionResult() { Feed = feed };
}