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...Provider and Extension ForumsProvider and Extension ForumsAuthenticationAuthenticationAD authentication breaks the rss news feedsAD authentication breaks the rss news feeds
Previous
 
Next
New Post
9/13/2006 8:15 PM
 

ok, this problem occurs when you have ad intergrated into the DNN, basically the rss news feed can no longer read the feeds as it comes up with a 401 unauthrized access error.
comment out the line shown below in the web.config file and it works fine.

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

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 'Net.CredentialCache.DefaultCredentials

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

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

Dim reader As XmlTextReader = New XmlTextReader(responseStream)

'Dim reader As New XmlTextReader(strURL)

'return a new DataSet

Dim ds As DataSet = New DataSet()

ds.ReadXml(reader)

Return ds.Tables(2)

End Function

</script>

not really understand what is happening here im hoping someone can let me know if im wasting my time try to get this to work using code like above and if this is something that maybe able to be fixed?

Its a real shame because in an intranet envorment a rss news feed and ad authentication are both very important functions.

But hopefully there is a solution 

 
New Post
9/14/2006 6:06 AM
 
Hmmm - I am running DNN 3.2.2 with Ad and I have several Rss news feeds on my site, and they work just fine.  I've used both the Rss reader that comes with DNN and Bring2Mind's RssXtra. I didn't do anything special to my AD or to my RSS feeds to make them work.

Here is one of the Rss feeds I am subscribing to, in case you want to make sure it isn't something about the feeds you are using. http://www.missingkids.com/missingkids/servlet/XmlServlet?act=rss&LanguageCountry=en_US&orgPrefix=NCMC&state=FL


 
New Post
9/27/2006 5:18 PM
 
Its only local feeds, Im using the NukeNews module which i add news to and then the DNN rss feed reads the feed from the module.

I tried alot of things and gave up in the end.

What i did instead is develop a aspx page to reads the headings and postdate that are not archived straight out of the NukeNews DB table and bind it to a datalist, then iframe it in DNN, works for me!!
 
Previous
 
Next
HomeHomeDNN Open Source...DNN Open Source...Provider and Extension ForumsProvider and Extension ForumsAuthenticationAuthenticationAD authentication breaks the rss news feedsAD authentication breaks the rss news feeds


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