473,574 Members | 2,580 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 5995
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.Redir ect
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.ScriptTi meout setting. This setting corresponds with
executionTimeou t 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.Redir ect
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.Re direct calls the HttpResponse.En d 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.ScriptTi meout setting. This setting corresponds with
executionTimeou t 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.Redir ect
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.Re direct calls the HttpResponse.En d 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.ScriptTi meout 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 maxRequestLengt h = "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.ScriptTi meout setting. This setting corresponds with
executionTimeou t 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.Redir ect
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.Re direct calls the HttpResponse.En d 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
3413
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 to appear at the same place as you go through the pages, but it varies if you alter the window width and cause a line to wrap/unwrap. -- Nige
1
2582
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 leave the form to go back to the originating program, I get a "The page cannot be displayed" screen for "Cannot find server or DNS error" "Internet...
13
2292
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 Veer
5
420
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 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...
2
8132
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. However, when I test this web service on the deployment server, I only get 'The page cannot be displayed' instead of the exception. That is when I...
12
2400
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 goes all white every time after pressing the ">" Button, and redraws itself only after all parts of the page have been downloaded. This means the...
3
1385
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 resizing problem with the screen? My banner images are not getting resized to the page. Here is the sample of my code:
0
1272
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 Nov 2007 14:43 Subject: Events give "Page cannot be displayed" Reply | Reply to author | Forward | Print | Individual message | Show original |...
12
8096
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 me how to do this? I thought perhaps there would be some kind of special meta tag that says something like "exclude me from browser's history", but...
0
8063
Oralloy
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. ...
0
8243
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that...
1
7822
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For...
1
5626
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 presenter, Adolph Dupr who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes...
0
5302
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 then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert...
0
3742
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in...
0
3754
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2249
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
0
1062
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating...

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.