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 FeedsNews Feed 4.0.1 - WonNews Feed 4.0.1 - Won't work in Medium Trust environment
Previous
 
Next
New Post
3/13/2009 3:15 PM
 

Hi all,

I know there hasn't been much (any) activity from the News Feed team in this forum, but I thought I would post my query here anyway.

My webhoster has recently updated our hosting environment from Full Trust to Medium Trust.  The News Feed module was working fine before this change was made and now it won't load the news feeds.

When not logged in as an administrator (either admin or host) the module doesn't display anything at all.  When logged in as an administrator, it still doesn't show anything.  It's not until you go to edit the newsfeeds that an error is displayed.  The error reported is Feed 'http://feeds2.feedburner.com/michigan_political_report' could not be loaded. Error: Download error.

My hoster has provided me with a very temporary solution to turn Full Trust back on for selected sites and when I add this code to the web.config file for the site, the module works again.

Is it possible to have an RSS feed module work in Medium Trust with the security limitations that the Medium Trust policies impose?  If not, is there a way to get the module strong named and a PublicKeyBlob generated for it so that I can ask my hoster to make an exception for the assembly to operate in Full Trust?

I'm hoping to get an answer for this within the next week or so before the temporary fix no longer works on the site.

Thanks.

Raymond Weiler
Technical Support
Commerce Technologies International

 
New Post
4/14/2009 1:09 PM
 

Sorry Raymond I don't have a solution to this issue. I too have this issue. I can open a browser window, type in an address to a feed and I receive the XML in the window just fine. It's not formatted, but this is expected. If i use the same address in the RSS module, I receive the same error as the one you stated. I have configured my site to use Full Trust and I still have this issue. Can someone help us????

David S. Davis

Data Management Specialist
BASF Corp, Raleigh, NC

 
New Post
4/15/2009 9:28 AM
 

Is it possible to have an RSS feed module work in Medium Trust with the security limitations that the Medium Trust policies impose?

The problem isn't exactly the News module.  When ASP.Net was brought out, Microsoft added more security 'features' to try to stem the tide of growing issues with certain calls, including httpwebrequests, which this module, as well as others use.  At first it wasn't really an issue because many hosts were operating in Full-Trust mode at the server level.  Then, as more folks understood the code access security model, host providers began to lock down their machines/servers.

The issue you are experiencing has long been a issue for some.  Others seek out hosts who understand the CAS issue, and have come up with other ways to negotiate security that allows httpwebrequest to function.  PowerDNN is such a site host, others exist too, you just have to ask before you commit.

So, the answer to that question is NO in the strict sense, but YES depending on your hosts knowledge and ability to work with a DNN site.

 If not, is there a way to get the module strong named and a PublicKeyBlob generated for it so that I can ask my hoster to make an exception for the assembly to operate in Full Trust?

Yes there is a way to do it, but then your host provider would need to load the assembly in GAC, which most would probably not do, since anything loaded in GAC of a machine/server gets Full-Trust, so you are back to opening up security issues.  That type of situation seems rather an unlikely solution. 
 

David -  Your issue may not even be connect to code access security.  If you are operating in a Full-Trust environment at the machine/server level, then you can get the 'download' error from many causes, which are pretty well documented in the top post on the News forum.  You cannot compare the action of the browser to render a feed with the inability of the News module to download it.  They are 2 distinct types of applications, one is operating on your machine as a windows app, and the other is a web app, which calls for different methods to use.  If you post your URL that is giving you the issue, maybe you can get further help.  My advice is to review the 'Post Your  broken feeds' post, and post your URL to it for further help.

 
Previous
 
Next
HomeHomeDNN Open Source...DNN Open Source...Module ForumsModule ForumsNews FeedsNews FeedsNews Feed 4.0.1 - WonNews Feed 4.0.1 - Won't work in Medium Trust environment


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