Compilation Issue

  • Thread starter Thread starter thomson
  • Start date Start date
T

thomson

Hi all,
I have compiled by .net web applicaion in my local machine ,
and a dll has been created on the bin Directory,

And i have copied the entire application using xcopy deployment to a
different server.

i have copied only the aspx file , the dll file as well as the config
files.

And iam able to browse the application .

Since we have a precompiled dll in the bin folder.
When i request this application will any sort of compilation takes
place?, even at any point of time?


Regards

thomson
 
ASPX pages are compiled the first time they are hit. You'll be able to fully
compile a site in 2.0 (heard that even images and other resources ould be
embedded in the DLL).
 
There is always going to be some level of compilation.

In 1.x the runtime needs to generate code for the ASPX files and
compile the generated code to MSIL [1].

In 2.0 you can do all the code-gen and MSIL compilation up front, but
MSIL is still an intermediate language. the runtime uses a Just In
Time compiler to produce native instructions from the MSIL as the
application is executing.

[1]
http://msdn.microsoft.com/library/en-us/cpguide/html/cpconMicrosoftIntermediateLanguageMSIL.asp
 
Hi Scott,
So do you mean to say that apart from the dll compilation
for the first time there will be another level of compilation , any
idea about how frequently or when ever an aspx page is called or it is
redirected this compilation what you said will occur?

Regards

thomson

Scott said:
There is always going to be some level of compilation.

In 1.x the runtime needs to generate code for the ASPX files and
compile the generated code to MSIL [1].

In 2.0 you can do all the code-gen and MSIL compilation up front, but
MSIL is still an intermediate language. the runtime uses a Just In
Time compiler to produce native instructions from the MSIL as the
application is executing.

[1]
http://msdn.microsoft.com/library/en-us/cpguide/html/cpconMicrosoftIntermediateLanguageMSIL.asp

--
Scott
http://www.OdeToCode.com/blogs/scott/

Hi all,
I have compiled by .net web applicaion in my local machine ,
and a dll has been created on the bin Directory,

And i have copied the entire application using xcopy deployment to a
different server.

i have copied only the aspx file , the dll file as well as the config
files.

And iam able to browse the application .

Since we have a precompiled dll in the bin folder.
When i request this application will any sort of compilation takes
place?, even at any point of time?


Regards

thomson
 
What he meant is that ASP.NET will take the request made for the
ASPX page, retrieve the response from the compiled assemblies'
MSIL ( in the bin directory ), and recompile them into individual page dll's,
which are placed in the "Temporary ASP.NET Files" directory.

It is the output from those individual page dll's which is sent to clients.

That happens in both 1.x and 2.0, but in 2.0 there's an additional compilation
made with any source files placed in the App_Code directory.




Juan T. Llibre, ASP.NET MVP
ASP.NET FAQ : http://asp.net.do/faq/
Foros de ASP.NET en Español : http://asp.net.do/foros/
======================================
thomson said:
Hi Scott,
So do you mean to say that apart from the dll compilation
for the first time there will be another level of compilation , any
idea about how frequently or when ever an aspx page is called or it is
redirected this compilation what you said will occur?

Regards

thomson

Scott said:
There is always going to be some level of compilation.

In 1.x the runtime needs to generate code for the ASPX files and
compile the generated code to MSIL [1].

In 2.0 you can do all the code-gen and MSIL compilation up front, but
MSIL is still an intermediate language. the runtime uses a Just In
Time compiler to produce native instructions from the MSIL as the
application is executing.

[1]
http://msdn.microsoft.com/library/en-us/cpguide/html/cpconMicrosoftIntermediateLanguageMSIL.asp

--
Scott
http://www.OdeToCode.com/blogs/scott/

Hi all,
I have compiled by .net web applicaion in my local machine ,
and a dll has been created on the bin Directory,

And i have copied the entire application using xcopy deployment to a
different server.

i have copied only the aspx file , the dll file as well as the config
files.

And iam able to browse the application .

Since we have a precompiled dll in the bin folder.
When i request this application will any sort of compilation takes
place?, even at any point of time?


Regards

thomson
 
Hi Juan,
Observations That i have found.
1. from the temporary Internet folders /vswebcache i have deleted the
particular application folder.
and i have accessed the my application , so nothing was created in the
temporary Internet folders
2. Then i opened my application in the Visual studio editor , at that
time a new folder of the application was created .

Can you please tell me from which place i will be able to access the
individual page dll in the temporary internet folder.


Thanks in Advance

thomson
What he meant is that ASP.NET will take the request made for the
ASPX page, retrieve the response from the compiled assemblies'
MSIL ( in the bin directory ), and recompile them into individual page dll's,
which are placed in the "Temporary ASP.NET Files" directory.

