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

Problem: Request time out

Dear All,
I'm facing a small problem.
I have a portal web site, that contains articles, for each article, the end
user can send a comment about the article.
The problem is:
I the comment length is more that 1249 bytes, then the progress bar of the
browser will move too slow and then displaying that the page not found!!!!

If the message is less than or equal to 1249 then no problem.
Nov 19 '05 #1
6 3779
Ammar,

how are you storing the comment ?
Please post the code you use to store the comment.


Juan T. Llibre
ASP.NET MVP
http://asp.net.do/foros/
Foros de ASP.NET en Espaņol
=====================

"Ammar" <ku****@mbc.ae> wrote in message
news:%2******************@TK2MSFTNGP12.phx.gbl...
Dear All,
I'm facing a small problem.
I have a portal web site, that contains articles, for each article, the
end user can send a comment about the article.
The problem is:
I the comment length is more that 1249 bytes, then the progress bar of the
browser will move too slow and then displaying that the page not found!!!!

If the message is less than or equal to 1249 then no problem.

Nov 19 '05 #2
Hello Juan,

The problem not in the code.

The logfile of the web server contains Protocol-Status 400,

Now I have a computer that contains a static IP that is listed in the IP
Pool of ISP firewall, and that computer is working without any problem.

Do you think that installing SP1 of the framework V 1.1 will solve the
problem.
I think that it is a configuration problem.

Thanks a lote.

Regards,

"Juan T. Llibre" <no***********@nowhere.com> wrote in message
news:e2**************@TK2MSFTNGP12.phx.gbl...
Ammar,

how are you storing the comment ?
Please post the code you use to store the comment.


Juan T. Llibre
ASP.NET MVP
http://asp.net.do/foros/
Foros de ASP.NET en Espaņol
=====================

"Ammar" <ku****@mbc.ae> wrote in message
news:%2******************@TK2MSFTNGP12.phx.gbl...
Dear All,
I'm facing a small problem.
I have a portal web site, that contains articles, for each article, the
end user can send a comment about the article.
The problem is:
I the comment length is more that 1249 bytes, then the progress bar of
the browser will move too slow and then displaying that the page not
found!!!!

If the message is less than or equal to 1249 then no problem.


Nov 19 '05 #3
Ammar,

to repeat your statements :
If the comment length is more that 1249 bytes, then displaying that the
page not found!!!!
If the message is less than or equal to 1249 then no problem.


If it is "a configuration problem", as you say,
why does it work for messages less than 1249 bytes ?

Shouldn't it, in that case, *never* work ?

RFC 2616 says that 400 Bad Request means that
"the request could not be understood by the server
due to malformed syntax".

Are you modifying the headers ?
Or adding too many characters to the querystring ?

Please post the coding methods you use to store/retrieve
the comments if you want me to be able to try to help you.

I cannot help you by remote osmosis.


Juan T. Llibre
ASP.NET MVP
http://asp.net.do/foros/
Foros de ASP.NET en Espaņol
=====================

"Ammar" <ku****@mbc.ae> wrote in message
news:u1**************@tk2msftngp13.phx.gbl... Hello Juan,

The problem not in the code.

The logfile of the web server contains Protocol-Status 400,

Now I have a computer that contains a static IP that is listed in the IP
Pool of ISP firewall, and that computer is working without any problem.

Do you think that installing SP1 of the framework V 1.1 will solve the
problem.
I think that it is a configuration problem.

Thanks a lote.

Regards,

"Juan T. Llibre" <no***********@nowhere.com> wrote in message
news:e2**************@TK2MSFTNGP12.phx.gbl...
Ammar,

how are you storing the comment ?
Please post the code you use to store the comment.


Juan T. Llibre
ASP.NET MVP
http://asp.net.do/foros/
Foros de ASP.NET en Espaņol
=====================

"Ammar" <ku****@mbc.ae> wrote in message
news:%2******************@TK2MSFTNGP12.phx.gbl...
Dear All,
I'm facing a small problem.
I have a portal web site, that contains articles, for each article, the
end user can send a comment about the article.
The problem is:
I the comment length is more that 1249 bytes, then the progress bar of
the browser will move too slow and then displaying that the page not
found!!!!

If the message is less than or equal to 1249 then no problem.

Nov 19 '05 #4
I'd like 1st of all to thank you.
The code is:

