473,434 Members | 1,834 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,434 software developers and data experts.

Getting HTTP 400 errors with multithreaded webservice calls through an authenticating ISA proxy

Hi,
In my application which has two or more threads calling web
service or just HttpWebRequest I am seeing some HTTP 400 errors retrun
in the response. All the calls are going through the same ISA proxy
the connections to which must be authenticated. The 400 error are
comming fron the wed server back through the proxy.

When I Sniff the connections I can see that the http message that is
causing the issue is one that is part of the challange respons
messages used to authenticate with the ISA proxy server. However it is
being sent to the ISA proxy server over a connection that is already
authenticated. As a result it is being forwarded on to the web server
which returns the 400 error.

The issue seems to be that when an existing authenticated connection
exsit and an atttempt is made to create another connection to the
proxy server the following can happen.
1. The first connection exist and is authenticated
2. The second connection is created and a request
without any authenication credentials is sent to the proxy
3. The Proxy reponses on second connection with a
407 that authentication is required.
4. Now the client send the request with Negotiate
authentication but over the first connection that is already
authenticated.
5. Now a HTTP 400 error is return in the response
on the first connection. This comes from the web server as it is not
expecting an proxy authentication.

Step 4 should (and usually is) sent over the second connection, which
would then continue with the several challange respone messages
authenticating the connection.

Notes:
1. With keep-alives ON this error occurs only a hand full of time a
day, while with keep-alive OFF it will happen within a couple of
minutes.
2. I am using .Net 2.0
3. Request are sent once a second

Has anyone seen this issue before? Is it an issue with how the
HttpWebRequest choose connection fron some http connection pool?

Jul 31 '07 #1
1 4309
Hi,
In my application which has two or more threads calling web
service or just HttpWebRequest I am seeing some HTTP 400 errors retrun
in the response. All the calls are going through the same ISA proxy
the connections to which must be authenticated. The 400 error are
comming fron the wed server back through the proxy.

When I Sniff the connections I can see that the http message that is
causing the issue is one that is part of the challange respons
messages used to authenticate with the ISA proxy server. However it is
being sent to the ISA proxy server over a connection that is already
authenticated. As a result it is being forwarded on to the web server
which returns the 400 error.

The issue seems to be that when an existing authenticated connection
exsit and an atttempt is made to create another connection to the
proxy server the following can happen.
1. The first connection exist and is authenticated
2. The second connection is created and a request
without any authenication credentials is sent to the proxy
3. The Proxy reponses on second connection with a
407 that authentication is required.
4. Now the client send the request with Negotiate
authentication but over the first connection that is already
authenticated.
5. Now a HTTP 400 error is return in the response
on the first connection. This comes from the web server as it is not
expecting an proxy authentication.

Step 4 should (and usually is) sent over the second connection, which
would then continue with the several challange respone messages
authenticating the connection.

Notes:
1. With keep-alives ON this error occurs only a hand full of time a
day, while with keep-alive OFF it will happen within a couple of
minutes.
2. I am using .Net 2.0
3. Request are sent once a second

Has anyone seen this issue before? Is it an issue with how the
HttpWebRequest choose connection fron some http connection pool?
Hi,
It looks like you need to install this hotfix might help you out:

http://support.microsoft.com/?kbid=924638

Your problem was probably happening because you weren't able to set the KeepAlive property to false when you're using the HTTP adapter to post a message

BizTalk Utilities - Frustration free BizTalk Adapters
http://www.topxml.com/biztalkutilities
Sep 26 '07 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: elora_c | last post by:
I'm making a call to a webservice from my ASP.NET page. The web application has anonymous access turned off and Integrated Windows auth turned on. The web.config has <identity impersonate=true>. ...
2
by: Miguel | last post by:
Hi, I'm developing an application in C# with Windows Forms for my company that is similar to the MSN Messenger. This application uses a webservice for registering users, etc... and as 2...
8
by: Tim Reynolds | last post by:
Our .Net application calls a web method of aplpication 2 that resides on their Apache server. When I as a developer C#, Studios 2003, make the call to their web method from my desktop, I receive no...
1
by: Jeevan | last post by:
Hi , I am working on developing an ASP.NET server control that is based on AJAX and need to call a webservice on a remote domain. To avoid the security warning from IE , I created a proxy...
6
by: utnemisis51 | last post by:
Hi, I'm trying to include some user credentials for accessing a remote webservice. The remote location requires that I use Basic authentication, which means, from browsing around, I need to...
1
by: ad | last post by:
When we new a web Service, the default in IIS is Allow Anonymous and Integrated Windows Authentication , we just use : WebService.webClass myWC= new WebService.webClass(); and then we can access...
1
by: intrepid_dw | last post by:
All: I have prepared a .NET 1.1 client application that consumes a remote, public web service. All the functions work as expected, and, in general, the application has been successful for my...
0
by: jocbor | last post by:
Hi! We are calling a webservice in a third party application for integration purposes. The scenario is that messages arrive on msmq. We have a windows service (using a domain account)...
2
by: stormogulen | last post by:
Hi! I'm having some problems figuring out how to organize the different tiers of an application using a webservice. The bottom layer is the DAL, and some of the objects in the DAL, I would...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
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,...
0
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...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
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...
0
tracyyun
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...
0
isladogs
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...
0
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...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.