Music    Funny Photos    Global Warming    War in Iraq    Rants    Humor    Odd News    Funny Videos    Illegal Alien Invasion    Politics


>>
Home

>>
Jack's Blog

>>
Dave's Blog

>>
Discuss

>>
Favorite Links

>>
Photo Galleries

>>
Articles

>>
Music

>>
Videos

>>
Downloads

>>
Events

>>
Jokes



Login
Register

Send Email to Jack


Copyright © 2006, 2007 Jack C Johnson, All rights reserved




Community Starter Kit Discussion Forums

Author Thread: I've fixed the vanishing RSS feeds in the Community Starter Kit
Jack
I've fixed the vanishing RSS feeds in the Community Starter Kit
Posted: Sunday, July 02, 2006 11:42 AM (CST)

It took a while to find it but here is one solution to the problem of the disappearing web service boxes. The problem lies in the file listed below in the GetServiceResponseInfo method.

 

CommunityStarterKit\Engine\Framework\Services\Components\ServiceUtility.cs

 

Here are the lines of code that are causing the problem. (Lines 458 through 460)

 

    // Don't refresh if under time limit
    if (serviceInfo.DateLastRefreshed.AddMinutes(serviceInfo.RefreshRate) > DateTime.Now)
     return null;

 

This causes the method to return a null value if the refresh rate threshold has not been reached even if the cache has already returned a null value.

 

Anyway, here is a quick fix that has corrected my disappearing web service boxes.

Just replace the above code with the following:

 

    // Don't refresh if under time limit
    if (serviceInfo.DateLastRefreshed.AddMinutes(Convert.ToDouble(serviceInfo.RefreshRate)) > DateTime.Now){
     // if the cache in null you have to recall the service
     if (responseInfo != null )
     return null;
    }

 

What I did was to prevent the GetServiceResponseInfo method from returning a null if the cache was null regardless of the last refresh time.

 

One solution may be to increase the lenght of the session state on  your web server.  By default they are set to 20 minutes which is about the time the RSS takes to disappear.  Is this a conincedence or have any of you noticed this relationship as well?

 

 



 

Life is a constant struggle, full of frustrations and challenges but eventually you find a hairstyle you like.


Most Popular Posts
  • Kofi Annan you can have my gun!
    Posted by Jack on Thursday, June 29, 2006 (CST)

  • Welcome to the H*A*M*S*T*E*R*s
    Posted by Jack on Wednesday, June 28, 2006 (CST)

  • I finally got the Community Starter Kit up and running!
    Posted by Jack on Saturday, June 24, 2006 (CST)

  •  

    Most Popular Downloads
  • Dennis Michaels sign template
    A Free political sign template!

  • Dave Thomas sign template
    The Dave Thomas political sign design template in .ai format

  • Janet Cobb Design Template
    The Janet Cobb sign template in .ai format


  • Jack Johnson's Web Log
    A personal weblog by Jack Johnson. Read my opinions, thoughts and rants and post some comments of your own.
  • Jack Johnson has joined The Walking Miracles
    I joined a southern gospel singing group about a month a ago called The Walking Miracles and I have been having the time of my life. Just being able to use the gifts the Lord has blessed me wit...


  • How's this for an Inconvenient Truth Algore?
    Now this is an Inconvenient Truth! The ten hottest years on record in the U.S., beginning with the hottest year, are: 1934, 1998, 1921, 2006, 1931, 1999, 1953, 1990, 1938 and 1939. Before the...


  • George Patton Speech on Iraq
    This is one awesome video I found on YouTube last night. I heard the speech the first time on the Mark Levin radio show . 'George' really lays out what he thinks on America, Harry Reid, politic...


  • Will El Presidente Bush and every RINO republican - Please die?
    El Presidente, For all you earnest support for the illegal aliens you have allowed to invade this country and for this amnesty bill that you and the congress are trying to ram down our throats...



    Last Refreshed 10/10/2008 8:35:29 PM
  • Home   |  Jack's Blog   |  Dave's Blog   |  Discuss   |  Favorite Links   |  Photo Galleries   |  Articles   |  Music   |  Videos   |  Downloads   |  Events   |  Jokes