Click here to Skip to main content
15,883,705 members
Articles / Web Development / ASP.NET
Article

RSS Technical Article

Rate me:
Please Sign up or sign in to vote.
2.11/5 (7 votes)
7 May 20072 min read 22.6K   185   14   5
This document contains the detailed features of RSS and also the description of the critical bug with RSS Feed Duplication problem in Outlook 2007 and the Fix Developed by Sankha Biswas and Srinivasa Rao Ayyala Somayajula from Wipro Technologies to resolve this.

Introduction

This document details the RSS Features, usage and Critical Fix designed and Developed by 'Sankha Biswas' and 'Srinivasa Rao Ayyla Somayajula' from Wipro Technologies.

RSS Feed Duplication Problem in Outlook 2007

Whenever a RSS Feed is getting subscribed into Outlook 2007, it starts duplicating RSS Feed Items. It is a critical issue and most of the RSS Newsreaders are facing this problem. This is not observed in IE7.

Resolution/Hot Fix we developed

Ideally each RSS Feed item must have a unique Guid and Link value, otherwise Outlook 2007 will consider it as a new feed item and will start duplicating them.

We have fixed the issue by generating unique Guid and Link value for each RSS Feed Item by hashing RSS Entry Description into corresponding Hash string (hexadecimal) and using it in Guid and Link value. And as a result the problem with "RSS Feed Duplication" in Outlook 2007 has been resolved. We kept examing the fix for one week, in different machines running under different OS's and found no more duplicate feeds.

Using the code

The fix can be used world wide for any kind of RSS implementation.
A generic Class called "RSSBuilder" will take care of generating RSS Feed Items.

Hashing algorithm we developed

/// <summary>
/// Getting the Hash of the Description to generate unique Guid
/// and Link entry for each RSS Feed Item.
/// This function Fixed the Critical Issue with RSS Feed Duplication
/// in MICROSOFT OUTLOOK 2007
/// Developed By: 'Sankha Biswas' and 'Srinivasa Rao Ayyla Somayajula'
/// from Wipro Technologies
/// </summary>
/// <param name="str"></param>
/// <returns></returns>
static public string GetMd5Hash(string strDesc)
{
// Converting the string into bytes
Encoder enc = System.Text.Encoding.Unicode.GetEncoder();

// Create a buffer large enough to hold the string
byte[] unicodeText = new byte[strDesc.Length * 2];
enc.GetBytes(strDesc.ToCharArray(), 0, strDesc.Length, unicodeText, 0, true);

// Hashing...
MD5 md5 = new MD5CryptoServiceProvider();
byte[] result = md5.ComputeHash(unicodeText);

// Building the final string by converting each byte
// into hex and appending it to a StringBuilder
StringBuilder sb = new StringBuilder();
for (int i = 0; i < result.Length; i++)
{
sb.Append(result[i].ToString("X2"));
}

// returning the hash string
return sb.ToString();
}

History

We have fixed the issue with RSS Feed Duplication in OUTLOOK 2007 by generating unique Guid and Link value for each RSS Feed Item by hashing RSS Entry Description into corresponding Hash string (hexadecimal) and using it in Guid and Link value. And as a result the problem with "RSS Feed Duplication" in Outlook 2007 has been resolved. Now it's perfectly showing unique feed Items...:)

License

This article has no explicit license attached to it but may contain usage terms in the article text or the download files themselves. If in doubt please contact the author via the discussion board below.

A list of licenses authors might use can be found here


Written By
Web Developer
United States United States
This member has not yet provided a Biography. Assume it's interesting and varied, and probably something to do with programming.

Comments and Discussions

 
GeneralMuch ado about nothing! Pin
TechieGuru10-May-07 3:33
TechieGuru10-May-07 3:33 
GeneralRe: Much ado about nothing! Pin
sankha_202510-May-07 20:23
sankha_202510-May-07 20:23 
AnswerRe: Much ado about nothing! Pin
TechieGuru11-May-07 4:54
TechieGuru11-May-07 4:54 
GeneralRe: Much ado about nothing! [modified] Pin
sankha_202513-May-07 18:14
sankha_202513-May-07 18:14 
GeneralRe: Much ado about nothing! Pin
sankha_202530-May-07 18:28
sankha_202530-May-07 18:28 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.