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

The Page cannot be displayed screen

Bob
I am displaying a form with a datagrid populated from a select of database
records which now exceed 12,000 when I select them all.

The form displays just fine with all 12,000+ entries but when I leave the
form to go back to the originating screen, I get a "The page cannot be
displayed" screen for "Cannot find server or DNS Error" "Internet Explorer".
You know the page - it starts with "The page you are looking for is currently
unavailable....Please try the following: Click the Refresh Button, or try
again later...." etc etc.

But when I select a lesser number of records - under 12,000 (I don't
think there is anything sacred about 12,000 - that could vary based on the
amount of data fields in each line), when I leave the form to go back to the
originating screen, the originating screen comes back just fine.

Is there a limit in the size of a datagrid or the overall form? What do
you think?

--
Thanks for Your Help

Bob
Jul 21 '05 #1
5 5973
Bob wrote:
The form displays just fine with all 12,000+ entries but when I leave the
form to go back to the originating screen, I get a "The page cannot be
displayed" screen for "Cannot find server or DNS Error" "Internet Explorer".

There is no limit to the number of rows in a DataGrid nor the size of a
form. You're probably getting an exception in your ASP.NET application
which again results in an HTTP Error. If you switch off friendly HTTP
error messages in Internet Explorer you will be able to see this error.
To switch off friendly HTTP error messages go to Tools > Internet
Options > Advanced and uncheck the "Show friendly HTTP error messages"
option in the Browsing option group.

Anders Norås
http://dotnetjunkies.com/weblog/anoras/
Jul 21 '05 #2
Bob
Thanks Anders

I did as you said to switch off friendly HTTP error messages in IE.

Still doesn't work. I still get the "The Page cannot be displayed" screen.
I don't see any error you are refering to by switching this off.

I tried another approach in my development environment (Professional
2002) to locate the source of the problem as follows:

As I said before selecting under 12,000 records makes the page display
fine - over 12,000 gets the "the Page cannot be displayed" sreen.

In my development environment, there is a difference in what is displayed:

Under 12,000 no problem. Over 12,000 returns a "Enter Network Password"
dialog box with "Please type your username and password". Then clicking on
OK gets you "The Page cannot be displayed" screen. However, clicking on
Cancel gets you a "You are not authorized to view this page" screen (do not
get this in live environment). On this page by clicking on a Microsoft
Support link, you get to a page that says "Error Message: 401 Error
(Unathorized: Logon Failed)". The resolution stated to fix this is:

1. Open the Local Security Policy tool from the Adminstrative Tools folder.
2. Select Local Policies, choose User Rights Assignments, and then click
the Log on Locally user right.

Did this - still gets the same two pages "The page cannot be displayed"
or "You are not authorized to view this page"

I then put in my code a Try Catch block to encase the "Response.Redirect
that I have been doing to go back to the originating page that produced the
report form.

In the Xcp.Message I get "Thread was being aborted", the program still
redirects back to the originating program for under 12,000 records, but
produces the "Enter Network Password" dialog box I described above for over
12,000 records.

Thanks again Anders for any support you can give.


"Anders Norås" wrote:
Bob wrote:
The form displays just fine with all 12,000+ entries but when I leave the
form to go back to the originating screen, I get a "The page cannot be
displayed" screen for "Cannot find server or DNS Error" "Internet Explorer".

There is no limit to the number of rows in a DataGrid nor the size of a
form. You're probably getting an exception in your ASP.NET application
which again results in an HTTP Error. If you switch off friendly HTTP
error messages in Internet Explorer you will be able to see this error.
To switch off friendly HTTP error messages go to Tools > Internet
Options > Advanced and uncheck the "Show friendly HTTP error messages"
option in the Browsing option group.

Anders Norås
http://dotnetjunkies.com/weblog/anoras/

Jul 21 '05 #3
Bob wrote:
(abridged) Under 12,000 no problem. Over 12,000 returns a "Enter Network Password" dialog box with "Please type your username and password". Then clicking on
OK gets you "The Page cannot be displayed" screen. However, clicking on
Cancel gets you a "You are not authorized to view this page" screen (do not
get this in live environment). On this page by clicking on a Microsoft
Support link, you get to a page that says "Error Message: 401 Error
(Unathorized: Logon Failed)". Is your 12,000+ database query long-running? I'm suspecting that the
exception is caused a session timeout or a connection timeout. Try to
prolong the Server.ScriptTimeout setting. This setting corresponds with
executionTimeout attribute of the <httpRuntime> element within the
<system.web> element web.config. You can also try to prolong the
"connection timeout" specified in the connection string. The default
setting is 15 seconds.

If you still out of luck, please provide an example of the code used to
populate the data grid and a description of your environment including
authentication mode used, database configuration and similar. (abridged) I then put in my code a Try Catch block to encase the "Response.Redirect
that I have been doing to go back to the originating page that produced the
report form.

In the Xcp.Message I get "Thread was being aborted", the program still
redirects back...

You get the "Thread was being aborted" exception because
HttpResponse.Redirect calls the HttpResponse.End method which in turn
aborts the thread. The HTTP headers or HTML code needed to redirect the
response has been emitted to the browser at this point, so the user will
end up at the redirection target. This exception has nothing to do with
the +/- 12,000 row problem you're experiencing.

Anders Norås
http://dotnetjunkies.com/weblog/anoras/
Jul 21 '05 #4
Bob
Hi Anders:

Thank you for hanging in here with me.

Due to the amount of typing required for this reply (no copy and paste), I
replied at your web site.
"Anders Norås" wrote:
Bob wrote:
> (abridged) Under 12,000 no problem. Over 12,000 returns a "Enter

