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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T03:10:54+00:00 2026-06-15T03:10:54+00:00

I have a connection to a web service with an option to add proxy

  • 0

I have a connection to a web service with an option to add proxy details. This works fine. However, it seems to fail when the proxy is not just an address, but and address with a file name… for example;

myproxy.com/proxypac.asp

It is this filename at the end that seems to be giving me issues. I am initialising my WebProxy as such;

System.Net.WebProxy wp = new System.Net.WebProxy(location.ProxyAddress, location.ProxyPort);

Can anyone offer any pointers?

  • 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-15T03:10:56+00:00Added an answer on June 15, 2026 at 3:10 am

    Have you tried :

    WebProxy proxy = new WebProxy(@"http://myproxy.com/proxypac.asp");
    

    Or

    WebProxy proxy = WebRequest.GetSystemWebProxy();
    

    A workaround would be to open your file and check its content to see the proxy adress and port you get.

    If you download your myproxy.com/proxypac.asp file it should look like this :

       function FindProxyForURL(url, host) {
          // our local URLs from the domains below example.com don't need a proxy:
          if (shExpMatch(url,"*.example.com/*")) {return "DIRECT";}
          if (shExpMatch(url, "*.example.com:*/*")) {return "DIRECT";}
    
          // URLs within this network are accessed through 
          // port 8080 on fastproxy.example.com:
          if (isInNet(host, "10.0.0.0",  "255.255.248.0"))    {
             return "PROXY fastproxy.example.com:8080";
          }
    
          // All other requests go through port 8080 of proxy.example.com.
          // should that fail to respond, go directly to the WWW:
          return "PROXY proxy.example.com:8080; DIRECT";
       }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a Web Service ( model-layer ) which communicates with Database. This module
I have some controllers that require a web service connection (an instance of MS
I have a pool of MySQL connections for a web-based data service. When it
I have an ASP.NET website that is contacting a webservice. Everything works fine connecting
In my applications web.config file I have a connection string stored. I encrypted it
Is it possible to have a bi-directional web part connection? I am aware that
I have to make a connection to an XMLRPC site from a web application,
I have recently changed my web app to create a database connection per command
I am using a web service that returns JSON data. test.com/incident.do?JSON&sysparm_action=getRecords Loading this URL
In sharepoint , i have to create a web application that has an option

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.