Hi, the RSS feed that used to work before I transferred here has stopped working. (no code changes) http://www.realtyhelpers.com Can you help? ----------------------------------------------------------------------------------------------------- I already wrote about this problem a while back. But I left it unresolved. Here is some information from that post: Hi, I display an RSS feed on my site using an XMLDataSource. I am unable to get it to work properly since I migrated to Winhost. I get this error now. (It was working fine in my previous hosting provider location) Access to the URL '/newsfeed/rss/rej_frontpage.xml' was denied in the XmlDataSource with ID 'myRssFeed' because of security settings The application is already running at Full trust. Thanks in advance.
Access to the URL '/newsfeed/rss/rej_frontpage.xml' was denied in the XmlDataSource with ID 'realestateRssFeed' because of security settings. I assume you are pulling that feed from elsewhere and not generating it yourself?
Here is the code to the RSS Feed This is ALL the code there is to display the RSS Feed. Its implemented as an usercontrol and default.aspx has an instance of this. Appsettings has a key: <add key="RealEstateRssFeed" value="http://www.realestatejournal.com/newsfeed/rss/rej_frontpage.xml"/> Within the ASCX page: (This is the complete file) <%@ Control Language="C#" AutoEventWireup="true" CodeFile="RealEstateRssFeed.ascx.cs" Inherits="RealEstateRssFeed" %> <asp:XmlDataSource ID="realestateRssFeed" runat="server" EnableCaching="false" DataFile="<%$ AppSettings:RealEstateRssFeed %>" XPath="/rss/channel/item" /> <asp:Repeater ID="rpNews" runat="server"> <HeaderTemplate> <ul> </HeaderTemplate> <ItemTemplate> <li><a href='<%# XPath("link") %>' target="_blank"> <%# XPath("title") %></a> </li> </ItemTemplate> <FooterTemplate> </ul></FooterTemplate> </asp:Repeater> <aspanel runat="server" ID="errorItem" Visible="false"> <h2> Error retreiving Real Estate Info</h2> <% =DataBindingErrMsg%> <hr /> </aspanel> The following is the complete code behind file: using System; public partial class RealEstateRssFeed : System.Web.UI.UserControl { public string DataBindingErrMsg = string.Empty; private int count = 0; protected void Page_Load(object sender, EventArgs e) { rpNews.DataSource = realestateRssFeed; try { DataBind(); } catch (Exception ex) { errorItem.Visible = true; DataBindingErrMsg = ex.Message; } } void rpNews_DataBinding(object sender, EventArgs e) { if (count > 3) return; else { count++; return; } } }
Have you contacted www.realestatejournal.com? The news feed you are accessing is there's and they should tell you exactly what is going on. They may have a firewall that is blocking us.