Network Password"
dialog box with "Please type your username and password". Then clicking on
OK gets you "The Page cannot be displayed" screen. However, clicking on
Cancel gets you a "You are not authorized to view this page" screen (do not
get this in live environment). On this page by clicking on a Microsoft
Support link, you get to a page that says "Error Message: 401 Error
(Unathorized: Logon Failed)".

Is your 12,000+ database query long-running? I'm suspecting that the
exception is caused a session timeout or a connection timeout. Try to
prolong the Server.ScriptTimeout setting. This setting corresponds with
executionTimeout attribute of the <httpRuntime> element within the
<system.web> element web.config. You can also try to prolong the
"connection timeout" specified in the connection string. The default
setting is 15 seconds.

If you still out of luck, please provide an example of the code used to
populate the data grid and a description of your environment including
authentication mode used, database configuration and similar.
(abridged) I then put in my code a Try Catch block to encase the "Response.Redirect
that I have been doing to go back to the originating page that produced the
report form.

In the Xcp.Message I get "Thread was being aborted", the program still
redirects back...

You get the "Thread was being aborted" exception because
HttpResponse.Redirect calls the HttpResponse.End method which in turn
aborts the thread. The HTTP headers or HTML code needed to redirect the
response has been emitted to the browser at this point, so the user will
end up at the redirection target. This exception has nothing to do with
the +/- 12,000 row problem you're experiencing.

Anders Norås
http://dotnetjunkies.com/weblog/anoras/

Jul 21 '05 #5
Bob
Anders:

Case closed. Thanks for your help. Read your bio on web site. Norway,
huh? I am a Norske.

Through other sources, I have found out you were close in your possible
solutions of prolonging the Server.ScriptTimeout setting or connection
timeout in the connection string in Web.Config, but not the answer.

The "Page cannot be displayed" screen was eliminated and the program
exits fine now by the following Web.config setting:

<httpRunTime maxRequestLength = "20480" />

The default is 4MB, extending to 20Mb makes the exit work.

"Bob" wrote:
Hi Anders:

Thank you for hanging in here with me.

Due to the amount of typing required for this reply (no copy and paste), I
replied at your web site.
"Anders Norås" wrote:
Bob wrote:
> (abridged) Under 12,000 no problem. Over 12,000 returns a "Enter

Network Password"
dialog box with "Please type your username and password". Then clicking on
OK gets you "The Page cannot be displayed" screen. However, clicking on
Cancel gets you a "You are not authorized to view this page" screen (do not
get this in live environment). On this page by clicking on a Microsoft
Support link, you get to a page that says "Error Message: 401 Error
(Unathorized: Logon Failed)".

Is your 12,000+ database query long-running? I'm suspecting that the
exception is caused a session timeout or a connection timeout. Try to
prolong the Server.ScriptTimeout setting. This setting corresponds with
executionTimeout attribute of the <httpRuntime> element within the
<system.web> element web.config. You can also try to prolong the
"connection timeout" specified in the connection string. The default
setting is 15 seconds.

If you still out of luck, please provide an example of the code used to
populate the data grid and a description of your environment including
authentication mode used, database configuration and similar.
(abridged) I then put in my code a Try Catch block to encase the "Response.Redirect
that I have been doing to go back to the originating page that produced the
report form.

In the Xcp.Message I get "Thread was being aborted", the program still
redirects back...

You get the "Thread was being aborted" exception because
HttpResponse.Redirect calls the HttpResponse.End method which in turn
aborts the thread. The HTTP headers or HTML code needed to redirect the
response has been emitted to the browser at this point, so the user will
end up at the redirection target. This exception has nothing to do with
the +/- 12,000 row problem you're experiencing.

Anders Norås
http://dotnetjunkies.com/weblog/anoras/

Jul 21 '05 #6

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

Similar topics

13
by: Nige | last post by:
I've just given one of my sites (www.wealdbroadband.co.uk) an overhaul. Anyone know if there is a way of fixing text at a certain relative position down a page? I'd like the "(c) 2003 ..." notice...
1
by: Bob | last post by:
I am displaying a form with a datagrid populated from a select of database records which now exceed 12,000 when I select them all. The form displays just fine with all 12,000+ entries but when I...
13
by: Veeresh | last post by:
I am using .Net 1.1. How to expire an .aspx page? I think I have to use HttpCachePolicy class for this. But not sure how to use and where to this code to work. Is it in Page_load event. Thanks...
5
by: Bob | last post by:
I am displaying a form with a datagrid populated from a select of database records which now exceed 12,000 when I select them all. The form displays just fine with all 12,000+ entries but when I...
2
by: Tim Reynolds | last post by:
Team, When my web service throws an exception and I am debugging on my PC - I get the exception back in my browser fine. My web.config shows <customErrors mode="Off"/> and this is working well. ...
12
by: urs | last post by:
Hi, please look at the ASP.NET 2 site http://www.prismatest.ch/catalog/EM.ASPX (user=prismashop, password=minicooper). Use the ">" Button to go to the next pages. You will notice that the page...
3
by: reachmano | last post by:
Hello everyone: When I view my web-page on different computers, I am having trouble with re-sizing the screen on some of them. Was wondering what should be done differently to take care of the...
0
by: AngelaMDick | last post by:
AngelaMD...@gmail.com View profile More options 12 Nov, 14:43 Newsgroups: microsoft.public.dotnet.csharp.general From: AngelaMD...@gmail.com Date: Mon, 12 Nov 2007 06:43:21 -0800 Local: Mon...
12
by: jim.richardson | last post by:
Hi all, I'd like a page to be excluded from the back button history, that is, when a user hits their browser's back button, it never backs into this particular page. Can anybody please tell...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
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...
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...

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.