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

  • Home
  • SEARCH
  • 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 6136605
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T17:37:27+00:00 2026-05-23T17:37:27+00:00

I have a Windows Form app and it keeps returning a 407 Proxy Server

  • 0

I have a Windows Form app and it keeps returning a 407 Proxy Server error when I try and return a JSON string from the Google servers. I have been led to believe that all I need to do is set the Security Context correctly by setting the WebRequest Credentials as “DefaultCredentials” or “DefaultNetworkCredentials”. However, all the methods I have used (see subject tittle) have always returned “”.

The annoying thing is that the app works perfectly when running on my machine, published and through VS 2008, but when other users try, it generates the below errror:

System.Net.WebException: The remote server returned an error: (407) Proxy Authentication Required.

at System.Net.HttpWebRequest.GetResponse()

Any ideas any one, before I go bald!

Thanks in advance

C

EDIT : Some code as requested. I have tried quite a few variations of the following, none seem to work.

request.Proxy.Credentials = CredentialCache.DefaultCredentials;
HttpWebRequest.Proxy.Credentials = CredentialCache.DefaultCredentials;

OR
string url = “http://www.blah.com”;
Uri uri = new Uri(url);
ICredentials credentials = CredentialCache.DefaultCredentials;
NetworkCredential credential = credentials.GetCredential(uri, “Basic”);

OR

NetworkCredential credential = CredentialCache.DefaultNetworkCredentials;

INTO

request.Proxy.Credentials = CredentialCache.DefaultCredentials;

OR

request.Credentials = credential

I have also trid both

.DefaultCredentials

And

.DefaultNetworkCredentials
  • 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-23T17:37:27+00:00Added an answer on May 23, 2026 at 5:37 pm

    The credentials returned by DefaultNetworkCredentials represents the authentication credentials for the current security context in which the application is running. For a client-side application, these are usually the Windows credentials (user name, password, and domain) .

    Probably the user who is running the application doesn’t have the rights on the proxy

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

Sidebar

Related Questions

I have a Windows Form app written in C#. Its job is to send
I have a windows form app written in C#. the main_form class instantiates an
This is the situation. I have a windows form app that uses an access
I have a pretty basic windows form app in .Net. All the code is
I have an In-house windows form app that I would like to use Spell
I have a simple .NET 2.0 windows form app that runs off of a
JI have written a .NET C# Windows Form app in Visual Studio 2008 that
I have a Windows Form application. Version 1 of my app has been released
I have a Windows Form app (4.0) that calls a Web Service (WCF) but
I have a windows app which is just a form with a timer control

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.