Variable JIT of ASPX files?

Ask a Question related to ASP.NET General, Design and Development.

  1. #1

    Default 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


    Glen Guest

  2. Similar Questions and Discussions

    1. put aspx files online
      Can you post the detailed err. msg? -- G. "Marichael Davy" wrote:
    2. How to Deploy aspx files
      Hi everybody, I'm a new be for ASP .NET. I made a simple project (C# coded web project) and I want to deploy it to my web site. My project...
    3. Templates + aspx files
      i've created a dreamweaver template wich use microsoft user controls i applyed it to all my pages and everything goes fantastic. it looks like: <%@...
    4. .aspx files don't work
      I have been having some trouble with my web server running under Windows 2000 Server, so I removed IIS and reinstalled it. Now, I noticed that my...
    5. ASP Session Variable Info missing after accessing ASPX
      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...
  3. #2

    Default Re: Variable JIT of ASPX files?

    "Glen" <glittle@sunwaptasolutions.RemoveThis.com> wrote in
    news:uyvuWt6ODHA.3144@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.
    [url]http://www.crtimmonsinc.com/[/url]
    Chris R. Timmons Guest

  4. #3

    Default Re: Variable JIT of ASPX files?

    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:Xns93A63E230D426crtimmonscrtimmonsin@207.46.2 48.16...
    > "Glen" <glittle@sunwaptasolutions.RemoveThis.com> wrote in
    > news:uyvuWt6ODHA.3144@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.
    > [url]http://www.crtimmonsinc.com/[/url]

    Glen Guest

Posting Permissions

  • You may not post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139