It is the output from those individual page dll's which is sent to clients.

That happens in both 1.x and 2.0, but in 2.0 there's an additional compilation
made with any source files placed in the App_Code directory.




Juan T. Llibre, ASP.NET MVP
ASP.NET FAQ : http://asp.net.do/faq/
Foros de ASP.NET en Español : http://asp.net.do/foros/
======================================
thomson said:
Hi Scott,
So do you mean to say that apart from the dll compilation
for the first time there will be another level of compilation , any
idea about how frequently or when ever an aspx page is called or it is
redirected this compilation what you said will occur?

Regards

thomson

Scott said:
There is always going to be some level of compilation.

In 1.x the runtime needs to generate code for the ASPX files and
compile the generated code to MSIL [1].

In 2.0 you can do all the code-gen and MSIL compilation up front, but
MSIL is still an intermediate language. the runtime uses a Just In
Time compiler to produce native instructions from the MSIL as the
application is executing.

[1]
http://msdn.microsoft.com/library/en-us/cpguide/html/cpconMicrosoftIntermediateLanguageMSIL.asp

--
Scott
http://www.OdeToCode.com/blogs/scott/

On 5 Oct 2005 05:46:07 -0700, "thomson" <[email protected]>
wrote:

Hi all,
I have compiled by .net web applicaion in my local machine ,
and a dll has been created on the bin Directory,

And i have copied the entire application using xcopy deployment to a
different server.

i have copied only the aspx file , the dll file as well as the config
files.

And iam able to browse the application .

Since we have a precompiled dll in the bin folder.
When i request this application will any sort of compilation takes
place?, even at any point of time?


Regards

thomson
 
re:
temporary Internet folders /vswebcache

That's not the correct directory.

The "Temporary ASP.NET Files" directory is located in :
drive:\WINDOWS\Microsoft.NET\Framework\version\Temporary ASP.NET Files

where "version" stands for "v1.1.4322" or "v2.0.xxxx",
depending on whether you're running .Net 1.1 or 2.0.

BUT, you should *not* do anything with those files.
ASP.NET accesses them as needed.

There's *nothing* you can do with those files.
If you delete them, they will be recreated the next time a page is called.



Juan T. Llibre, ASP.NET MVP
ASP.NET FAQ : http://asp.net.do/faq/
Foros de ASP.NET en Español : http://asp.net.do/foros/
======================================
Hi Juan,
Observations That i have found.
1. from the temporary Internet folders /vswebcache i have deleted the
particular application folder.
and i have accessed the my application , so nothing was created in the
temporary Internet folders
2. Then i opened my application in the Visual studio editor , at that
time a new folder of the application was created .

Can you please tell me from which place i will be able to access the
individual page dll in the temporary internet folder.

Thanks in Advance

thomson
What he meant is that ASP.NET will take the request made for the
ASPX page, retrieve the response from the compiled assemblies'
MSIL ( in the bin directory ), and recompile them into individual page dll's,
which are placed in the "Temporary ASP.NET Files" directory.

It is the output from those individual page dll's which is sent to clients.

That happens in both 1.x and 2.0, but in 2.0 there's an additional compilation
made with any source files placed in the App_Code directory.




Juan T. Llibre, ASP.NET MVP
ASP.NET FAQ : http://asp.net.do/faq/
Foros de ASP.NET en Español : http://asp.net.do/foros/
======================================
thomson said:
Hi Scott,
So do you mean to say that apart from the dll compilation
for the first time there will be another level of compilation , any
idea about how frequently or when ever an aspx page is called or it is
redirected this compilation what you said will occur?

Regards

thomson

Scott said:
There is always going to be some level of compilation.

In 1.x the runtime needs to generate code for the ASPX files and
compile the generated code to MSIL [1].

In 2.0 you can do all the code-gen and MSIL compilation up front, but
MSIL is still an intermediate language. the runtime uses a Just In
Time compiler to produce native instructions from the MSIL as the
application is executing.

[1]
http://msdn.microsoft.com/library/en-us/cpguide/html/cpconMicrosoftIntermediateLanguageMSIL.asp

--
Scott
http://www.OdeToCode.com/blogs/scott/

On 5 Oct 2005 05:46:07 -0700, "thomson" <[email protected]>
wrote:

Hi all,
I have compiled by .net web applicaion in my local machine ,
and a dll has been created on the bin Directory,

And i have copied the entire application using xcopy deployment to a
different server.

i have copied only the aspx file , the dll file as well as the config
files.

And iam able to browse the application .

Since we have a precompiled dll in the bin folder.
When i request this application will any sort of compilation takes
place?, even at any point of time?


Regards

thomson
 
Back
Top