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 5 4173
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
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.
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
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
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.
This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics
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...
|
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...
|
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...
|
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...
|
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...
|
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...
|
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...
|
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...
|
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...
|
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...
|
by: ryjfgjl |
last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
|
by: ryjfgjl |
last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
|
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
|
by: BarryA |
last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
|
by: nemocccc |
last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
|
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...
|
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,...
|
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...
|
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,...
| |