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 FeedsRemote Feeds work, Local Feeds donRemote Feeds work, Local Feeds don't??
Previous
 
Next
New Post
8/22/2006 10:29 PM
 

I'm having the same problems. The solution posted above doesn't seem to apply to the issue for the majority of the people in this post (the solution was for a custom module ).

So try this on for size. Take a clean DNN portal. Add the blog module and create a blog posting (with syndication enabled). Click on the "XML" button and copy the url to that feed.

Now add a News Feed module to the page and use the XML feed to the blog as the source of the news feed. Click update. You'll see the error immediately.

Now, go back and change it to an external XML feed from another site and it will work perfectly. I've gone over and over this to make sure this wasn't something goofy on my end (like hiding the xml feed via module permissions).

This error has been present (that I know of) on DNN 4.xx (I'm working on a 4.3.4 install now trying to make this happen). In my case the error can be duplicated on the live production box and my clean localhost install.

I use this same technique on my company website blog (www.dallasnewmedia.com - right colum "recent articles") and it works perfectly. It's a DNN 3.0.3 install.


Will Ballard
Ingen Systems
 
New Post
9/7/2006 7:07 PM
 

Im looking at using DNN 3.3.4 for my companies local intranet but im getting the same errors on my rss newfeed module as you guys when im logged in as Host.
But if im not logged in as host the error is "News Feed Is Not Available At This Time. Error message:The remote server returned an error: (401) Unauthorized."

The news feed is getting the xml from NukeNews. I have posted to them and they suggested changing the trust level to full in web.config which i had done to no avail.
I have added my site tot he host file as another person suggested but this didnt help.

So i thought i would create my own rss feed in an aspx page and use an iframe but i get the follow error "System.Net.WebException: The remote server returned an error: (401) Unauthorized."
I changed the permissions on the files and folders but this didnt help.
I also tried coping the xml to an xml file and changing permissions on the file but i get the same error???

Im going to try the following the fix at the bottom this article http://support.microsoft.com/default.aspx?scid=kb%3Ben-us%3B815659 ie the xmlresolver to see if this helps, will let you know how i go....

failing that im at a loss because i have been searching the web for about a week now and cannot find any solutions :(


 
New Post
9/13/2006 8:01 PM
 

ok it looks like this problem occurs when you have ad intergrated into the DNN.

to test comment out the following line in the web.config file:

<!-- <add name="Authentication" type="DotNetNuke.HttpModules.AuthenticationModule, DotNetNuke.HttpModules.Authentication" /> -->

It will magically work!

Now i thought maybe you could pass the credentails through to read the news feed but being a beginner like me im not sure if i have got it right or if this solution will work around the issue??

I have tested the code below and it works just the same if i dont use the credentails, ie works without ad authentication but not with.

code as follows:

<script language="VB" runat="server">

Sub Page_Load(ByVal sender As Object, ByVal e As EventArgs)

recentPosts.DataSource = GetRSSFeed(http://webserver1/DotNetNuke/DesktopModules/Orizonti_NukeNews/getRSS.aspx?pid=0&tid=36&mid=465&cnt=5)

recentPosts.DataBind()

End Sub

Function GetRSSFeed(ByVal strURL As String) As DataTable

'Get the XML data

Dim resolver As XmlUrlResolver = New XmlUrlResolver()

Dim myCred As New Net.NetworkCredential

myCred = New System.Net.NetworkCredential("username", "password", "domain")

Dim myRequest As Net.HttpWebRequest = System.Net.HttpWebRequest.Create(strURL)

myRequest.PreAuthenticate = True

myRequest.Credentials = myCred

Dim myResponse As Net.HttpWebResponse = myRequest.GetResponse()

Dim responseStream As IO.Stream = myResponse.GetResponseStream()

'Dim reader As New XmlTextReader(strURL)

Dim reader As XmlTextReader = New XmlTextReader(responseStream)

'reader.XmlResolver = resolver

'return a new DataSet

Dim ds As DataSet = New DataSet()

ds.ReadXml(reader)

Return ds.Tables(2)

End Function

</script>

 

 
New Post
9/14/2006 8:07 PM
 

Well i have implemented a different approach as this whole thing has been doing my head in!!!

I have setup a control to get the title and postdate from the nukenews module table and bind it to a datalist. 

Then i just added the control to the skin im using for the front page.....works well, i now wish i would have done this ages ago!! 

 
New Post
7/11/2011 6:08 AM
 

Hi, I had the same issue some time ago, and in my case it was a firewall problem. I had no access to local HTTP port 80 and localhost.  After granting access everything worked fine.

If you wish to create a feed from your own website and post it on the same website you have to add in firewall a rule to allow your web server to access its own resources.

Hope this helps you in the future.

Ionut

 
Previous
 
Next
HomeHomeDNN Open Source...DNN Open Source...Module ForumsModule ForumsNews FeedsNews FeedsRemote Feeds work, Local Feeds donRemote Feeds work, Local Feeds don't??


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