.NET Tutorials, Forums, Interview Questions And Answers
Welcome :Guest
Sign In
Win Surprise Gifts!!!

Top 5 Contributors of the Month
Gaurav Pal
Post New Web Links

Problem with 1st time loading of website

Posted By:      Posted Date: September 29, 2010    Points: 0   Category :ASP.Net


I am facing a strange issue with my website ... If there is a longer inactive period (say a few hours) on my website, and when it is first opened after a longer period of inactivity, it takes almost 50 to 60 seconds to load 1st page.

However, thenafter if you reload the indexpage or open any other pages, they are opening in a few seconds.

This is trace information about opening my default page . (After 8 ours of innactivity)

aspx.page Begin PreInit
aspx.page End PreInit 6,5818664 6,581866
aspx.page Begin Init 6,5971016 0,015235
aspx.page End Init 6,9403593 0,343258
aspx.page Begin InitComplete 6,9404871 0,000128
aspx.page End InitComplete 6,9406603 0,000173
aspx.page Begin PreLoad 6,940708 0,000048
aspx.page End PreLoad 6,9622082 0,021500
aspx.page Begin Load 6,9623434 0,000135
aspx.page End Load 44,5811131 37,618770
aspx.page Begin LoadComplete 44,6315493 0,050436
aspx.page End LoadComplete 44,6571296 0,025580
aspx.page Begin PreRender 44,65722 0,000090
aspx.page End PreRender 45,0207436 0,363524
aspx.page Begin PreRenderComplete 45,0208894 0,000146
aspx.page End PreRenderComplete 50,0494938 5,028604
aspx.page Begin SaveState 50,3189146 0,269421
aspx.page End SaveState 51,6102916 1,291377

View Complete Post

More Related Resource Links

On page loading or executing all CSS flags are ignored and website is plain without formatting


 My problem is whenever i execute my app the first page that loads is the login page pointed to by my web.config file forms authentication, this page is meant to show CSS formatting for the info i am displaying but it is not. Any help with this problem would be great. A cut and paste of my problem is shown below as you can see there is no CSS.

jsfdnjldfngjfg here it is

Account Login
User Id:
Forgot Password?

I have inserted all the link as in:




Automatically Execute Code at certain time from website


Is there a way to trigger a piece of code to execute at a certain time once a week?

I basically want my website to send out a reminder email every sunday. I have a function called SendReminder() and I would like to know if it is posible for it to run by itself because at the minute I have to press a button to run it.


Report viewer problem in Publish Website

hi all,          I have done website designing and i published that website in vs2005 after that i transfer to iis webroot. when i open the report viewer page i got the below error,An error occurred during local report processing.    The definition of the report 'Main Report' is invalid.      The report definition is not valid. Details: Data at the root level is invalid. Line 1, position 1.the same reportviewer page opened when i was upload to webroot without publishing website..i added all report dll file, but i got the above error (published website)Thank You,Arunabathan.G  

run-time error's do not jump to problem line but to assembly with some xml error.

  Used too, when there was a runtime error the ide would break at the line that caused the problem. Now I'm thrown into some assembly code with the error System.Windows.Markup.XamlParseException was unhandled   Message='The invocation of the constructor on type 'Main.MainWindow' that matches the specified binding constraints threw an exception.' Line number '4' and line   Which is extremely uninformative and inefficient. I can look down the chain to find the error thrown but this still is not very informative. How the heck can I get it back to the way it used to be? This has something to do with wpf and the assembly code has System.Windows.Markup.XamlReader.RewrapException as the address. I spend anywhere from 10x to 10000x as long because of this. If the code is simple then I still have to read the error code and click a button which takes time.   Also, I'd rather it break on the line and quit the process as it used to do. I don't need JIT debugging.  

First time facing this problem in aspx page how to solve this..go to now