Private Sub sendComment_Click(ByVal sender As System.Object, ByVal e As
System.Web.UI.ImageClickEventArgs) Handles sendComment.Click
If PostName.Value.Length = 0 OrElse PostBody.Value.Length = 0 OrElse
PostTitle.Value.Length = 0 Then
Response.Redirect("/FeedBack.aspx?Page=AddComment&Status=incorrect")
Exit Sub
End If
Dim ds As DataSet
Dim Articleid As Int64
ds = DataCon.GetDataset("Select * from articles where ArticleID=" +
CleanRequest(Request.QueryString("v")).ToString + "")
Articleid = CInt(ds.Tables(0).Rows(0)("ArticleID"))
ds = Nothing
If AddArticlePost(Articleid, stripTag(PostBody.Value),
stripTag(PostTitle.Value), stripTag(PostName.Value)) Then
LogArticlePropertiy(Articleid, , , 1)
Response.Redirect("/FeedBack.aspx?Page=AddComment&Status=correct")
End If
End Sub

1st IF statment check if the length of the 3 fields are not equal to zero
DataCon is a public class that handels all DB functions.
GetDataSet is a method that accepts a SQL St. and return a dataset [in this
case we need the article id]
AddArticlePost is the method that will insert into the database a new record
that represents the comment.

Now in case that AddArticlePost run without a problem then we will Call
another method to increase number of comments that hase been posted of this
article, then we will redirect the end user to a feedback page.

The problem is that the code is running from only one comuter that its IP is
listed in the IP Pool of the Firewall of the ISP,
and also the code is running from any computer in case that the comment body
is less than 1250 bytes.
and the code was working without any problem just 5 days ago.

Best regards,
"Juan T. Llibre" <no***********@nowhere.com> wrote in message
news:uK**************@TK2MSFTNGP10.phx.gbl...
Ammar,

to repeat your statements :
If the comment length is more that 1249 bytes, then displaying that the
page not found!!!!

If the message is less than or equal to 1249 then no problem.


If it is "a configuration problem", as you say,
why does it work for messages less than 1249 bytes ?

Shouldn't it, in that case, *never* work ?

RFC 2616 says that 400 Bad Request means that
"the request could not be understood by the server
due to malformed syntax".

Are you modifying the headers ?
Or adding too many characters to the querystring ?

Please post the coding methods you use to store/retrieve
the comments if you want me to be able to try to help you.

I cannot help you by remote osmosis.


Juan T. Llibre
ASP.NET MVP
http://asp.net.do/foros/
Foros de ASP.NET en Espaņol
=====================

"Ammar" <ku****@mbc.ae> wrote in message
news:u1**************@tk2msftngp13.phx.gbl...
Hello Juan,

The problem not in the code.

The logfile of the web server contains Protocol-Status 400,

Now I have a computer that contains a static IP that is listed in the IP
Pool of ISP firewall, and that computer is working without any problem.

Do you think that installing SP1 of the framework V 1.1 will solve the
problem.
I think that it is a configuration problem.

Thanks a lote.

Regards,

"Juan T. Llibre" <no***********@nowhere.com> wrote in message
news:e2**************@TK2MSFTNGP12.phx.gbl...
Ammar,

how are you storing the comment ?
Please post the code you use to store the comment.


Juan T. Llibre
ASP.NET MVP
http://asp.net.do/foros/
Foros de ASP.NET en Espaņol
=====================

"Ammar" <ku****@mbc.ae> wrote in message
news:%2******************@TK2MSFTNGP12.phx.gbl...
Dear All,
I'm facing a small problem.
I have a portal web site, that contains articles, for each article, the
end user can send a comment about the article.
The problem is:
I the comment length is more that 1249 bytes, then the progress bar of
the browser will move too slow and then displaying that the page not
found!!!!

If the message is less than or equal to 1249 then no problem.


Nov 19 '05 #5
re:
I'd like 1st of all to thank you.
No problem. I enjoy doing this... :-)

OK...

I'm assuming that this is a typo in the post,
but not a typo in your code :
LogArticlePropertiy(Articleid, , , 1)

That is really "LogArticleProperty(Articleid, , , 1)", right ?

Then,

1. Is the problem limited to the *display* of the comments ?
Or do the comments get inserted in the db ?

If the comments do not get inserted in the db, then

2. Check your comments field size in the db
Make sure it's set to more than 1249 bytes.

3. In FeedBack.aspx, what is the
"Page=AddComment" parameter good for ?

