Products

Solutions

Resources

Partners

Community

Blog

About

QA

Ideas Test

New Community Website

Ordinarily, you'd be at the right spot, but we've recently launched a brand new community website... For the community, by the community.

Yay... Take Me to the Community!

Welcome to the DNN Community Forums, your preferred source of online community support for all things related to DNN.
In order to participate you must be a registered DNNizen

HomeHomeDNN Open Source...DNN Open Source...Module ForumsModule ForumsNews FeedsNews FeedsDNN version 4.9 News Feeds not workingDNN version 4.9 News Feeds not working
Previous
 
Next
New Post
11/24/2008 4:13 PM
 

I have been unable to get the News Feeds on version 4.9 to work period.  I have tried news feeds from Google, Msn, and Slashdot and multiple XSL files.  If you have gotten the 4.9 version to work can you post back the url to the RSS you got to work and the XSL you used on the page?  Thanks.

 
New Post
11/26/2008 12:07 PM
 

This is a followup.  If your website is behind a Proxy server and your RSS feed is on the other side of that proxy server this module will not work. 

A work around  is that you can copy the RSS feed to a local file and host it on your website and then this module will work but you will have to pull the file down and save it locally whenever you want to update the news feed.

Recommended module code change:  Add the following code to the module get the source XML thru a proxy server and allow the XML to be saved to a specified file.

 

Dim mystring As String = ""

 

'get the RSS feed from an HTMLWebRequest object.

 

 

objRequest = System.Net.HttpWebRequest.Create(RSSSourceTextBox.Text)

Dim objResponse As WebResponseDim objRequest As WebRequest'"http://news.google.com/?output=rss")

 

'settings for proxy.

objRequest.Proxy = WebProxy.GetDefaultProxy

objRequest.Proxy.Credentials = CredentialCache.DefaultCredentials

objResponse = objRequest.GetResponse()

 

 

Dim sr As StreamReader = New StreamReader(objResponse.GetResponseStream())'-------------

 

'Put XML into a String Variable

 

'-------------

mystring = sr.ReadToEnd()

 

'Close and clean up the StreamReader.

sr.Close()

 

'-------------

 

'Write XML to a flat file

 

'-------------

 

 

Dim fs As New FileStream("c:\testfile.XML", FileMode.Create, FileAccess.Write)'declaring a FileStream and creating a word document file named file with access mode of writing

 

 

Dim s As New StreamWriter(fs)'creating a new StreamWriter and passing the filestream object fs as argument

s.BaseStream.Seek(0, SeekOrigin.End)

 

'the seek method is used to move the cursor to next position to avoid text to be 'overwritten

s.WriteLine(mystring)

 

'writing text to the newly created file

s.Close()

objRequest =

Nothing

objResponse =

Nothing

 

 
New Post
11/26/2008 3:51 PM
 

Hi Steve,

Thanks for the research. What surprises me is that the module actually does attempt to handle the proxy. Check out the Components/DownloadManager.vb lines 146 onward (I've not copied here because FCK mangles the source code too much). Note that the code looks at DotNetNuke.Common.HostSettings("ProxyServer"). Is this set in your case or not?

Peter


Peter Donker
Bring2mind http://www.bring2mind.net
Home of the Document Exchange,
the professional document management solution for DNN
 
Previous
 
Next
HomeHomeDNN Open Source...DNN Open Source...Module ForumsModule ForumsNews FeedsNews FeedsDNN version 4.9 News Feeds not workingDNN version 4.9 News Feeds not working


These Forums are dedicated to discussion of DNN Platform and Evoq Solutions.

For the benefit of the community and to protect the integrity of the ecosystem, please observe the following posting guidelines:

  1. No Advertising. This includes promotion of commercial and non-commercial products or services which are not directly related to DNN.
  2. No vendor trolling / poaching. If someone posts about a vendor issue, allow the vendor or other customers to respond. Any post that looks like trolling / poaching will be removed.
  3. Discussion or promotion of DNN Platform product releases under a different brand name are strictly prohibited.
  4. No Flaming or Trolling.
  5. No Profanity, Racism, or Prejudice.
  6. Site Moderators have the final word on approving / removing a thread or post or comment.
  7. English language posting only, please.
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out