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 Feedserror on newsfeederror on newsfeed
Previous
 
Next
New Post
5/1/2008 3:07 PM
 

i am trying to set up a newsfeed i have put in the url and when i click on update i get the following error

News Feed Is Not Available At This Time. Error message:Request for the permission of type 'System.Net.WebPermission, System, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' failed.

what is causing this?

 
New Post
5/10/2008 9:52 AM
 

Hi Randy, I have tried looking at this error as I was getting it as well.  I found that there is a line of code in the news module I was getting an exception on that was resulting in the very same error.  There may be better forum information somewhere else, but perhaps this is clue for you to do some more research.  The line is highlighted below.  This is from RssModule.ascx.vb.  My sense is one of two things.  Either there is a setting in webconfig that is forbidding me from setting the  proxy member of the HttpWebRequest object, or it's a call to some low level feature that my hosting provider is preventing modification of.   I'm just a hack who kind of knows how to use a debuger, so I could be totally off base on this.  One solution, that may work depending on your setup, remove your proxy entry if it has been set inadvertantly, as this section will be skipped if your proxy setting is blank.

' make remote request
                            Dim wr As HttpWebRequest = CType(WebRequest.Create(xmlsrc), HttpWebRequest)
                            If UserAccount <> "" Then
                                wr.Credentials = New NetworkCredential(UserAccount, Password, DomainName)
                            End If

' set proxy server
                            If Convert.ToString(PortalSettings.HostSettings("ProxyServer")) <> "" Then
                                wr.Proxy = New WebProxy(Convert.ToString(PortalSettings.HostSettings("ProxyServer")), Convert.ToInt32(Convert.ToString(PortalSettings.HostSettings("ProxyPort"))))
                                ' set the credentials for an authenticated proxy
                                If Not Convert.ToString(PortalSettings.HostSettings("ProxyUsername")).Equals("") Then
                                    wr.Proxy.Credentials = New NetworkCredential(Convert.ToString(PortalSettings.HostSettings("ProxyUsername")), Convert.ToString(PortalSettings.HostSettings("ProxyPassword")))
                                End If
                            End If

 
New Post
5/20/2008 12:47 AM
 

ok there is a simple fix to this actually, there is nothing wrong with the code. what is wrong is on a default setup of dnn there is a proxy put in for the host and that will really mess things up. so login using your superuser id then go to host>host settings go down to advanced setting and open proxy settings remove everything that is there and it will work fine.

 
Previous
 
Next
HomeHomeDNN Open Source...DNN Open Source...Module ForumsModule ForumsNews FeedsNews Feedserror on newsfeederror on newsfeed


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