473,408 Members | 1,821 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,408 software developers and data experts.

HTTP 403.9 - Access Forbidden: Too many users are connected

i use WebRequest to read response from the URL i request.

the HTML returned contain an HTML buttons which do post back to server,

after many time "HTTP 403.9 - Access Forbidden: Too many users are connected".

this is snapshot of the code:
System.Net.WebRequest request =
System.Net.HttpWebRequest.Create("http://192.168.0.12:8888/XXXX");

request.ContentType = @"application/x-www-form-urlencoded";
request.Credentials =
System.Net.CredentialCache.DefaultCredentials;

System.Text.StringBuilder ActionsBuilder = new
StringBuilder();

request.Method = "POST";

System.Net.ServicePointManager.Expect100Continue = false;
((System.Net.HttpWebRequest)request).KeepAlive = false;

byte[] postBuffer =
System.Text.Encoding.GetEncoding(1252).GetBytes(Pa rameters);

request.ContentLength = postBuffer.Length;

System.IO.Stream postDataStream = request.GetRequestStream();
postDataStream.Write(postBuffer, 0, postBuffer.Length);
postDataStream.Close();

System.Net.HttpWebResponse response =
(System.Net.HttpWebResponse)request.GetResponse();

Encoding enc = System.Text.Encoding.UTF8;

System.IO.StreamReader responseStream = new
System.IO.StreamReader(response.GetResponseStream( ), enc, false);

StringBuilder responseHtml = new StringBuilder();

responseHtml.Append(responseStream.ReadToEnd());
response.Close();
responseStream.Close();
request.Abort();
please advise

----------------------------------------------------------
Ahmad Zeitoun

Mar 19 '07 #1
5 4174
the error means too many open connections. this will happen if the
client closes the tcp pipe before sending a fin.

why are you calling abort? I'd think Response.End() (which closes
connections before exiting is better).

-- bruce (sqlwork.com)

ahmad wrote:
i use WebRequest to read response from the URL i request.

the HTML returned contain an HTML buttons which do post back to server,

after many time "HTTP 403.9 - Access Forbidden: Too many users are connected".

this is snapshot of the code:
System.Net.WebRequest request =
System.Net.HttpWebRequest.Create("http://192.168.0.12:8888/XXXX");

request.ContentType = @"application/x-www-form-urlencoded";
request.Credentials =
System.Net.CredentialCache.DefaultCredentials;

System.Text.StringBuilder ActionsBuilder = new
StringBuilder();

request.Method = "POST";

System.Net.ServicePointManager.Expect100Continue = false;
((System.Net.HttpWebRequest)request).KeepAlive = false;

byte[] postBuffer =
System.Text.Encoding.GetEncoding(1252).GetBytes(Pa rameters);

request.ContentLength = postBuffer.Length;

System.IO.Stream postDataStream = request.GetRequestStream();
postDataStream.Write(postBuffer, 0, postBuffer.Length);
postDataStream.Close();

System.Net.HttpWebResponse response =
(System.Net.HttpWebResponse)request.GetResponse();

Encoding enc = System.Text.Encoding.UTF8;

System.IO.StreamReader responseStream = new
System.IO.StreamReader(response.GetResponseStream( ), enc, false);

StringBuilder responseHtml = new StringBuilder();

responseHtml.Append(responseStream.ReadToEnd());
response.Close();
responseStream.Close();
request.Abort();
please advise

----------------------------------------------------------
Ahmad Zeitoun
Mar 19 '07 #2
On 19 Mar, 14:15, ahmad <a...@discussions.microsoft.comwrote:
i use WebRequest to read response from the URL i request.

the HTML returned contain an HTML buttons which do post back to server,

after many time "HTTP 403.9 - Access Forbidden: Too many users are connected".

this is snapshot of the code:

System.Net.WebRequest request =
System.Net.HttpWebRequest.Create("http://192.168.0.12:8888/XXXX");

request.ContentType = @"application/x-www-form-urlencoded";
request.Credentials =
System.Net.CredentialCache.DefaultCredentials;

System.Text.StringBuilder ActionsBuilder = new
StringBuilder();

request.Method = "POST";

System.Net.ServicePointManager.Expect100Continue = false;
((System.Net.HttpWebRequest)request).KeepAlive = false;

byte[] postBuffer =
System.Text.Encoding.GetEncoding(1252).GetBytes(Pa rameters);

request.ContentLength = postBuffer.Length;

