Subscribe: ASPNETRSSToolkit Work Item Rss Feed
http://www.codeplex.com/ASPNETRSSToolkit/Project/ProjectRss.aspx?ProjectRSSFeed=codeplex://workitem/ASPNETRSSToolkit
Added By: Feedage Forager Feedage Grade B rated
Language: English
Tags:
add support  add  closed feature  feature  multiple categories  reopened feature  select  set multiple  set  support  xsl select  xsl 
Rate this Feed
Rating: 3 starRating: 3 starRating: 3 starRate this feedRate this feed
Rate this feed 1 starRate this feed 2 starRate this feed 3 starRate this feed 4 starRate this feed 5 star

Comments (0)

Feed Details and Statistics Feed Statistics
Preview: ASPNETRSSToolkit Work Item Rss Feed

ASPNETRSSToolkit Work Item Rss Feed



ASPNETRSSToolkit Work Item Rss Description



 



Reopened Feature: Allow relative path in rssTempDir from AppSettings [7479]

Fri, 14 Jun 2013 07:14:58 GMT

Add support for relative paths for the rssTempDir AppSetting
 
From forum:
The problem is that I need to set the AppSettings to "C:\\inetpub\MyApp\Temp\Rss".
Is it possible to set it to something like this:"~\Temp\Rss".



Reopened Feature: sub-element support [7480]

Fri, 14 Jun 2013 07:14:57 GMT

Add support for tag with attributes.



Reopened Feature: How to set multiple categories for an item [9809]

Fri, 14 Jun 2013 07:14:57 GMT

Is it possible to set multiple categories for an item ?

i tried using:
item"category"="my category1";
item"category"="my category2";

channel.Add(item);

This way i only get "my category2" as the item's category. Am I doing something wrong?



Closed Feature: Allow relative path in rssTempDir from AppSettings [7479]

Thu, 16 May 2013 09:49:40 GMT

Add support for relative paths for the rssTempDir AppSetting
 
From forum:
The problem is that I need to set the AppSettings to "C:\\inetpub\MyApp\Temp\Rss".
Is it possible to set it to something like this:"~\Temp\Rss".



Closed Feature: sub-element support [7480]

Thu, 16 May 2013 09:49:40 GMT

Add support for tag with attributes.



Closed Feature: How to set multiple categories for an item [9809]

Thu, 16 May 2013 09:49:40 GMT

Is it possible to set multiple categories for an item ?

i tried using:
item"category"="my category1";
item"category"="my category2";

channel.Add(item);

This way i only get "my category2" as the item's category. Am I doing something wrong?



Commented Issue: Updates Needed to Fix Support for Atom Feeds [14931]

Fri, 25 May 2012 17:36:18 GMT

Symptoms when consuming Atom feeds:
- is empty
- links to the URL and not the URL

Fixes in AtomToRss20.xsl
- LINE 25: should be
- LINE 43: should be
- LINE 55: should be

Attached is a compiled version that incorporates these changes.
Comments: ** Comment from web user: jaydee777 **

Where should I add the XSl file? I am using visual studio I have the dll file in the bin folder so I assume I can overide with the new one, but where should I drop the xsl. thank you.







Created Issue: AtomToRss20.xsl seemingly incorrect. Gets wrong link. [32368]

Wed, 07 Mar 2012 11:48:05 GMT

Line 42 in \Resources\AtomToRss20.xsl is this





Surely it should be





?

When changed the link to atom feeds point to the post's web page. Left unchanged the link to atom feeds points to the feed's url.

Thanks in advance.

Regards
Dave A



Created Issue: System.ArgumentException: An XML comment cannot contain '--', and '-' cannot be the last character. [30446]

Tue, 29 Mar 2011 19:19:20 GMT

Using the following RSS Uri: http://www.buysell.com/rss/electronics-computers/audio-video/Calgary-AB/search-rss-x/50-Calgary-AB-pf-c1-c2-a-prx-lloc--2z3acaz3acaz2bazy2ba6y-6F186C4A/

The following exception is thrown:

System.ArgumentException: An XML comment cannot contain '--', and '-' cannot be the last character. at System.Xml.XmlTextWriter.WriteComment(String text)r

In Google reader, and others, the RSS stream is readable and no exceptions seem to be thrown.



The issue lies in before these two lines, located in RssToolkit.Rss.DownloadManager.TrySaveToDisk():

XmlComment comment = doc.CreateComment(string.Format(CultureInfo.InvariantCulture, "{0}@{1}", utcExpiry.ToBinary(), url));
doc.InsertBefore(comment, doc.DocumentElement);

