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 7127951
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T11:05:13+00:00 2026-05-28T11:05:13+00:00

I have created one WCF service, in which I am reading the msn whether

  • 0

I have created one WCF service, in which I am reading the msn whether feeds and new feeds through HttpWebRequest and HttpWebResponse using C# coding. When I execute the service in my local PC its working fine and getting the feeds properly, not only in my system in allmost all our network systems too. I am using the CredentialCache.DefaultNetworkCredentials assigning as the default network credentials to the HttpWebRequest proxy credentials and also giving HttpWebRequest.DefaultWebProxy for the proxy of HttpWebRequest. Everything is working fine in my pc. And when I install the service in our server pc to the Windows services and start the service, for every time its throwing an unexpected error as follows

System.Net.WebException: The remote server returned an error: (403) Forbidden.
   at System.Net.HttpWebRequest.GetResponse()

I am unable to fix this bug in my server application. By copying the uri that I am requesting in my service, to a browser its getting the feeds in the server pc. But why its throwing an exception when running through a windows service (services.msc) ?? Hope any one can help me to solve this problem.

EDIT:

Actually, before I tried by giving the proxy username and password for proxy credentials and also specified proxy address through config entries, at that time it was working fine. But our plan is to remove the burden of providing the proxy ip address, username, password for every time. So, we planned to give it through default network credentials that are saved in system to bypass the proxy with the above given steps.

  • 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-05-28T11:05:14+00:00Added an answer on May 28, 2026 at 11:05 am

    Do you have a proxy server set up in your company that requires authentication?

    Try running the service using you identity instead of the built-in ones (Network Service, Local System) and see if that helps.

    EDIT:

    I guess it could depend how the proxy is configured but to use the default proxy settings you might need the service to run under a domain account having those properties correctly set. As a good practice use a dedicated service account instead of your own, of course.

    Also you might want to take a look how to configure proxy in the config file instead of hard coding it.

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

Sidebar

Related Questions

I have created one WCF service , which is working fine, now i want
i have a WCF service which Monitors a Particular Drive and Creates a New
I am developing a wcf service . I have created two dll's one for
I have created a web service which has a couple of methods developed using
I have written a REST Service in WCF in which I have created a
I have created a WCF Publish/Subscribe service using WSDualHTTPBinding. It allows a server application
I have created a simple WCF (.NET 3.5) service which defines 10 contracts which
I have created a WCF Data Service and using it in a web application
I have created a new WCF service library type project. I have created a
I have created one table using the below command: create table Table1( Id int

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.