Compilation Issue

Discussion in 'ASP .Net' started by thomson, Oct 5, 2005.

  1. thomson

    thomson Guest

    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
    thomson, Oct 5, 2005
    #1
    1. Advertising

  2. thomson

    Patrice Guest

    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" <> a écrit dans le message de
    news:...
    > 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
    >
    Patrice, Oct 5, 2005
    #2
    1. Advertising

  3. thomson

    Scott Allen Guest

    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" <>
    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
    Scott Allen, Oct 5, 2005
    #3
  4. thomson

    thomson Guest

    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-us/cpguide/html/cpconMicrosoftIntermediateLanguageMSIL.asp
    >
    > --
    > Scott
    > http://www.OdeToCode.com/blogs/scott/
    >
    > On 5 Oct 2005 05:46:07 -0700, "thomson" <>
    > 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
    thomson, Oct 6, 2005
    #4
  5. 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" <> wrote in message
    news:...
    > 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-us/cpguide/html/cpconMicrosoftIntermediateLanguageMSIL.asp
    >>
    >> --
    >> Scott
    >> http://www.OdeToCode.com/blogs/scott/
    >>
    >> On 5 Oct 2005 05:46:07 -0700, "thomson" <>
    >> 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
    Juan T. Llibre, Oct 6, 2005
    #5
  6. thomson

    thomson Guest

    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" <> wrote in message
    > news:...
    > > 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-us/cpguide/html/cpconMicrosoftIntermediateLanguageMSIL.asp
    > >>
    > >> --
    > >> Scott
    > >> http://www.OdeToCode.com/blogs/scott/
    > >>
    > >> On 5 Oct 2005 05:46:07 -0700, "thomson" <>
    > >> 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
    thomson, Oct 6, 2005
    #6
  7. 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/
    ======================================
    "thomson" <> wrote in message
    news:...
    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" <> wrote in message
    > news:...
    > > 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-us/cpguide/html/cpconMicrosoftIntermediateLanguageMSIL.asp
    > >>
    > >> --
    > >> Scott
    > >> http://www.OdeToCode.com/blogs/scott/
    > >>
    > >> On 5 Oct 2005 05:46:07 -0700, "thomson" <>
    > >> 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
    Juan T. Llibre, Oct 6, 2005
    #7
    1. Advertising

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

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. XD

    Compilation Issue ::

    XD, Aug 11, 2006, in forum: ASP .Net
    Replies:
    1
    Views:
    329
    David Wier
    Aug 11, 2006
  2. seema

    compilation issue

    seema, Mar 3, 2006, in forum: C++
    Replies:
    7
    Views:
    382
    Simon Elliott
    Mar 3, 2006
  3. Compilation Issue.

    , Aug 7, 2007, in forum: C Programming
    Replies:
    3
    Views:
    297
    Marcin Wolcendorf
    Aug 10, 2007
  4. mearvk

    Xerces Compilation Issue

    mearvk, Oct 3, 2007, in forum: C++
    Replies:
    5
    Views:
    390
    tragomaskhalos
    Oct 5, 2007
  5. C__chp
    Replies:
    4
    Views:
    493
    Puppet_Sock
    Feb 15, 2008
Loading...

Share This Page