The URL contains "--" and thus has to be escaped before creating the XML comment, then unescaped there after.


To fix this, surround the XmlComment line with the following string replace commands:

url = url.Replace("--", "$$$$");
XmlComment comment = doc.CreateComment(string.Format(CultureInfo.InvariantCulture, "{0}@{1}", utcExpiry.ToBinary(), url));
url = url.Replace("$$$$","--");



Created Issue: System.ArgumentException: An XML comment cannot contain '--', and '-' cannot be the last character. [30445]

Tue, 29 Mar 2011 19:17:10 GMT

Using the following RSS Uri: http://www.buysell.com/rss/electronics-computers/audio-video/Calgary-AB/search-rss-x/50-Calgary-AB-pf-c1-c2-a-prx-lloc--2z3acaz3acaz2bazy2ba6y-6F186C4A/

The following exception is thrown:

System.ArgumentException: An XML comment cannot contain '--', and '-' cannot be the last character. at System.Xml.XmlTextWriter.WriteComment(String text)r

In Google reader, and others, the RSS stream is readable and no exceptions seem to be thrown.



The issue lies in before these two lines, located in RssToolkit.Rss.DownloadManager.TrySaveToDisk():

XmlComment comment = doc.CreateComment(string.Format(CultureInfo.InvariantCulture, "{0}@{1}", utcExpiry.ToBinary(), url));
doc.InsertBefore(comment, doc.DocumentElement);

The URL contains "--" and thus has to be escaped before creating the XML comment, then unescaped there after.


To fix this, surround the XmlComment line with the following string replace commands:

url = url.Replace("--", "$$$$");
XmlComment comment = doc.CreateComment(string.Format(CultureInfo.InvariantCulture, "{0}@{1}", utcExpiry.ToBinary(), url));
url = url.Replace("$$$$","--");



Created Issue: about use other context.Response.ContentType to Output [27954]

Fri, 02 Jul 2010 15:24:16 GMT

fix File:
AspNetRssToolkit-V2.0-Sources\RssToolkit\Rss\RssHttpHandlerBase.cs

ex. In Your
protected override void PopulateRss(string rssName, string userName)

you can use :

ContentType ="application/xhtml+xml";



Created Issue: Cannot handle redirect from HTTP/HTTPS protocols to other dissimilar ones. [27090]

Tue, 18 May 2010 01:34:20 GMT

I'm using the RSS Tookit datasource with a feed from Wordpress.com. It works for some requests but then I start getting this exception: "Cannot handle redirect from HTTP/HTTPS protocols to other dissimilar ones." I can catch the exception but what is causing it?

Inner exception: {"Invalid URI: The hostname could not be parsed."} System.Exception {System.UriFormatException}
at System.Uri.CreateThis(String uri, Boolean dontEscape, UriKind uriKind)\r\n
at System.Uri.CreateUri(Uri baseUri, String relativeUri, Boolean dontEscape)\r\n
at System.Uri..ctor(Uri baseUri, String relativeUri)\r\n
at System.Net.HttpWebRequest.CheckResubmit(Exception& e)



Commented Issue: Updates Needed to Fix Support for Atom Feeds [14931]

Thu, 06 May 2010 16:54:16 GMT

Symptoms when consuming Atom feeds:
- is empty
- links to the URL and not the URL

Fixes in AtomToRss20.xsl
- LINE 25: should be
- LINE 43: should be
- LINE 55: should be

Attached is a compiled version that incorporates these changes.
Comments: ** Comment from web user: mariorcm **

Thank you! Works like a charm!




Commented Issue: Updates Needed to Fix Support for Atom Feeds [14931]

Sun, 02 May 2010 04:48:20 GMT

Symptoms when consuming Atom feeds:
- is empty
- links to the URL and not the URL

Fixes in AtomToRss20.xsl
- LINE 25: should be
- LINE 43: should be
- LINE 55: should be

Attached is a compiled version that incorporates these changes.
Comments: ** Comment from web user: kayub **

It would be nice to be able to get the created date, instead of the updated date... is that possible?




Commented Issue: Media RSS Support [22252]

Fri, 19 Mar 2010 10:00:13 GMT

When I try to create a Media RSS feed the output is slightly flawed. I get tags rather than what I should get


About 'Media RSS', here is a helpful primer: http://www.webmonkey.com/tutorial/Use_Media_RSS

The problem I am experiencing is with the output of my Media RSS, which is essentially a new standard allowing multiple media artifacts (like a video and a song) to exist in one item.

