ASP.NET compile

  • Thread starter Thread starter Drun
  • Start date Start date
D

Drun

You deploy your ASP.NET code to a web server then you hit your web site with
your browser. Normally, it is slow because the server will compile your site
becuase you are the first to access it.

I know you can pre-compile a site in a bin directory, but what happens when
the server compiles your site? I have not seen any bin folder created
automatically when hitting the server right?
 
You deploy your ASP.NET code to a web server then you hit your web site with
your browser. Normally, it is slow because the server will compile your site
becuase you are the first to access it.

I know you can pre-compile a site in a bin directory, but what happens when
the server compiles your site? I have not seen any bin folder created
automatically when hitting the server right?

The /bin folder does not created automatically, it contents
application assembles manually compiled (or a third-party compiled
assembles used by your application).

The "pre-compilation", you are talking about, uses the Temporary
ASP.NET File directory.
 
There are a couple of ways to publish to a server. In the first, you send
out all of your code and each page compiles as it is hit. In the other, you
publish with the DLLs. In each case, hitting the precompile.axd loads pages
into memory.

In case 1 (code on server), it both compiles and JIT compiles to place in
memory.

In case 2 (compiled to DLLs) it just does the JIT compile, which loads into
memory.

--
Gregory A. Beamer
MVP; MCP: +I, SE, SD, DBA
http://gregorybeamer.spaces.live.com

*********************************************
Think outside the box!
*********************************************
 
Unless he uses the publish feature and publishes with the initial compile
state completed (and has DLLs in the bin folder). In this case, it simply
has to do the load into memory.

--
Gregory A. Beamer
MVP; MCP: +I, SE, SD, DBA
http://gregorybeamer.spaces.live.com

*********************************************
Think outside the box!
*********************************************
 
Back
Top