Professional Documents
Culture Documents
Summary
The RSS toolkit includes support for consuming as well as publishing RSS feeds in
ASP.NET applications. Features include:
• RSS Data Source control to consume feeds in ASP.NET applications
o Works with ASP.NET data bound controls
o Implements schema to generate columns at design time
o Supports auto-generation of columns at runtime (via
ICustomTypeDescriptor implementation)
• Caching of downloaded feeds both in-memory and on-disk (persisted across
process restarts)
• Generation of strongly typed classes for RSS feeds (including strongly typed
channel, items, image, handler) based on a RSS URL (the toolkit recognizes RSS
and RDF feeds) or a file containing RSS definition. Allows programmatically
download (and create) RSS channels using strongly-typed classes. The toolkit
includes:
o Stand-alone command line RSS compiler
o Build provider for .rssdl file (containing the list of feed URLs)
o Build provider for .rss file (containing RSS XML)
• Support for generation of RSS feeds in ASP.NET application including:
o RSS HTTP handler (strongly typed HTTP handlers are generated
automatically by the build providers) to generate the feed.
o RSS Hyper Link control (that can point to RSS HTTP handler) to create
RSS links
o Optional secure encoding of user name into query string to allow
generation of personalized feeds
• Set of classes for programmatic consumption and generation of RSS feed in a
late-bound way, without using strongly types generated classes
The toolkit is packaged as an assembly (DLL) that can be either placed in GAC or in
‘bin’ directory of a web application. It is also usable from client (including WinForms)
applications.
RSS Toolkit works in Medium Trust (RssToolkit.dll Assembly either in GAC or in ‘bin’)
with the following caveats:
• If the ASP.NET application consumes RSS feeds, the trust level must be
configured to allow outbound HTTP requests.
• To take advantage of disk caching, there must be a directory (configurable via
AppSettings["rssTempDir"]) where the trust level policy would allow write
access. However, disk caching is optional.
sources/
build.bat to build the binaries. Note: if binaries are re-built then web.config file
(and reference directive in pages) in the sample applications need to be updated to
change the PublicKeyToken in the assembly reference.
sources/toolkit/
sources for RssToolkit.dll
sources/rssdl/
sources for Rssdl.exe, the command line RSS compiler
samples/
sample ASP.NET application both consuming and publishing RSS feeds
Scenario walkthroughs
The sample places RssToolkit.dll in GAC (one way to install it into GAC is to run
“gacutil –i RssToolkit.dll”. The toolkit assembly can also be placed into ‘bin’ directory.
To add RSS controls to the VS toolbox, select ‘Choose Items…’ and ‘Browse…’ to
RssToolkit.dll.
---