Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > Compilation Issue

Reply
Thread Tools

Compilation Issue

 
 
thomson
Guest
Posts: n/a
 
      10-05-2005
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

 
Reply With Quote
 
 
 
 
Patrice
Guest
Posts: n/a
 
      10-05-2005
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).

--
Patrice

"thomson" <(E-Mail Removed)> a écrit dans le message de
news:(E-Mail Removed) ups.com...
> 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
>



 
Reply With Quote
 
 
 
 
Scott Allen
Guest
Posts: n/a
 
      10-05-2005
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...nguageMSIL.asp

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

On 5 Oct 2005 05:46:07 -0700, "thomson" <(E-Mail Removed)>
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


 
Reply With Quote
 
thomson
Guest
Posts: n/a
 
      10-06-2005
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 Allen wrote:
> 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...nguageMSIL.asp
>
> --
> Scott
> http://www.OdeToCode.com/blogs/scott/
>
> On 5 Oct 2005 05:46:07 -0700, "thomson" <(E-Mail Removed)>
> 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


 
Reply With Quote
 
Juan T. Llibre
Guest
Posts: n/a
 
      10-06-2005
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" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed) oups.com...
> 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 Allen wrote:
>> 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...nguageMSIL.asp
>>
>> --
>> Scott
>> http://www.OdeToCode.com/blogs/scott/
>>
>> On 5 Oct 2005 05:46:07 -0700, "thomson" <(E-Mail Removed)>
>> 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



 
Reply With Quote
 
thomson
Guest
Posts: n/a
 
      10-06-2005
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

Juan T. Llibre wrote:
> 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" <(E-Mail Removed)> wrote in message
> news:(E-Mail Removed) oups.com...
> > 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 Allen wrote:
> >> 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...nguageMSIL.asp
> >>
> >> --
> >> Scott
> >> http://www.OdeToCode.com/blogs/scott/
> >>
> >> On 5 Oct 2005 05:46:07 -0700, "thomson" <(E-Mail Removed)>
> >> 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


 
Reply With Quote
 
Juan T. Llibre
Guest
Posts: n/a
 
      10-06-2005
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\Tem porary 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/
======================================
"thomson" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed) ups.com...
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

Juan T. Llibre wrote:
> 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" <(E-Mail Removed)> wrote in message
> news:(E-Mail Removed) oups.com...
> > 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 Allen wrote:
> >> 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...nguageMSIL.asp
> >>
> >> --
> >> Scott
> >> http://www.OdeToCode.com/blogs/scott/
> >>
> >> On 5 Oct 2005 05:46:07 -0700, "thomson" <(E-Mail Removed)>
> >> 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



 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Compilation error with seperate compilation C__chp C++ 4 02-15-2008 03:57 PM
Xerces Compilation Issue mearvk C++ 5 10-05-2007 08:38 AM
Compilation Issue. karthik.naig@gmail.com C Programming 3 08-10-2007 02:00 PM
Compilation Issue :: XD ASP .Net 1 08-11-2006 04:39 PM
compilation issue seema C++ 7 03-03-2006 04:32 PM



Advertisments