473,406 Members | 2,619 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,406 software developers and data experts.

ASPNet 2.0 precompilation and speed question

Hi,

I tested my ASPNet web application and then found it takes a long time to
start at the first time.
So I surfed the web and found using aspnet_compile method.
When I execute the aspnet_compile -v /MyWeb, the compilation is OK and
returns no error.
But I found the speed didn't get promoted much, it still took long time to
open the application at the first time.
Would someone give me some advice?
Thanks for help.
Jason
Sep 20 '07 #1
1 1345

The first time a site is hit IIS must load the asp.net worker process
and basically start up the .NET runtime. That takes a little bit of
time and is very noticeable on first hit.

You can use some outisde process like a scheduled task to force a load
when the computer starts up by requesting any random url within your
application, but ASP.NET will shut down the application based on
inactivity soon thereafter.

One thing I've done with some success is use a plain HTML file as the
first page and have that reference an aspx file (for an image or
something unimportant). The HTML file gets delivered quickly and the
referenced aspx file forces ASP.NET to load. You can have your app
generate the start page HTML file so it is not truely static. May not
work in all situations, but does in some.

HTH,

Sam

------------------------------------------------------------
We're hiring! B-Line Medical is seeking .NET
Developers for exciting positions in medical product
development in MD/DC. Work with a variety of technologies
in a relaxed team environment. See ads on Dice.com.

On Thu, 20 Sep 2007 11:27:22 +0800, "Jason Huang"
<Ja************@hotmail.comwrote:
>Hi,

I tested my ASPNet web application and then found it takes a long time to
start at the first time.
So I surfed the web and found using aspnet_compile method.
When I execute the aspnet_compile -v /MyWeb, the compilation is OK and
returns no error.
But I found the speed didn't get promoted much, it still took long time to
open the application at the first time.
Would someone give me some advice?
Thanks for help.
Jason
Sep 20 '07 #2

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

Similar topics

1
by: Bingo | last post by:
I'm confused by something to do with precompilation... It is my understanding that if you have an sample.aspx with <%@ page inherits="sampleNameSpace.sampleClass" %> in visual studio.net then...
3
by: Tim Burris | last post by:
At the top here i will put a quick description of my problem followed by the long description. This way you want get bored reading! : short version what is the best/recommended way for ASPNET...
3
by: Harry Simpson | last post by:
I've got an aspnet page that is primarily a datagrid within a DIV that loads a dataset from a SQLServer call on load. It returns about 187 records. The kicker is that when i access this page...
4
by: Michał Januszczyk | last post by:
What may be the reason for the following behavior: There is an asp.net application. The application is quite complex. Sometimes user request processing lasts long (even 1 ). When user...
5
by: Dariusz Tomon | last post by:
Hi I noticed that all my ASPNET applications (+ MSSQL Server - I checked the database and it is ok) run very slowly (especially from the beginning). I made comparison to other applications (not...
0
by: ad | last post by:
I deployment a precompiled asp.net applicaiton to server. But when user request the web page, server result in an error message This tag is generate by a precompilation tool, can't be delete. ...
2
by: archana | last post by:
Hi all, Can anyone tell me drawbacks of precompilation using ngen over jit compilation apart from that it generate native code for complete il code? thanks in advance
4
by: Jason Huang | last post by:
Hi, I am thinking in comparing developing speed between C# Windows Form and C# Web Form applications. Assuming the scenario is that we have 2 C# coding engineers, engineer A has 2 years...
1
by: Eyes | last post by:
Hello sir/madam, My COBOL program is :: *******TOP OF PROGRAM********* IDENTIFICATION DIVISION. PROGRAM-ID. HELLO. *************************************** PROCEDURE DIVISION. DISPLAY...
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: 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...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
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...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
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...

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.