The Media element looks like this:

The output from this RSS Tool Kit looks like this:

otherwise everything works perfectly! I was able to generate a class, load it up with values, but when I emit the XML I don’t get a I get rather a which just won't work.

Does anyone know if there is a version that will support output RSS in the full Media RSS standard? Anyone know anything about support for Media RSS in this RSS ToolKit?

I'm attaching a text file with; My RSS template, my ASHX code, and my flawed output. Thanks for any help!

Best Regards,
bsteinwand
Comments: ** Comment from web user: simon831 **

Have the patches and suggestions now been integrated into the main release?




Commented Issue: Cannot read author/name field in Atom rss [25942]

Tue, 02 Mar 2010 06:13:05 GMT

Hi! It looks like control have a bug. I have tried to use your control to read rss http://ainstainergroup.blogspot.com/feeds/posts/default and I couldn't read the author field. I don't really into XSLT that's why I can't solve this problem by myself. Someone, help! How I can read author/name field?
Comments: ** Comment from web user: jsmcmullen **

For my blogspot blog, I found that if I add the following to AtomToRss20.xsl, you can then read the author name (but not the email).

Add the following to the list of xsl:element listings for the "items" template:






Commented Issue: Updates Needed to Fix Support for Atom Feeds [14931]

Tue, 02 Feb 2010 22:46:26 GMT

Symptoms when consuming Atom feeds:
- is empty
- links to the URL and not the URL

Fixes in AtomToRss20.xsl
- LINE 25: should be
- LINE 43: should be
- LINE 55: should be

Attached is a compiled version that incorporates these changes.
Comments: ** Comment from web user: Regulus132 **

Thanks so much to the people posting the comments below. After making the changes in the comments, Atom feeds worked.




Created Issue: Cannot read author/name field in Atom rss [25942]

Thu, 14 Jan 2010 10:40:32 GMT

Hi! It looks like control have a bug. I have tried to use your control to read rss http://ainstainergroup.blogspot.com/feeds/posts/default and I couldn't read the author field. I don't really into XSLT that's why I can't solve this problem by myself. Someone, help! How I can read author/name field?



Commented Issue: RssHttpHandlerBase does not generate RSS/Atom feeds that are recognized by FireFox [20988]

Fri, 18 Sep 2009 00:41:59 GMT

I made changes to RssXmlHelper inorder to fix the generated RSS so that it would be properly identified by Firefox: public static string ToRssXml(T rssDocument) where T : RssDocumentBase { if (rssDocument == null) { throw new ArgumentNullException("rssDocument"); } MemoryStream output = new MemoryStream(); XmlSerializer serializer = new XmlSerializer(typeof(T)); XmlWriterSettings settings = new XmlWriterSettings() { Encoding = new UTF8Encoding() }; XmlWriter writer = XmlWriter.Create(output, settings); serializer.Serialize(writer, rssDocument); output.Flush(); output.Seek(0, SeekOrigin.Begin); StreamReader reader = new StreamReader(output); return reader.ReadToEnd(); }the problem is that by default XmlWriter generates UTF-16 and Firefox only identifies it when it is generated with UTF-8.Also to get Atom to work I had to do 2 things:Modify RssXmlHelper.cs (Line 351): public static string DoXslTransform(string inputXml, Stream xslResource) { MemoryStream output = new MemoryStream(); XmlWriterSettings settings = new XmlWriterSettings() { Encoding = new UTF8Encoding() }; XmlWriter outputWriter = XmlWriter.Create(output, settings); ///TODO Make the culture an argument using (StringReader stringReader = new StringReader(inputXml)) { XPathDocument xpathDoc = new XPathDocument(stringReader); XslCompiledTransform transform = new XslCompiledTransform(); using (XmlTextReader styleSheetReader = new XmlTextReader(xslResource)) { transform.Load(styleSheetReader); transform.Transform(xpathDoc, null, outputWriter); } } output.Flush(); output.Seek(0, SeekOrigin.Begin); StreamReader reader = new StreamReader(output); return reader.ReadToEnd(); }modify Rss20ToAtom.xsl:Line 2: I added the xmlns.There may be more changes required, but these are the ones I have run across so far.Comments: ** Comment from web user: PHeonix25 ** The other, quicker and easier solution that I have come up with is to remove the encoding parameter from the final document.i.e.: HttpContext.Current.Response.Write(RSS.ToXml(DocumentType.Rss, ns).Replace("encoding=""utf-16""", String.Empty))[...]