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 Explorer".
But when I select a lesser number of records - under 12,000 (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 program, the originating screen comes back just fine.
I have been told there is no limit in the size of a datagrid or the overall
form. (Thanks Anders)
I have all been told that I am probably getting an exception in my ASP.NET
application which results in an HTTP error. I was told to switch off
friendly HTTP error message in Tools > Internet Options > Advanced by
unchecking the "Show friendly HTTP error message" option in the Browsing
option group. I would then be able to see this error. (Thanks Anders)
I did that but still doesn't work. I still get the "The page cannot be
displayed" screen. I don't see any error by switching "friendly" off.
I tried another approach in my development environment (Professional 2002)
to locate the source of the problem as follows:
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 "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
(Unauthorized: Login Failed)". The resolution stated to fix this is:
1. Open the Local Security Policy tool from the Administrative Tools
folder.
2. Select Local Policies, choose User Rights Assignments, and then click
the Log on Locally user right.
Did this - still get the same two pages. "The page cannot be displayed" or
the "You are not authorized" after getting the "Enter Network password"
dialog box.
I then added a Try Catch block to my code to encase the Response.Redirect to
the originating program.
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 Net Password" dialog box I described above for over
12,000 records.
--
Thanks for Your Help
Bob 1 2502
To anyone who may be interested:
The solution to eliminating the "Page cannot be displayed" screen and
exiting from a program that contains a large datagrid in a form is:
Place the following in Web.Config
<httpRuntime maxRequestLength = "20480" />
The default is 4MB, I used 20MB here, but can go larger
"Bob" wrote: 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 Explorer".
But when I select a lesser number of records - under 12,000 (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 program, the originating screen comes back just fine.
I have been told there is no limit in the size of a datagrid or the overall form. (Thanks Anders)
I have all been told that I am probably getting an exception in my ASP.NET application which results in an HTTP error. I was told to switch off friendly HTTP error message in Tools > Internet Options > Advanced by unchecking the "Show friendly HTTP error message" option in the Browsing option group. I would then be able to see this error. (Thanks Anders)
I did that but still doesn't work. I still get the "The page cannot be displayed" screen. I don't see any error by switching "friendly" off.
I tried another approach in my development environment (Professional 2002) to locate the source of the problem as follows:
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 "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 (Unauthorized: Login Failed)". The resolution stated to fix this is:
1. Open the Local Security Policy tool from the Administrative Tools folder. 2. Select Local Policies, choose User Rights Assignments, and then click the Log on Locally user right.
Did this - still get the same two pages. "The page cannot be displayed" or the "You are not authorized" after getting the "Enter Network password" dialog box.
I then added a Try Catch block to my code to encase the Response.Redirect to the originating program.
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 Net Password" dialog box I described above for over 12,000 records.
-- Thanks for Your Help
Bob This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics
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...
|
by: Joe |
last post by:
I have an upload file operation in the web application. UploadForm.asp is
the form,
and UploadAction.asp is the form processing.
//UploadForm.asp
<FORM NAME="InputForm"...
|
by: VB Programmer |
last post by:
I am setting up a intranet webserver that will run my ASP.NET website.
(Everything works fine locally.) When I try accessing an aspx page, via IE,
it gives me the "Page cannot be displayed" error,...
|
by: L Scott |
last post by:
Have developed a c# / asp.net web app. Works locally. But over the internet
when I access the site, it eventually returns a 'The page cannot be
displayed' page. Not always on the same page. Can...
|
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...
|
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.
...
|
by: Neil Rossi |
last post by:
I have an issue with a particular ASP page on two web servers. Let's
call these servers Dev1 and Beta1. Both Servers are running IIS 5,
Windows 2000 SP4 with "almost" all of the latest patches.
...
|
by: RC |
last post by:
I know how to do this in JavaScript by
window.open("newFile.html",
"newTarget",
"scrollbars=no,resizable=0,width=200,height=200");
The browser will open a new window size 200x200, not allow...
|
by: Peter |
last post by:
I have the following code which works fine in IE6 and IE7 and FireFox, but
when I run IE6 on Citrix I get "The page cannot be displayed" in the iframe.
We don't have IE7 on Citrix so I can't try...
|
by: erikbower65 |
last post by:
Using CodiumAI's pr-agent is simple and powerful. Follow these steps:
1. Install CodiumAI CLI: Ensure Node.js is installed, then run 'npm install -g codiumai' in the terminal.
2. Connect to...
|
by: erikbower65 |
last post by:
Here's a concise step-by-step guide for manually installing IntelliJ IDEA:
1. Download: Visit the official JetBrains website and download the IntelliJ IDEA Community or Ultimate edition based on...
|
by: kcodez |
last post by:
As a H5 game development enthusiast, I recently wrote a very interesting little game - Toy Claw ((http://claw.kjeek.com/))。Here I will summarize and share the development experience here, and hope it...
|
by: isladogs |
last post by:
The next Access Europe meeting will be on Wednesday 6 Sept 2023 starting at 18:00 UK time (6PM UTC+1) and finishing at about 19:15 (7.15PM)
The start time is equivalent to 19:00 (7PM) in Central...
|
by: Taofi |
last post by:
I try to insert a new record but the error message says the number of query names and destination fields are not the same
This are my field names
ID, Budgeted, Actual, Status and Differences
...
|
by: Rina0 |
last post by:
I am looking for a Python code to find the longest common subsequence of two strings. I found this blog post that describes the length of longest common subsequence problem and provides a solution in...
|
by: DJRhino |
last post by:
Private Sub CboDrawingID_BeforeUpdate(Cancel As Integer)
If = 310029923 Or 310030138 Or 310030152 Or 310030346 Or 310030348 Or _
310030356 Or 310030359 Or 310030362 Or...
|
by: lllomh |
last post by:
Define the method first
this.state = {
buttonBackgroundColor: 'green',
isBlinking: false, // A new status is added to identify whether the button is blinking or not
}
autoStart=()=>{
|
by: lllomh |
last post by:
How does React native implement an English player?
| |