473,769 Members | 2,143 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 1354

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.comwro te:
>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
1608
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 sample.aspx.cs will automatically be precompiled into bin\sampleProject.dll Do you have to manually run the csharp compiler to precompile your files or is this only if you wish to precompile specific classes? Cheers
3
2819
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 apps to call web services that REQUIRE Client Certificates via SSL long version our company has new requirements, all servers must REQUIRE SSL and Server/client certificates i have setup a test Win2003 server to issue certs so i have a full test...
3
1288
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 from a broadband connection, it loads just fine. But when i try to access the page from a dialup 56 kbps, it says the page cannot be accessed error -1 and doesn't load the page at all.
4
1658
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 postbacks some data or enters the page for the first time, his browser is not freezed. Whenever the user wants, he can stop, refresh or go somewhere else, whilst the request is being processed.
5
1510
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 mine) on another servers. I wonder how could I boost the applications. The only thing I suspect is that in configuration manager in my VS2003 I have got debug. Could you tell me your suggestions please?
0
1138
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. How can I do?
2
1654
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
2438
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 experience on developing C# windows form, engineer B has 2 experience on developing C# web form, B also knows Javascript as well. They both has the same apprehesnion for the Database things, they all devote themselves completely to their developing...
1
7047
by: Eyes | last post by:
Hello sir/madam, My COBOL program is :: *******TOP OF PROGRAM********* IDENTIFICATION DIVISION. PROGRAM-ID. HELLO. *************************************** PROCEDURE DIVISION. DISPLAY 'HELLO WORLD' .
0
9583
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
10210
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. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
9860
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
1
7406
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 instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6668
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 into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5297
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 the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5445
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
3955
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
3
2814
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 effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.