4. Could you post the relevant code ( not all )
for FeedBack.aspx ?

Juan T. Llibre
ASP.NET MVP
http://asp.net.do/foros/
Foros de ASP.NET en Espaņol
=====================

"Ammar" <ku****@mbc.ae> wrote in message
news:Oe****************@TK2MSFTNGP10.phx.gbl... I'd like 1st of all to thank you.
The code is:

Private Sub sendComment_Click(ByVal sender As System.Object, ByVal e As
System.Web.UI.ImageClickEventArgs) Handles sendComment.Click
If PostName.Value.Length = 0 OrElse PostBody.Value.Length = 0
OrElse PostTitle.Value.Length = 0 Then

Response.Redirect("/FeedBack.aspx?Page=AddComment&Status=incorrect")
Exit Sub
End If
Dim ds As DataSet
Dim Articleid As Int64
ds = DataCon.GetDataset("Select * from articles where ArticleID=" +
CleanRequest(Request.QueryString("v")).ToString + "")
Articleid = CInt(ds.Tables(0).Rows(0)("ArticleID"))
ds = Nothing
If AddArticlePost(Articleid, stripTag(PostBody.Value),
stripTag(PostTitle.Value), stripTag(PostName.Value)) Then
LogArticlePropertiy(Articleid, , , 1)

Response.Redirect("/FeedBack.aspx?Page=AddComment&Status=correct")
End If
End Sub

1st IF statment check if the length of the 3 fields are not equal to zero
DataCon is a public class that handels all DB functions.
GetDataSet is a method that accepts a SQL St. and return a dataset [in
this case we need the article id]
AddArticlePost is the method that will insert into the database a new
record that represents the comment.

Now in case that AddArticlePost run without a problem then we will Call
another method to increase number of comments that hase been posted of
this article, then we will redirect the end user to a feedback page.

The problem is that the code is running from only one computer that its IP
is listed in the IP Pool of the Firewall of the ISP,
and also the code is running from any computer in case that the comment
body is less than 1250 bytes.
and the code was working without any problem just 5 days ago.

Best regards,
"Juan T. Llibre" <no***********@nowhere.com> wrote in message
news:uK**************@TK2MSFTNGP10.phx.gbl...
Ammar,

to repeat your statements :
If the comment length is more that 1249 bytes, then displaying that the
page not found!!!!

If the message is less than or equal to 1249 then no problem.


If it is "a configuration problem", as you say,
why does it work for messages less than 1249 bytes ?

Shouldn't it, in that case, *never* work ?

RFC 2616 says that 400 Bad Request means that
"the request could not be understood by the server
due to malformed syntax".

Are you modifying the headers ?
Or adding too many characters to the querystring ?

Please post the coding methods you use to store/retrieve
the comments if you want me to be able to try to help you.

I cannot help you by remote osmosis.


Juan T. Llibre
ASP.NET MVP
http://asp.net.do/foros/
Foros de ASP.NET en Espaņol
=====================

"Ammar" <ku****@mbc.ae> wrote in message
news:u1**************@tk2msftngp13.phx.gbl...
Hello Juan,

The problem not in the code.

The logfile of the web server contains Protocol-Status 400,

Now I have a computer that contains a static IP that is listed in the IP
Pool of ISP firewall, and that computer is working without any problem.

Do you think that installing SP1 of the framework V 1.1 will solve the
problem.
I think that it is a configuration problem.

Thanks a lote.

Regards,

"Juan T. Llibre" <no***********@nowhere.com> wrote in message
news:e2**************@TK2MSFTNGP12.phx.gbl...
Ammar,

how are you storing the comment ?
Please post the code you use to store the comment.


Juan T. Llibre
ASP.NET MVP
http://asp.net.do/foros/
Foros de ASP.NET en Espaņol
=====================

"Ammar" <ku****@mbc.ae> wrote in message
news:%2******************@TK2MSFTNGP12.phx.gbl...
> Dear All,
> I'm facing a small problem.
> I have a portal web site, that contains articles, for each article,
> the end user can send a comment about the article.
> The problem is:
> I the comment length is more that 1249 bytes, then the progress bar of
> the browser will move too slow and then displaying that the page not
> found!!!!
>
> If the message is less than or equal to 1249 then no problem.

Nov 19 '05 #6
Thanks a lote Juan,
LogArticlePropertiy is very simple method that will connect to the database
and increase the number that represents number of comments that belong to
that article.

