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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 16, 20262026-05-16T20:19:10+00:00 2026-05-16T20:19:10+00:00

Is it possbile to use the windows login credential for proxy authentication using C#.

  • 0

Is it possbile to use the windows login credential for proxy authentication using C#.

I have a facebook application, which calls the facebook methods. During every facebook call, it gives an error “407: proxy authentication required”

The following code will allow the user to set the proxy :-

WebProxy oWebProxy = new System.Net.WebProxy(ProxyServer, ProxyPort);       
oWebProxy.Credentials = new NetworkCredential(ProxyUser,ProxyPassword,ProxyDomain);
oserv.Proxy = oWebProxy; 
oserv.Credentials = new NetworkCredential(theusername, thepassword); 

But, is there any other way of doing the same thing without hardcoding my company’s login credentials.

  • 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-16T20:19:10+00:00Added an answer on May 16, 2026 at 8:19 pm

    You can use :

    oWebProxy.Credentials = System.Net.CredentialCache.DefaultCredentials;
    

    If it still does not solve your problem, then please refer to the site : http://support.microsoft.com/kb/813834

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

Sidebar

Related Questions

I have a Sql Server that uses Windows Authentication. I want to connect to
I have programmed a Windows Service in C# which should connect to an SQL-Server
Is there a Windows application that I could use to simply paste the HTML
I am using PHP and Mysql for developing an application. we have two copies
Is it possible to use an UnhandledException Handler in a Windows Service? Normally I
It's possible, but is it appropriate to use SHFileOperation within a Windows service? All
I have recently started looking into Google Charts API for possible use within the
I'm writing software in VB .NET (2005) which uses the Windows user information as
I have requested to fix login problem on the classic asp site. Configuration is
In Windows, I use PuTTY to log in a Linux-based remote server via SSH.

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.