I have a vb.net application that uses web services.
everything was working great until i installed at a client that uses a linux
proxy server running squid
each user is required to authenicate when the access the net. Using IE they
are prompted for username and password and go right out.
When i specify the credentials and try to connect the application it waits
for 100 seconds, ironically that is the timeout setting.
When it comes back the connection is made then everything works as normal
if i back off the time out to 1 second it comes back and works fine. my
question is what is going on during this connection phase and how can i stop
it. something just doesn't seem right. setting the time out to 1 second is
sure to cause me problems in the future when i am issuing SQL commands
instead of just a test to see if the web server is available.
i have built a test app that takes username, password, port and and ip
address and have tried to find a combination that works
a code sample is below
hope this all makes sense
thanks for any and all help
If IsNumeric(sProx yPort) Then
scProxy = New System.Net.WebP roxy(sProxyServ er,
CInt(sProxyPort ))
Else
scProxy = New System.Net.WebP roxy(sProxyServ er, True)
End If
If sProxyDomain.Le ngth > 0 Then
scProxy.Credent ials = New
System.Net.Netw orkCredential(s ProxyUserName, sProxyPassword, sProxyDomain)
Else
scProxy.Credent ials = New
System.Net.Netw orkCredential(s ProxyUserName, sProxyPassword)
End If
'
' change the way we setup based on check box setting
'
If Me.CheckBox1.Ch ecked Then
System.Net.Glob alProxySelectio n.Select = scProxy
scWSDB.Proxy = scProxy ' as new system.net.webp roxy
scWSDB.Credenti als = scProxy.Credent ials
Else
scWSDB.Proxy = scProxy ' as new system.net.webp roxy
scWSDB.Credenti als = scProxy.Credent ials
End If
'************** **************
--
greg weber
autoeforms 0 1002 This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: Jonas Cord |
last post by:
Hi, I'm trying to learn proxy classes in C++ so I've written the
following code, trying to modify an example given in Deitel & Deitel's
C++ book.
I am trying to "hide" details of the original class (employee.h)
through a proxy class (employeeproxy.h).
What am I doing wrong? Please help... I will be grateful forever.
employee.h
----------
|
by: Wild Wind |
last post by:
Hello all,
I apologise in advance for the long windedness of
this post, but I feel that if I am going to get any
solution to this problem, it is important that I present
as much information that will be useful in diagnosing
the problem.
I have an application which calls a method of a web service
that we host remotely. I have deployed the application to a
|
by: Tony Stephens |
last post by:
Hi,
I've created a small forms based application in c# to test a vendor's
product and the web service interface that it exposes. We have deployed two
instances of the vendor product one which has an unprotected (no
authentication) interface and one that is protected using HTTP basic
authentication.
I can invoke methods on the unprotected instance and everything's fine. When
I attempt to invoke methods on the protected instance the...
|
by: Pro1712 |
last post by:
Hello,
I need to write a simple proxy server.
What I want to do is to use HttpListener to get requests from the
browser, add some proxy information and some other stuff and send the
request to the internet.
Then I want to send the answer back to the browser...
Sounds simple...
But how can I do this?
|
by: rcp |
last post by:
Hi all,
I've read all posts from all existing threads and none of them worked
to solve my problem, although its exactly the same. I'll try to
explain my case and see if a kind soul could help me out:
I've a win32 service in C# on a client machine A, which accesses a WS
(C#) on a server machine B (hosted on an IIS)
Case 1:
If I try to add the WSDL for the WS through VS2005, the 'Discovery
| |
by: dan kisting |
last post by:
Hello,
I am writing a c# application which connects to web services through a
Proxy Server. I am running a local Proxy Host to simulate what the
user is seeing, and his problem is he is getting a 407 error, Proxy
Authentication Required. I am applying the credentials and I realize I
am probably just missing something. Here is my code, do I need any
modifications on the Web Service?
WebService service = new WebService();
|
by: dan kisting |
last post by:
Hello,
I am writing a c# application which connects to web services through a
Proxy Server. I am running a local Proxy Host to simulate what the
user is seeing, and his problem is he is getting a 407 error, Proxy
Authentication Required. I am applying the credentials and I realize I
am probably just missing something. Here is my code, do I need any
modifications on the Web Service?
|
by: chandru1782 |
last post by:
Dear friends,
I am trying to use CPAN for installing some perl modules. i am using a ubuntu system, which has internet connection through lan and authenticated proxy.
when trying to install cpan.pm , it gives the following error, can any one help,
You have no /root/.cpan/sources/MIRRORED.BY
I'm trying to fetch one
CPAN: LWP::UserAgent loaded ok
Fetching with LWP:
|
by: =?Utf-8?B?TGVuc3Rlcg==?= |
last post by:
A C# (.NET 2) application which uses the System.Net.HttpWebRequest object to
request a resource over HTTPS is failing following the installation of a new
proxy server on our internal network with 407 Proxy Authentication Required.
The same request through the old proxy succeeds.
The same request to an HTTP address through the new proxy succeeds.
Also, the request succeeds when forced to use Basic authentication but fails
on NTLM.
|
by: marktang |
last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look !
Part I. Meaning of...
|
by: Hystou |
last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it.
First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
| |
by: jinu1996 |
last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth.
The Art of Business Website Design
Your website is...
|
by: tracyyun |
last post by:
Dear forum friends,
With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
|
by: agi2029 |
last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own....
Now, this would greatly impact the work of software developers. The idea...
|
by: isladogs |
last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM).
In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules.
He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms.
Adolph will...
|
by: TSSRALBI |
last post by:
Hello
I'm a network technician in training and I need your help.
I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs.
The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols.
I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
|
by: 6302768590 |
last post by:
Hai team
i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
| |
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
| |