WCF Syndication Service - RSS not redering on firefox

While working on WCF Syndication Service I have come across the interesting issue of RSS not working in Firefox.

Issue Detail:
Firefox is not able to display RSS feed published by WCF syndication service. When the RSS link is opened in the firefox it shows XML and not able to render the HTML for the RSS feed.

Issue Casue:
This issue is caused because URL is missing in the RSS feed generated via WCF Syndication Service.

Issue Fix:
This isssue is fixed just by added a Syndicationlink in syndication feed object.

SyndicationFeed feed = new SyndicationFeed();
feed.Links.Add(SyndicationLink.CreateAlternateLink(new Uri("Any Valid URL")));


No comments:

Post a Comment