Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8631971
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 12, 20262026-06-12T09:17:21+00:00 2026-06-12T09:17:21+00:00

I am trying to read an rss feed from my MVC application. The code

  • 0

I am trying to read an rss feed from my MVC application. The code works fine when I run it at home, however when I run my local machine at work, or on IIS 7, it fails. I suspect that this is a proxy setting problem, however I have tried modifying the config file to use the default proxy, and in any case understood that IIS went with the IE settings – and I can connect to the internet from the webserver.

The code to access the rss feed is as follows:

    public static List<string> ReadDangerZoneFeed()
    {
        XmlReader reader = XmlReader.Create("http://rssfeedaddress.rss");
        SyndicationFeed feed = SyndicationFeed.Load(reader);

        reader.Close();

        List<string> _DangerZones = new List<string>();

        foreach (var Item in feed.Items)
        {
            _DangerZones.Add(Item.Title.Text);
        }

        return _DangerZones;
    }

The error message occurs ar the XMLReader.Create line and is “Unable to connect to the remote server”. I’d very much appreciate any advice,

Many thanks,

Jamie

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-12T09:17:21+00:00Added an answer on June 12, 2026 at 9:17 am

    It turns out all I needed to do was get the specific sites whitelisted on our company proxy. I then added the proxy details to the web.config file as per this answer Is it possible to specify proxy credentials in your web.config? and it all works fine.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm trying to read an RSS feed from Flickr but it has some nodes
I am trying to read data from an RSS feed which has 25 items.
How to call System.ServiceModel.Syndication.SyndicationFeed from PowerShell? I was trying to read RSS feed from
I'm trying to read a feed from Yahoo Pipes into a Silverlight Application. I
I'm trying to read a XML-RSS-Feed from a website. Therefore I use a async
I'm trying to find a library that can read a given RSS/Atom feed, and
I am trying to read some XML code from a website, and am having
I am trying to generate a full rss feed, however when loading the feed
I am trying to parse an RSS feed with feedparser. The below code snipped
I'm trying to read an rss feed using powershell and I can't extract a

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.