System.IO.Stream postDataStream = request.GetRequestStream();
postDataStream.Write(postBuffer, 0, postBuffer.Length);
postDataStream.Close();

System.Net.HttpWebResponse response =
(System.Net.HttpWebResponse)request.GetResponse();

Encoding enc = System.Text.Encoding.UTF8;

System.IO.StreamReader responseStream = new
System.IO.StreamReader(response.GetResponseStream( ), enc, false);

StringBuilder responseHtml = new StringBuilder();

responseHtml.Append(responseStream.ReadToEnd());
response.Close();
responseStream.Close();
request.Abort();

please advise

----------------------------------------------------------
Ahmad Zeitoun
Ignore Bruce, he's wrong :)

Your server is running XP Pro? It supports a maximum of about 10
connections. You'll need to use Windows Server 2003 to accommodate
more.

Mar 19 '07 #3
The non-server MS OSes only support 10 simultaneous connections. That
doesn't mean 10 seperate browsers or other items, it only means 10 items
connecting to the machine. Sometimes one single operation can use a number
of connections without you knowing it and thus the error.
--
Hope this helps,
Mark Fitzpatrick
Former Microsoft FrontPage MVP 199?-2006

"ahmad" <ah***@discussions.microsoft.comwrote in message
news:DD**********************************@microsof t.com...
>i use WebRequest to read response from the URL i request.

the HTML returned contain an HTML buttons which do post back to server,

after many time "HTTP 403.9 - Access Forbidden: Too many users are
connected".

this is snapshot of the code:
System.Net.WebRequest request =
System.Net.HttpWebRequest.Create("http://192.168.0.12:8888/XXXX");

request.ContentType = @"application/x-www-form-urlencoded";
request.Credentials =
System.Net.CredentialCache.DefaultCredentials;

System.Text.StringBuilder ActionsBuilder = new
StringBuilder();

request.Method = "POST";

System.Net.ServicePointManager.Expect100Continue = false;
((System.Net.HttpWebRequest)request).KeepAlive = false;

byte[] postBuffer =
System.Text.Encoding.GetEncoding(1252).GetBytes(Pa rameters);

request.ContentLength = postBuffer.Length;

System.IO.Stream postDataStream =
request.GetRequestStream();
postDataStream.Write(postBuffer, 0, postBuffer.Length);
postDataStream.Close();

System.Net.HttpWebResponse response =
(System.Net.HttpWebResponse)request.GetResponse();

Encoding enc = System.Text.Encoding.UTF8;

System.IO.StreamReader responseStream = new
System.IO.StreamReader(response.GetResponseStream( ), enc, false);

StringBuilder responseHtml = new StringBuilder();

responseHtml.Append(responseStream.ReadToEnd());
response.Close();
responseStream.Close();
request.Abort();
please advise

----------------------------------------------------------
Ahmad Zeitoun

Mar 19 '07 #4
Invest in Windows Vista for your web development. Not limited to 10
connections, can use multiple IP Addresses and root websites.
Peter

--
Site: http://www.eggheadcafe.com
UnBlog: http://petesbloggerama.blogspot.com
Short urls & more: http://ittyurl.net


"ahmad" wrote:
i use WebRequest to read response from the URL i request.

the HTML returned contain an HTML buttons which do post back to server,

after many time "HTTP 403.9 - Access Forbidden: Too many users are connected".

this is snapshot of the code:
System.Net.WebRequest request =
System.Net.HttpWebRequest.Create("http://192.168.0.12:8888/XXXX");

request.ContentType = @"application/x-www-form-urlencoded";
request.Credentials =
System.Net.CredentialCache.DefaultCredentials;

System.Text.StringBuilder ActionsBuilder = new
StringBuilder();

request.Method = "POST";

System.Net.ServicePointManager.Expect100Continue = false;
((System.Net.HttpWebRequest)request).KeepAlive = false;

byte[] postBuffer =
System.Text.Encoding.GetEncoding(1252).GetBytes(Pa rameters);

request.ContentLength = postBuffer.Length;

System.IO.Stream postDataStream = request.GetRequestStream();
postDataStream.Write(postBuffer, 0, postBuffer.Length);
postDataStream.Close();

System.Net.HttpWebResponse response =
(System.Net.HttpWebResponse)request.GetResponse();

Encoding enc = System.Text.Encoding.UTF8;

System.IO.StreamReader responseStream = new
System.IO.StreamReader(response.GetResponseStream( ), enc, false);

StringBuilder responseHtml = new StringBuilder();

