Re: Execution detail of Asp.net

From: thomson (saintthomson_at_yahoo.com)
Date: 01/26/05


Date: 25 Jan 2005 21:23:58 -0800

Hi ,
I need a clarification on the line
"it then
compiles the page to a dll in a temp dir, and loads the page (again a
call
to load library",
Because all the the dlls are already compiled and
kept in the bin directory. So what is the necessity of compiling the
page in another temp dir.
The temp directory u have mentioned is the same as the one we
have copied the dll's

Regards
thomson

bruce barker wrote:
> its pretty simple. when content is mapped to asp.net, the asp.net
filter
> usesa named pipe to talk to aspnet_wp.exe worker process. when the
first
> page is accessed (or on a recycle), the worker process creates an
app
> domain for the vdir. at this time it scans bin dir for dll's, copies
them to
> a temp dir, then loads them (here is the call to LoadLibrary). it
then
> compiles the page to a dll in a temp dir, and loads the page (again a
call
> to load library), then creates a class instance of the page. then the
page
> process cycle begins.
>
> its the copy of the dlls to temp dir that keeps them from being
locked in
> vdir itself. if you copy a new dll to the bin dir, asp.net uses a
> filewatcher to detect the change, and loads a new appdomain, stop
sending
> requests to the old app domain, and when the old domain has no more
active
> threads, unloads it.
>
> -- bruce (sqlwork.com)
>
>
> "thomson" <saintthomson@yahoo.com> wrote in message
> news:1106626267.778451.14610@z14g2000cwz.googlegroups.com...
> | Hi all,
> | When we request a webpage a series of process takes place,
> | from the beginning of the request till we get the requested page.
> | I have gone through numerous articles, of how it is done, but
> | iam bit confused also, Till now i was knowing only that the request
> | goes to the iis server, then it calls the asp.net worker process
and so
> | on.
> | but recently i read an excerpt from an article and it says
> |
> | NET Framework assemblies are typically compiled and deployed into a
> | Windows DLL-based PE format. When the common language runtime's
loader
> | resolves a class implemented within this type of assembly, it calls
the
> | Windows LoadLibrary routine on the file (which locks its access on
> | disk), and then maps the appropriate code data into memory for
run-time
> | execution. Once loaded, the DLL file will remain locked on disk
until
> | the application domain referencing it is either torn down or
manually
> | recycled.
> |
> | My confusion is how to link the above excerpt with
> | the one i have mentioned on the top, ie: when a request is made, it
> | goes to the IIS
> |
> | Does any one have a complete article or a utility that shows the
> | request-> response processes
> |
> | Thanks in advance
> |
> | regards
> |
> | thomson
> |



Relevant Pages

  • understanding files
    ... I have some questions about some exe, dll, and other ... It's called upon from the registry key ... what do these execuables do and are they necessary? ... \config.nt loads it ...
    (microsoft.public.windowsxp.general)
  • Re: ok ... so...
    ... when you first hit an asp.net site, loads a new appdomain, then loads the ... asp.net dll for that page. ... > I have about 5 user controls which build up the page. ...
    (microsoft.public.dotnet.framework.aspnet)
  • seLinux: how do I avoid this error
    ... I am writing an application for fedora cora 5 that loads a DLL. ... seLinux is enabled, I get the following error from the attempt to load ...
    (comp.os.linux.development.apps)
  • Re: Assembly loaded twice when Assembly.LoadFrom() is used
    ... resource, and when it's needed for calling entrypoints, it loads it as an ... The result is that the DLL has two occurrences in the ... > Looking at the HTTP requests that are made, ... > that the assembly is requested twice from the server. ...
    (microsoft.public.dotnet.framework.remoting)
  • Re: Distribution of MFC42.dll
    ... >>putting out for several years as a partial solution to DLL hell. ... in which anyone can write to the Windows directories. ... "temp" and recompiled, leaving this z.dll in my temp directory. ... EXE is in temp, DLL is in temp, DLL is in System32: ...
    (microsoft.public.vc.mfc)