Web Forms :: 'Page Could Not Be Displayed' Error When Application Performing Heavy Task
Jun 23, 2010
I have set executionTimeout in web.config to 3600 (which I found out that the scripttimeout will follow this value), and in the production server, I have set debug=false, session time out = 20 min. sql command time out = 1200 seconds
However, when the application is performing heavy sql task that exceed 90seconds, I got the 'Page Could Not be Displayed' error.
When I change debug=true, the application works fine. The application also works fine when I turn off the 'Show HTTP friendly message'.
Recently I have upgraded my app from .net 2.0 to 4.0. By running application under .net 4.0 I get one strange behaviour. Whenever application throw any error, instead of displaying it in browser with call stack, the error is shown in the browser's error window as javascript error and the whole web page remain as it is. is it feature of .net 4.0 or I need to do some settings to display error in web page.
I am new in ASP.net and working with 4.0 framework. My problem is that when i paste all page with directory into local iis configured directory inetputwwwroot , and try to run it with
browser http://localhost/webpage1/default.aspx/
it gives an error message
"The XML page cannot be displayed
Cannot view XML input using XSL style sheet. Please correct the error and then click the Refresh button, or try again later.
A name was started with an invalid character. Error processing resource 'file:///C:/inetpub/wwwroot/WebSite3/Default.aspx'....
In my application i am getting data fROM sql server 2008.It is coming from collection of nearly 12 tables. I have to fillter this data in my application and of fillter data i have to write Xml.
my problem is that to fillter i need to that retrieve data to hold in my application and to achieve this i am using the help of dataset and datatable.But most of time when i am running application ,my application getting hang and very slow OR getting crashes.
I have been asked to design & develop a page in asp.net which contains 7 tabs. Each table contains 2 Editable gridview & clicking on gridview cell should open a popup & that popup will open a new popup ( I would say nested popup). Even when I switch from one tab to another. It should hold the griddata & whenever user will finish all the operations he/she will click on save button which will save all the data contained in the tabs. The page is really too heavy. It will definitely take a long time to load as it contains gridview operations, popup related jobs, tab data & tab switching. I am finding the best way I can achieve this with an acceptable speed of operation.
Each virtual directory is configured on IIS6.0 as an application with own AppPool.
When redirecting authenticated user from dir1 to dir2 using response.redirect I lose authentication information for the user and the user is being redirected to the login page. This issue was not coming up with each app (dir1 and dir2) were configured under subdomain, ex: [URL]
I have resolved the issue by adding a machine key to the machine.config file.
i have genarated a xml file through the asp.net code as
public bool createxml() { DataSet ds = new DataSet(); clsRegister obj = new clsRegister(); int i = 0; string strpath = string.Empty; XmlTextWriter objwriter = new XmlTextWriter(Console.Out); ds = obj.searchgallery(4); try { strpath = "d:\hellojhasi\glance\jhansigallery\gallery.xml"; objwriter = new XmlTextWriter(strpath, System.Text.Encoding.Default); if (ds.Tables[0].Rows.Count > 0) { for (i = 0; i < ds.Tables[0].Rows.Count; i++) { objwriter.WriteStartElement("picturegallery"); objwriter.WriteElementString("fullimage", ds.Tables[0].Rows[i]["fullimage"].ToString()); objwriter.WriteElementString("thumbnail", ds.Tables[0].Rows[i]["thumbnail"].ToString()); objwriter.WriteElementString("title", ds.Tables[0].Rows[i]["title"].ToString()); objwriter.WriteElementString("description", ds.Tables[0].Rows[i]["description"].ToString()); objwriter.WriteElementString("height", ds.Tables[0].Rows[i]["height"].ToString()); objwriter.WriteElementString("width", ds.Tables[0].Rows[i]["width"].ToString()); objwriter.WriteEndElement(); } } else { objwriter.WriteEndElement(); } objwriter.Flush(); } catch (Exception e) { } return true; }
the code executed well.but the xml file when opens gives the following error
The XML page cannot be displayed Cannot view XML input using XSL style sheet. Please correct the error and then click the Refresh button, or try again later.
Only one top level element is allowed in an XML document. Error processing resource 'file:///D:/HelloJhasi/glance/jhansigal...
I'm trying to create a page that displays a databound gridview to the user showing them the items being processed. Then the page should immediately begin processing. The problem is that the page never shows the gridview (or any other control) until the process is complete. The process is being sent to a WCF service. I've tried setting the page to async and running the wcf in async mode but the content still fails to display.
What should be the approach while designing when you know that your page would take considerable time to load? e.g. if it has controls which are heavy & some which are lighter? Can we make use of any of the design patterns to solve this issue?
In my website for one project we have 5000+ records in sql database. If I give page size is 100 for gridview then the paze size showing 800kb in firebug net panel and it is taking 20-30 seconds to load webpage. If I give page size is 10 for gridview then the paze size showing 160kb in firebug net panel and it is taking 5-6 seconds to load webpage. If I give page size is 5for gridview then the paze size showing 130kb in firebug net panel and it is taking less than 6 seconds to load webpage. I noticed that due to heavy paze size the performance decreasing but as per my requirent the paze size should be 100 or above and the page should be load less than 2 seconds.
I have developed a web application which downloads files from FTP server. I want to run this application every day at 09:00 and automatically closed when the job is done.
I tried javascripts "window.close, self.close etc" but couldn't workd.
It is worth mentioning that the website is hosted on Windows Server 2003.
I am trying to find the best way to have a page with a lot of data from queries to a database load faster. Looking at [URL], when viewing information about a domain, I see that their page loads and each section has a loading symbol, so the page itself displays fast and the data comes when it is available. How do they do this? Update panels around each section with a call to a Web Service? Also, Google AdWords seems to do this too when you load the Ads or Keywords tabs of a Campaign.
We need the ability to send out automatic emails when certain dates occur or when some business conditions are met. We are setting up this system to work with an existing ASP.NET website. I've had a chat with one of the other devs here and had a discussion of some of the issues.Things to note:All the information we need is already modelled in the ASP.NET websiteThere is some business-logic that is required for the email generation which is also in the website alreadyWe decided that the ideal solution was to have a separate executable that is scheduled to run overnight and do the processing and emailing. This solution has 2 main problems:If the website was updated (business logic or model) but the executable was accidentally missed then the executable could stop sending emails, or worse, be sending them based on outdated logic.We are hoping to use something like this to use UserControls to template the emails, which I don't believe is possible outside of an ASP.NET websiteThe first problem could have been avoided with build and deployment scripts (which we're looking into at the moment anyway), but I don't think we can get around the second problem.So the solution we decided on is to have an ASP.NET page that is called regularly by SSIS and to have that do a set amount of processing (say 30 seconds) and then return. I know an ASP.NET page is not the ideal place to be doing this kind of processing but this seems to best meet our requirements. We considered spawning a new thread (not from the worker pool) to do the processing but decided that if we did that we couldn't use the page returned to signify a success or failure. By processing within the page's life-cycle we can use the page content to give an indication of how the processing went.So the question is:re there
I have an ASP.NET application running on multiple IIS6 web servers, with a SQL Server 2005 database back-end.
I need to:
monitor the database for the completion of an external job event, and then have exactly one web application instance submit some information to a web service For (1) it seems like a SqlDependency would be the best approach (or just plain old polling). Each web application instance would register such a dependency when it starts up. (I don't want to configure a 'master' instance because the failure of that instance would mean the task doesn't proceed, even if other instances are available. Thus my design is to ensure that if there is an instance available to do the work, then the work ought to proceed.)
For (2) I have been thinking of having some sort of flag in the database that the web application instances try to update once they receive the SqlDependency notification in (1), along the following line (greatly simplified):
UPDATE StatusTable SET TaskStatus = 1 WHERE TaskStatus = 0
SELECT @@ROWCOUNT
that only one application instance would have been able to update the TaskStatus, and thus only one instance would have a @@ROWCOUNT > 0. This would then be the instance 'elected' to submit the information to the web service.
I've just enabled config transformations on a .NET 3.5 project in VS2010 RC after watching Scott Hanselman's video on web deployment. Unfortunately every time I go to publish I now get the following error:
The "TransformXml" task failed unexpectedly. System.UriFormatException: Invalid
[code]...
If I take a brand new VS2010 web application which already has the configtransformations by default I don't have a problem so I suspect my issue is project related.
The reports accessed by Branch users is gets time out, they are getting error like "Page can not be displayed" or asking again userid and password window. This error generally occurs when we select selection parameter of the report or sometime when click in view report option.
At branch end some of the other reports doesnot have such problems, they are opening. but i doesnt know why such prob comes in these reports.My branch user is connected to the Windows server 2003 s2, sql 2005 with VPN.
Actaully the problem only occuring in branch offices, all the locally end user there is not any problems.
Today I was sending some messages to my friends on Facebook. My friend by accident plug-out my network cable and I didn't see my connection lost. When I tried to send my message, Facebook gave me a little error on message sendin window, but Facebook was looking very good as when my connection online. When connection losts during form or data sending/receiving process on my Asp.NET web sites. Standart "Page can not be displayed. Try again." page shows up. How can we do it like facebook?
created website in VS2008 with createuser and login page.I was able to run the createuser page, but while trying to run the login page i received error:Server Error in '/' application.resources not found.
I am creating a feature which will allow users to import data of excel sheet to database.First, data will be imported from excel sheet and will be displayed in a tabular format.User performs a mapping porcess for database fields and click Submit button.Then a stored procedure inserts all the data of each row into more than 15 tables.
Above mentioned process might cause an issue if users import more than 1000 records (they are definitely going to do that. Thats why this entire functionality is intended for).Basically, what I would like to do is, Insert all the rows to a single table (Temp table), have a cloumn in a table which will be a flag and initially, will be set to "Pending".Create a page which will be executed when there are less users accessing the system (Specific time),
This page will see if there are records in a temp table with FLAG "Pending". If yes then it will fetch one record from the table and will insert data of first row into all the necessary tables. After first transaction it will wait for some time and will fetch the second record....This will last until the final row of temp table is reached.
I'm using ASP.NET 3.5I have created a Master Page. The master page is simple. It has a table at the top which has the colors and rows and columns and text that I need on each web page that gets displayed. Beneath the table I have a ContentPlaceHolder. The master page works as it's supposed too for each web page that gets displayed.My question is that I have this header at the top and then the ContentPlaceHolder, but how do I add a Footer to the Master Page? The footer naturally needs to be at the bootom of the Master Page!How do you add a footer and make it remain after the ContentPlaceHolder at the bootom of the Master Page?