Compilation Issue

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
 
P

Patrice

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).
 
S

Scott Allen

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
 
T

thomson

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
 
J

Juan T. Llibre

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.





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
 
T

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.





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
 
J

Juan T. Llibre

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.




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.





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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,774
Messages
2,569,596
Members
45,139
Latest member
JamaalCald
Top