Hi . We have developed an asp.net application in Visual Studio 2008 with built in crystal report version =10.5.3700.0 , which is working fine in our local server. Our hosting server has crystal report file version =, Which is running on windows server 2008 (x64) with IIS 7. On load my crystal report aspx page am getting the following error. Error in File UNKNOWN.RPT: The request could not be submitted for background processing. Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.  Exception Details: System.Runtime.InteropServices.COMException: Error in File UNKNOWN.RPT: The request could not be submitted for background processing. Source Error:  Line 32:         string user = ConfigurationManager.AppSettings["Userid"]; Line 33: Line 34:         crReportDocument.Load(Server.MapPath("CrystalReport.rpt")); Line 35: Line 36:         crConnectionInfo.ServerName = Server1; Source File: d:\inetpub\vhosts\xxxx.com\httpdocs\DT\Default.aspx.cs    Line: 34  Stack Trace:  [COMException (0x800002ad): Error in F

Date Time interval Problem

Hi I have a problem in which i have to check the time interval to the another which is already exist in Database table.For Exp.10:00 am  To 11:00 am i add an Event now if user insert the again this time interval  it's throw the error message.if user want's to edit this event For exp.10:15 am to 11:00 amhow do this.Thanks

Getting Query Time Out Problem in Particular Dimension?

We are getting query time out problem in particular dimension in SSAS. can any one help on this?  

Problem while 2 User write in a File a the Same time


Hi Everyone
I am facing a problem while a user is going to write in a file. My question is that if a User A open a file and start writing in file usin FileStream, if at the same other user try to access this file and try to write in it then he should wait until User A does not complete his work and close writer object.  Waiting for quick response. It is very urgent. Thanks in advance.


Error loading from XML. No further detailed error information can be specified for this problem beca


I am using SMO within c#.NET to build a SMO transfer object and then execute it to transfer data between various SQL instances...Think Import/Export wizard with some error handling ;)

using Microsoft.SqlServer.Management.Smo;
using Microsoft.SqlServer.Management.Common;

If i run in debug mode the application runs fine.  As soon as I publish and run it on the same machine, same user I get the following error as soon as the transfer is attempted

The package failed to load due to error 0xC0011008 "Error loading from XML. No further detailed error information can be specified for this problem because no Events object was passed where detailed error information can be stored.". This occurs when CPackage::LoadFromXML fails.

Having watched the package it's ouput in DEBUG mode I can see it creating temporary xml files (TransferMetadata491574513.xml) with the various SQL scripts and a temporary DTSX file in "C:\Documents and Settings\MYUSER\Local Settings\Application Data\Microsoft\SQL Server\Smo" , these do not get created using the published version.

If i run the exe in the DEBUG or RELEASE folder it also works fine.  The only issue is when i Publish the application.


Any suggestions?


I have checked the two MSDN articles http://support.microsoft.com/?id=918038 and http:

Problem on opening child window on third time



I have a button that having an attributes as follow:

btnAddColumn.Attributes.Add("onClick", "selectDetailColumn('Type1',1); return false");

It will open a child window with the following assignment.

<script language="javascript" type="text/javascript">

        function selectDetailColumn(area, testType) {
            scLeft = (window.screen.availWidth - 600) / 2;
            scTop = (window.screen.availheight - 700) / 2;
            window.open('Details.aspx?, 'PopUp', 'width=600,height=700,top=' + scTop + ',left=' + scLeft + ',toolbars=no,scrollbars=no,status=no,resizable=no');

On this details.aspx, I have button to close the form as below:

<asp:Button ID="btnClose" runat="server" Width="80" Text="Close" OnClientClick="window.close();" />

What I did is when I open the child window, I will click on the Close button. I will repeat this process again. And on the third time I open the child window again, it wont open it, but instead the page "stays loading...".

Seems like the IIS is not responding.

Loading Static Files in a website from a network share


Hi everyone

Hopefully someone can give me some input on this problem

I have a secured network share which has folders arranged by user Identifiers. These folders consists of HTML files (and their content which is spread across sub folders). The content can be any static file (image,css) etc. All i know (through a config file) is the HTML file i need to load. Then i am blind to its content.

I cannot unfortunately import this folder/files under my web application due to certain security concerns.

Is there any way through my web application(Asp.net 2 and IIS 6) that i can load this file when the request comes through.



Loading a Remote Page problem


I have an instance where I need to show a classic ASP page within an ASP.Net page. I didn't want to use an iframe for several reasons, but those aren't the issue here. I searched and searched and finally found some code that would let me do it, available here: http://www.mikesdotnetting.com/Article/49/How-to-read-a-remote-web-page-with-ASP.NET-2.0. I implemented the C# code and found that for the purpose of loading a plain HTML page it works just grand. But, when I try to load a Classic ASP page that way, I get a 500 Server error. The page that I am trying to load works just fine if I load it directly into a browser, or into an iframe, but not using this method.

I'd really like to know what is causing the error so that I can fix it. If I could get the whole error response that the page sends out it would be helpful. I'm just not well-versed in how these classes work deep inside. Should I be setting a user agent or some of the other header values? If so, what should they be set to and how? Any insight would be very appreciated. For completeness, my code follows.

using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Web;
using System.Web.Security;

problem with ajax control while upgrading website from 3.5 to 4.0 frame work



i am working on asp.net website.

on my web page i  submit some data on click at button , this block is inside update panel.

this functionality working fine in 3.5 frame work.

Now  our website is using 4.0 frame work.

controls inside update panel giving following error on submting data :

Microsoft JScript runtime error: Sys.WebForms.PageRequestManagerServerErrorException: An unknown error occurred while processing the request on the server. The status code returned from the server was: 500.

 thanks in advance

Problem with a calculated measure that works across different time hierarchies.


I was inspired to create a calculated measure which works with all available time hierarchies after reading this original post.


I created   a calculated measure called ‘Selected Hierarchy’ as follow which returns either ‘Admit’, ‘Received’ or ‘Discharge’ as the hierarchy is selected.


when NOT IsError(Extract ( Axis (0), [Admit Date].[Date Hierarchy]).Count ) then 'Admit'

date time problem


hi i hv a table in ms-access that have a column in datetime format.when i add data to this field it get stored in the format dd/mm/yy with time as 12.00.00 am.i m binding this data in grid view.hw can i remove the time from the date as i dont wanna show time in the that column of grid view. i m binding the data in gridview by the template field binding methods  

Problem on loading sharepoint pages in Iframe.


Hi All,


I am using WSS 3.0.

I have 2 sharepoint application pages. ie, the pages A(http://site1.com/A.aspx) and B(http://site2.com/B.aspx).During the page load of A, we create an iframe and load the page B on it.  But it does not work, the login page shows in my iframe. These two pages may be in same domain. Is there any problem on loading sharepoint pages on iframe?


Please help me.


Thanks in Advance...


one user open a website (one computer and not another computer) on same time


how to restrict web site one time login(1101) at same time nobody used  this id (1101)

ASP.NetWindows Application  .NET Framework  C#  VB.Net  ADO.Net  
Sql Server  SharePoint  Silverlight  Others  All   

Hall of Fame    Twitter   Terms of Service    Privacy Policy    Contact Us    Archives   Tell A Friend