I'm developing a ASP.Net 2.0 web service. I am using windows XP sp2 version 5.1
When testing the service, I created a number of threads that access the web
service at the same time. When I increase the number of threads to more than
10, I get the errrors below. I've found out that the exceptions are thrown
before it gets to my program.
I suspect that I have to do some configuration but I need help to find out
where to start looking.
------- Errors -----------
"The request failed with HTTP status 403: Access Forbidden"
at
System.Web.Services.Protocols.SoapHttpClientProtocol.ReadResponse(SoapClientMessage message, WebResponse response, Stream responseStream, Boolean asyncCall)
at System.Web.Services.Protocols.SoapHttpClientProtocol.Invoke(String
methodName, Object[] parameters)
--------
or
--------
System.Net.WebException: The underlying connection was closed: An unexpected
error occurred on a receive. ---> System.IO.IOException: Unable to read data
from the transport connection: An established connection was aborted by the
software in your host machine. ---> System.Net.Sockets.SocketException: An
established connection was aborted by the software in your host machine
at System.Net.Sockets.Socket.Receive(Byte[] buffer, Int32 offset, Int32
size, SocketFlags socketFlags)
at System.Net.Sockets.NetworkStream.Read(Byte[] buffer, Int32 offset,
Int32 size)
--- End of inner exception stack trace ---
at System.Net.ConnectStream.Read(Byte[] buffer, Int32 offset, Int32 size)
at System.Net.HttpWebRequest.MakeMemoryStream(Stream stream)
--- End of inner exception stack trace ---
at
System.Web.Services.Protocols.WebClientProtocol.GetWebResponse(WebRequest
request)
at
System.Web.Services.Protocols.HttpWebClientProtocol.GetWebResponse(WebRequest
request)
at System.Web.Services.Protocols.SoapHttpClientProtocol.Invoke(String
methodName, Object[] parameters)
reez - 20 Dec 2005 13:05 GMT
Hi Ken
There is a setting in IIS that limits the number of concurrent users to
10 by default in WinXP (I think - I can't verify because i don't have
IIS installed on this PC but i remember this being a problem i
encountered before). Click around in IIS and look at the properties for
the server, the website and the virtual directory. Sorry i can't
remember exactly where this setting was.
Let me know if this works.
Reeza.
Ken Andersson - 21 Dec 2005 08:36 GMT
I havnt found a way to increase the number of connections in IIS on Win XP.
I dont think its possible.
Ive read on msdn that Win XP is not a server OS and you should run
applications that need meny connections on a server. So im gonna test the
performance after ive deployed it to the Windows Server 2003 later.
Regards
> Hi Ken
>
[quoted text clipped - 8 lines]
>
> Reeza.