TheEagle:I fixed this type error(Per to Pre) it is strange why didn't the compiler notify me for it?.
The
compiler doesn't care what you call a method. The only reason we use
Page_PreRender in this case is so that the runtime can use the
AutoEventWireup to connect this so-named method to the PreRender event
behind the scenes. If you wanted, you could instead use a delegate to
map the page's PreRender event to a method with any name you choose,
like protected void ThisIsMyPreRenderMethodBlahBlahBlah(object sender, Eventargs e). The compiler has no way of knowing what your intention is, so it doesn't check.
Your code seems okay to me. But, for some reason, it is throwing the ApplicationException you set up:
if (this.RssUrl.Length == 0)
throw new ApplicationException("Rss url cannot be null!");
This means it is seeing a Length of 0 in your RssUrl.
If it were me, I'd first try running the application straight from the download. That should definitely work.
Then, debug through the "working" code line by line, so you can see how it executes. It might help to set a Watch on RssUrl.Length.
Then, do exactly the same in your own code, and see how the program execution differs.
The big advantage we have in debugging this app is that we have a 100% certified working version we can always refer to.
// ******************************if (this.PostHelpedYou)
{
MarkAsAnswer();
}