Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7927691
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 3, 20262026-06-03T19:27:09+00:00 2026-06-03T19:27:09+00:00

I am trying to serve an RSS feed from my ASP.net MVC site. Everything

  • 0

I am trying to serve an RSS feed from my ASP.net MVC site. Everything is working accept for the pubdate element. I can’t seem to get the Rss20FeedFormatter to output it. I thought that it maps to the LastUpdatedDate property on the SyndicationFeed object, but that outputs as LastBuildDate.

Does anyone know how I can use the SyndicationFeed with Rss20FeedFormatter to render the pubDate node in my RssFeed?

   public class RssActionResult : ActionResult
    {
        public SyndicationFeed Feed { get; set; }
        public override void ExecuteResult(ControllerContext context)
        {
            context.HttpContext.Response.ContentType = "application/rss+xml";
            var rssFormatter = new Rss20FeedFormatter(Feed, false);
            using (var writer = XmlWriter.Create(context.HttpContext.Response.Output, new XmlWriterSettings{ Indent = true}))
                rssFormatter.WriteTo(writer);
        }
    }

example of how I am creating the feed.

new SyndicationFeed("Title", "Description", url, "test_id", publishDate, feedItems){ LastUpdatedTime = publishDate}
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-03T19:27:16+00:00Added an answer on June 3, 2026 at 7:27 pm

    It seems that the object model currently supports pubDate only on items, not on the feed/channel. You can add it as an ElementExtension:

    feed.ElementExtensions.Add("pubDate", "", DateTime.UtcNow.ToString("r"));
    

    You just have to take care to format the date correctly, have a look here: DateTime to RFC-1123 gives inaccurate timezone

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm trying to serve a pdf file from a database in ASP.NET using an
I'm trying to serve a word document (docx) from an asp.net page using the
I am making an ASP.NET MVC site which needs to serve a number of
I am trying to make an RSS Feed with asp.net,sql and xml. I am
I'm trying to import the last 5 posts from a Wordpress RSS feed and
I'm trying to serve CSS files for my site from a separate domain. I've
I'm trying to display a custom progressdialog while loading RSS feed from an HTTP
I'm trying to serve an image from a play-mini application. object App extends Application
I'm using the jGFeed to retrieve RSS feed from distant server. Nothing hard, really.
i'm trying to load remote rss feed with jquery and a (aspx) proxy. I

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.