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

Variable JIT of ASPX files?

As I understand it, when the first page of an application is accessed, all
ASPX/ASCX/etc. files in the same folder are compiled using the JIT compiler.

Is there a way to turn this feature off?

As a developer, I am sometimes working on a single file that is in a folder
with many (dozens or hundreds) of other files. After rebuilding the project,
I want to look at that one ASPX file. However, I must always wait for all
the other ASPX files in the folder to also be compiled.

I accept that this is good for most web sites, but during development, I
only want the page(s) I access to be compiled.

Is that possible?

Glen
Nov 17 '05 #1
2 2345
"Glen" <gl*****@sunwaptasolutions.RemoveThis.com> wrote in
news:uy**************@tk2msftngp13.phx.gbl:
As I understand it, when the first page of an application is
accessed, all ASPX/ASCX/etc. files in the same folder are
compiled using the JIT compiler.
Glen,

That's not correct. You can see what ASP.NET is doing by examining
the temporary ASP.NET folder during your program's execution. The
folder is located at:

C:\WINDOWS\Microsoft.NET\Framework\v1.1.4322\Tempo rary ASP.NET
Files\<YOUR APP'S NAME>\64f05764\576f54e7

The names of the last two subfolders are random numbers, and will be
different on your system.

Start your application, then navigate to that folder using Windows
Explorer. (If Windows Explorer already has that folder open when the
app starts, ASP.NET may throw an error).

Access a page on your site. Check the folder for new files ASP.NET
generated. For example, when I accessed the login page on my site,
seven new temporary files were generated by ASP.NET on the fly (.cs,
..cmdline, .dll, .err, .out, .pdb, and .res).
As a developer, I am sometimes working on a single file that is
in a folder with many (dozens or hundreds) of other files. After
rebuilding the project, I want to look at that one ASPX file.
However, I must always wait for all the other ASPX files in the
folder to also be compiled.


Is that really the case? If all of the pages are being compiled,
their associated temporary files will show up in the temporary
folder. If that's not happening, then something else is causing the
delay.
Hope this helps.

Chris.
-------------
C.R. Timmons Consulting, Inc.
http://www.crtimmonsinc.com/
Nov 17 '05 #2
Okay...

1. I completely emptied the temporary folder.

2. I rebuilt the application (which builds the main assembly DLL(s)) -
nothing new in the temp folder

3. I accessed one page in the application root folder. After about a 6
second delay for the JIT, the page appeared. The temp folder now has a tree
of folders with a total of 13 folders, 26 files using 2,181 KB of space.

4. I accessed another page in the same root folder. No delay.

5. I accessed a page in a subfolder. There was a short delay (4 sec?). Now,
the temp folders tree has 91 files using 2,483 KB.

6. Another page in same subfolder. No noticable delay. Temp folders now have
99 files.with 2,551 KB.

7. Access a page in a different subfolder. Short delay of about 4 seconds.
Temp folders now have 140 files, 2,735 KB.

8. Access another page in same subfolder. Very short delay. Now have 148
files, 2,795 KB.
So, I suspect my understanding was wrong.

Not every page in a folder is compiled on first access. Each page seems to
be compiled to a DLL when it is first accessed. However, the first page in a
folder does take a lot longer to compile than other pages.

Is there anyway to expedite this process?

Warning! After step 8, I recompiled the Solution. It looks like it tried to
delete the temporary folder, but I had it open in Explorer. Now, the two
numbered folders are still there and cannot be accessed or deleted, even by
an Administrator. Also, the application cannot start, since it also tries to
write to that temp folder! I'll reply to this note when I get this
resolved.

Glen

"Chris R. Timmons" <crtimmons@X_NOSPAM_Xcrtimmonsinc.com> wrote in message
news:Xn**********************************@207.46.2 48.16...
"Glen" <gl*****@sunwaptasolutions.RemoveThis.com> wrote in
news:uy**************@tk2msftngp13.phx.gbl:
As I understand it, when the first page of an application is
accessed, all ASPX/ASCX/etc. files in the same folder are
compiled using the JIT compiler.


Glen,

That's not correct. You can see what ASP.NET is doing by examining
the temporary ASP.NET folder during your program's execution. The
folder is located at:

C:\WINDOWS\Microsoft.NET\Framework\v1.1.4322\Tempo rary ASP.NET
Files\<YOUR APP'S NAME>\64f05764\576f54e7

The names of the last two subfolders are random numbers, and will be
different on your system.

Start your application, then navigate to that folder using Windows
Explorer. (If Windows Explorer already has that folder open when the
app starts, ASP.NET may throw an error).

Access a page on your site. Check the folder for new files ASP.NET
generated. For example, when I accessed the login page on my site,
seven new temporary files were generated by ASP.NET on the fly (.cs,
.cmdline, .dll, .err, .out, .pdb, and .res).
As a developer, I am sometimes working on a single file that is
in a folder with many (dozens or hundreds) of other files. After
rebuilding the project, I want to look at that one ASPX file.
However, I must always wait for all the other ASPX files in the
folder to also be compiled.


Is that really the case? If all of the pages are being compiled,
their associated temporary files will show up in the temporary
folder. If that's not happening, then something else is causing the
delay.
Hope this helps.

Chris.
-------------
C.R. Timmons Consulting, Inc.
http://www.crtimmonsinc.com/

Nov 17 '05 #3

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

Similar topics

1
by: Arthur | last post by:
I have a mix web site, ASP and ASPX files. I have assigned a value to Session("Date") and the href to an ASPX page. When I further href to another ASP Page. The content in Session("Date") becoming...
4
by: Me_Titus | last post by:
I would like to know if there is any kind of difference between an empty web project and an web application project other than all the files stucked toghether to the web application project. I am...
2
by: ven | last post by:
Hello i have a question about two aspx files...I have a variable in one page called login.aspx and when user correctly loged another page is opening...this second page is called default.aspx.......
1
by: Hose B | last post by:
HI all, I have a legacy app in which users can pick various page templates. There is a template preview dialog. It works such that they view a list of icons in an asp page that represent each...
7
by: Greg Collins [MVP] | last post by:
Hi, I couldn't find what I was looking for by searching the newsgroup, but perhaps these have already been discussed somewhere. This is a bit long with a lot of interrelated questions. What I've...
12
by: Phil Certain | last post by:
Hi, I'm trying to do something very simple...or at least it should be. I have created a host page (gen.aspx) and a very simple user control (us.ascx). The corresponding code-behind files are...
3
by: Pierre | last post by:
Hello, In an aspx page (mypage.aspx) from a web projet, I would like to get the value of a variable of the projet that is declared as public in a module. The variable can be called from...
3
by: vincenthkh | last post by:
I am new in ASP.net programming (but have ASP skill) and have some problems. I have a ASPX page. First I declare the variable, then I want to include the different values to the variable based...
5
by: Sam | last post by:
Hi All, I have a very weird issue with my session variable and I'm hoping that someone can help me out. The issue is my session variable dissappears after a request is redirected to a new page....
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
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
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
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,...
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,...

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.