responseHtml.Append(responseStream.ReadToEnd());
response.Close();
responseStream.Close();
request.Abort();
please advise

----------------------------------------------------------
Ahmad Zeitoun
Mar 19 '07 #5
Dear kierenj,

is there any solution about this issue at windows xp Pro?
i need to test what am doing before added to the project?

thank you
-----------------
Ahmad Zeitoun


"ki*****@gmail.com" wrote:
On 19 Mar, 14:15, ahmad <a...@discussions.microsoft.comwrote:
i use WebRequest to read response from the URL i request.

the HTML returned contain an HTML buttons which do post back to server,

after many time "HTTP 403.9 - Access Forbidden: Too many users are connected".

this is snapshot of the code:

System.Net.WebRequest request =
System.Net.HttpWebRequest.Create("http://192.168.0.12:8888/XXXX");

request.ContentType = @"application/x-www-form-urlencoded";
request.Credentials =
System.Net.CredentialCache.DefaultCredentials;

System.Text.StringBuilder ActionsBuilder = new
StringBuilder();

request.Method = "POST";

System.Net.ServicePointManager.Expect100Continue = false;
((System.Net.HttpWebRequest)request).KeepAlive = false;

byte[] postBuffer =
System.Text.Encoding.GetEncoding(1252).GetBytes(Pa rameters);

request.ContentLength = postBuffer.Length;

System.IO.Stream postDataStream = request.GetRequestStream();
postDataStream.Write(postBuffer, 0, postBuffer.Length);
postDataStream.Close();

System.Net.HttpWebResponse response =
(System.Net.HttpWebResponse)request.GetResponse();

Encoding enc = System.Text.Encoding.UTF8;

System.IO.StreamReader responseStream = new
System.IO.StreamReader(response.GetResponseStream( ), enc, false);

StringBuilder responseHtml = new StringBuilder();

responseHtml.Append(responseStream.ReadToEnd());
response.Close();
responseStream.Close();
request.Abort();

please advise

----------------------------------------------------------
Ahmad Zeitoun

Ignore Bruce, he's wrong :)

Your server is running XP Pro? It supports a maximum of about 10
connections. You'll need to use Windows Server 2003 to accommodate
more.

Mar 20 '07 #6

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

Similar topics

2
by: MichaelB | last post by:
When I try logging into my web app using local host I am getting the "HTTP 403.9 - Access Forbidden: Too many users are connected Internet Information Services". The thing is I do not have 10 users...
3
by: SAM | last post by:
Hey guys, Long time Access programmer, but never had to bother with these things until now. First, I use ADO all the time in VB, but now I need to use it in Access 2K. I never remember/know...
92
by: Jeffrey P via AccessMonster.com | last post by:
Our IT guys are on a vendetta against MS Access (and Lotus Notes but they've won that fight). What I can't understand is, what's the problem? Why does IT hate MS Access so much. I have tried...
8
by: trinitypete | last post by:
Hi all I have a strange problem with IIS windows pass through authentication. Heres the setup IIS running with Windows Authentication for our intranet site. ACL has been set to everyone for all...
6
by: Hani Atassi | last post by:
If i am using a form type authintication, do I need a licence for each logged in user? The application maintain their own user list and they are not Windows accounts. If I am using SQL Server...
9
by: cj | last post by:
I'm trying to forge ahead with Visual Basic .Net but recently I've suffered several major set backs in demonstrating VB is the future and we should move from Visual FoxPro. I really need to find...
2
by: cipher | last post by:
I have a .NET web service running on IIS. The client is a Java applet. The client calls a method on the server every few seconds. When running the client in IE 6, it gradually uses up all...
1
by: Alex Maghen | last post by:
I'm getting the error "HTTP Error 403.1 - Forbidden: Execute access is denied" when I try to reach my ASPX pages. Before I go giving Windows permissions to my docroot, etc., I want to...
6
by: Doug Ferguson | last post by:
I am using a webservice client that was created from a WSDL file in .Net 1.1. The client ALWAYS works the first time I call it. The second call returns one of two exceptions. It either returns...
10
by: Les Desser | last post by:
In article <fcebdacd-2bd8-4d07-93a8-8b69d3452f3e@s50g2000hsb.googlegroups.com>, The Frog <Mr.Frog.to.you@googlemail.comMon, 14 Apr 2008 00:45:10 writes Thank you for that. It was very...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
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
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
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
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
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
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
agi2029
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,...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...

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.