Now this function is working without any problem.

In case that the comment is passed, then we will redirect the end user to a
feed back page.

The feed back page is too simple. It Acceps URL Parameters [For example
Page, Status] Couse the feedback is a general Page for feeding back the end
user.
So when the Page=AddComment and the Status is Correct, then the page will
display only that the comment hase been recived and thank the end user.

Dear Juan... The code of the Feedback is:
Private Sub Page_Load(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles MyBase.Load
'Put user code to initialize the page here
Select Case Request.QueryString("Page")
Case "AddComment"
If Request.QueryString("Status") = "correct" Then
FeedBackString.Text = "thank you message"
ElseIf Request.QueryString("Status") = "incorrect" Then
FeedBackString.Text = "an error message"
End If
Case "ContactUs"
If Request.QueryString("Status") = "correct" Then
FeedBackString.Text = "thank you message"
ElseIf Request.QueryString("Status") = "incorrect" Then
FeedBackString.Text = "an error message"
End If
'TODO Feed the end user about the status of adding his or
here email
End Select
End Sub

You can see that the code is too simple.

Now about the size of the field that represents the body of the comment: it
is of type ntext. So no problem about the size.
Also in case that the comment is too big then the browser's after 10 min.
will respond and telling that the server not found!!!!!

FYI. nothing in that case will be writen to the databse>
Now the question is: why evry things was running without any problem [5 days
ago] and now I am facing this problem.?

I have checked the host computer [web server], the web.config, IIS, the
logfile, and evry things, and I did not see any change.

Maybe it is a firewall problem. or a router problem. I don not know

It is a post method problem, not a get method problem.

You know where is the problem? [The problem is that I am only a web
developer but I am not a web Administrator].(:

Thank you.
"Juan T. Llibre" <no***********@nowhere.com> wrote in message
news:eC**************@TK2MSFTNGP15.phx.gbl...
re:
I'd like 1st of all to thank you.


No problem. I enjoy doing this... :-)

OK...

I'm assuming that this is a typo in the post,
but not a typo in your code :
LogArticlePropertiy(Articleid, , , 1)

That is really "LogArticleProperty(Articleid, , , 1)", right ?

Then,

1. Is the problem limited to the *display* of the comments ?
Or do the comments get inserted in the db ?

If the comments do not get inserted in the db, then

2. Check your comments field size in the db
Make sure it's set to more than 1249 bytes.

3. In FeedBack.aspx, what is the
"Page=AddComment" parameter good for ?

4. Could you post the relevant code ( not all )
for FeedBack.aspx ?

Juan T. Llibre
ASP.NET MVP
http://asp.net.do/foros/
Foros de ASP.NET en Espaņol
=====================

"Ammar" <ku****@mbc.ae> wrote in message
news:Oe****************@TK2MSFTNGP10.phx.gbl...
I'd like 1st of all to thank you.
The code is:

Private Sub sendComment_Click(ByVal sender As System.Object, ByVal e
As System.Web.UI.ImageClickEventArgs) Handles sendComment.Click
If PostName.Value.Length = 0 OrElse PostBody.Value.Length = 0
OrElse PostTitle.Value.Length = 0 Then

Response.Redirect("/FeedBack.aspx?Page=AddComment&Status=incorrect")
Exit Sub
End If
Dim ds As DataSet
Dim Articleid As Int64
ds = DataCon.GetDataset("Select * from articles where ArticleID="
+ CleanRequest(Request.QueryString("v")).ToString + "")
Articleid = CInt(ds.Tables(0).Rows(0)("ArticleID"))
ds = Nothing
If AddArticlePost(Articleid, stripTag(PostBody.Value),
stripTag(PostTitle.Value), stripTag(PostName.Value)) Then
LogArticlePropertiy(Articleid, , , 1)

Response.Redirect("/FeedBack.aspx?Page=AddComment&Status=correct")
End If
End Sub

1st IF statment check if the length of the 3 fields are not equal to zero
DataCon is a public class that handels all DB functions.
GetDataSet is a method that accepts a SQL St. and return a dataset [in
this case we need the article id]
AddArticlePost is the method that will insert into the database a new
record that represents the comment.

Now in case that AddArticlePost run without a problem then we will Call
another method to increase number of comments that hase been posted of
this article, then we will redirect the end user to a feedback page.

The problem is that the code is running from only one computer that its
IP is listed in the IP Pool of the Firewall of the ISP,
and also the code is running from any computer in case that the comment
body is less than 1250 bytes.
and the code was working without any problem just 5 days ago.

Best regards,


"Juan T. Llibre" <no***********@nowhere.com> wrote in message
news:uK**************@TK2MSFTNGP10.phx.gbl...
Ammar,

to repeat your statements :

If the comment length is more that 1249 bytes, then displaying that the
page not found!!!!

> If the message is less than or equal to 1249 then no problem.

If it is "a configuration problem", as you say,
why does it work for messages less than 1249 bytes ?

Shouldn't it, in that case, *never* work ?

RFC 2616 says that 400 Bad Request means that
"the request could not be understood by the server
due to malformed syntax".

Are you modifying the headers ?
Or adding too many characters to the querystring ?

Please post the coding methods you use to store/retrieve
the comments if you want me to be able to try to help you.

I cannot help you by remote osmosis.


Juan T. Llibre
ASP.NET MVP
http://asp.net.do/foros/
Foros de ASP.NET en Espaņol
=====================

"Ammar" <ku****@mbc.ae> wrote in message
news:u1**************@tk2msftngp13.phx.gbl...
Hello Juan,

The problem not in the code.

The logfile of the web server contains Protocol-Status 400,

Now I have a computer that contains a static IP that is listed in the
IP Pool of ISP firewall, and that computer is working without any
problem.

Do you think that installing SP1 of the framework V 1.1 will solve the
problem.
I think that it is a configuration problem.

Thanks a lote.

Regards,

"Juan T. Llibre" <no***********@nowhere.com> wrote in message
news:e2**************@TK2MSFTNGP12.phx.gbl...
> Ammar,
>
> how are you storing the comment ?
> Please post the code you use to store the comment.
>
>
>
>
> Juan T. Llibre
> ASP.NET MVP
> http://asp.net.do/foros/
> Foros de ASP.NET en Espaņol
> =====================
>
> "Ammar" <ku****@mbc.ae> wrote in message
> news:%2******************@TK2MSFTNGP12.phx.gbl...
>> Dear All,
>> I'm facing a small problem.
>> I have a portal web site, that contains articles, for each article,
>> the end user can send a comment about the article.
>> The problem is:
>> I the comment length is more that 1249 bytes, then the progress bar
>> of the browser will move too slow and then displaying that the page
>> not found!!!!
>>
>> If the message is less than or equal to 1249 then no problem.


Nov 19 '05 #7

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

Similar topics

0
by: strong | last post by:
may you help me?? thanks!! I want to establish a environment to server multi-user in win2000 I run a cgi-multithread-server program,its name is cgisrv.py and I write two programs to test it, one...
1
by: Satinderpal Singh | last post by:
Hi everyone, We are using HttpWebRequest to create a request to a URI, which requires us to login first. In order to process all the transactions, first we have to login and get the cookie value...
9
by: Sudesh Sawant | last post by:
Hello, We have an application which communicates using remoting. There is a server which is a Windows Service. The server exposes an object which is a singleton. The client is a Web Application...
3
by: Paul | last post by:
Hi all, at present I I've built a website which can be updated by admin and users. My problem, I've combined "log in" and "access levels" to restrict access to certain pages, using the built...
1
by: Satinderpal Singh | last post by:
Hi everyone, We are using HttpWebRequest to create a request to a URI, which requires us to login first. In order to process all the transactions, first we have to login and get the cookie value...
4
by: Trond Meistad | last post by:
I have a website where I run a simple asp.net web application. On Sunday night, requests to this webapplication started to time out. After much debuggeing with no result, I created a new...
2
by: Mux | last post by:
I am facing the following problem while exporting data to Word. The current implementation is as described below: I have a JSP file which has a link that enables you to export the data to Word....
2
by: Georgy Malyshev | last post by:
Hello, All! I have a simplistic ASP application, only default.asp file without any scripts just HTML to say "Hello world!". It is running under IIS 5.1 on XP SP2 machine. I also have some...
1
by: staticfire | last post by:
Hi i am in need of help with an ajax related problem on my site. I've coded an active users list which shows the members and guests online. I'm sure you've all seen active user lists before, like the...
23
by: ryna | last post by:
Desperately need help.... here's the snippet of my code that im trying to solve since last week... icePayment.aspx If (Left(Request.Form("return_url"), 7) <> "http://") Then errorInput =...
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: 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
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
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: 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.