Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Web Development
  3. ASP.NET
  4. Dynamic Compilation

Dynamic Compilation

Scheduled Pinned Locked Moved ASP.NET
csharpasp-netquestion
10 Posts 5 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • G Offline
    G Offline
    Gamzun
    wrote on last edited by
    #1

    I was just wondering how ASP.Net knows that the source code has been changed and it need to be complied?

    Please don't forget to mark 'Good Answer', if you find it really a good one! Kashif

    K A N 3 Replies Last reply
    0
    • G Gamzun

      I was just wondering how ASP.Net knows that the source code has been changed and it need to be complied?

      Please don't forget to mark 'Good Answer', if you find it really a good one! Kashif

      K Offline
      K Offline
      Keith Barrow
      wrote on last edited by
      #2

      All files in the file-system are date-stamped, that probably has something to do with it :-).

      Sort of a cross between Lawrence of Arabia and Dilbert.[^]

      G 1 Reply Last reply
      0
      • K Keith Barrow

        All files in the file-system are date-stamped, that probably has something to do with it :-).

        Sort of a cross between Lawrence of Arabia and Dilbert.[^]

        G Offline
        G Offline
        Gamzun
        wrote on last edited by
        #3

        Yeah but I'm looking for correct answer :)

        Please don't forget to mark 'Good Answer', if you find it really a good one! Kashif

        1 Reply Last reply
        0
        • G Gamzun

          I was just wondering how ASP.Net knows that the source code has been changed and it need to be complied?

          Please don't forget to mark 'Good Answer', if you find it really a good one! Kashif

          A Offline
          A Offline
          Abhijit Jana
          wrote on last edited by
          #4

          Kashif, If you are interested, please read the below article. You will get to know the details. http://www.west-wind.com/presentations/AspNetCompilation/AspNetCompilation.asp[^] Hope this will help you ! Thank you ! :)

          Cheers ! Abhijit Jana | My Blog | @Twitter | Disclaimer

          :bob: Indian CodeProject Members Meet 2010 - Nominate Now :bob:

          N 1 Reply Last reply
          0
          • G Gamzun

            I was just wondering how ASP.Net knows that the source code has been changed and it need to be complied?

            Please don't forget to mark 'Good Answer', if you find it really a good one! Kashif

            N Offline
            N Offline
            N a v a n e e t h
            wrote on last edited by
            #5

            I think there is no correct answer to this question as no one has access to the source code to verify how they do it internally. The most likely implementation would be this. ASP.NET keeps track of all the files it has compiled with a date/time stamp. When IIS gets request to serve a ASPX page, it redirects it to the ASP.NET processing handler. This will compare the requested file's modified time against the one in the cache. If it is newer, it does a compilation and updates the cache. Compilation strategy depends on what file you have changed. If the change is for top level files like, global.asax or assemblies in the bin directory, it will recompile all the files. :)

            Best wishes, Navaneeth

            G 1 Reply Last reply
            0
            • A Abhijit Jana

              Kashif, If you are interested, please read the below article. You will get to know the details. http://www.west-wind.com/presentations/AspNetCompilation/AspNetCompilation.asp[^] Hope this will help you ! Thank you ! :)

              Cheers ! Abhijit Jana | My Blog | @Twitter | Disclaimer

              :bob: Indian CodeProject Members Meet 2010 - Nominate Now :bob:

              N Offline
              N Offline
              N a v a n e e t h
              wrote on last edited by
              #6

              Abhijit Jana wrote:

              My Blog

              htt:// is not a valid protocol. http:// is. :)

              Best wishes, Navaneeth

              A 1 Reply Last reply
              0
              • N N a v a n e e t h

                Abhijit Jana wrote:

                My Blog

                htt:// is not a valid protocol. http:// is. :)

                Best wishes, Navaneeth

                A Offline
                A Offline
                Abhijit Jana
                wrote on last edited by
                #7

                N a v a n e e t h wrote:

                htt:// is not a valid protocol. http:// is.

                LoL. :omg: Thanks Mate !!!!

                Cheers ! Abhijit Jana | My Blog | @Twitter | Disclaimer

                :bob: Indian CodeProject Members Meet 2010 - Nominate Now :bob:

                A 1 Reply Last reply
                0
                • N N a v a n e e t h

                  I think there is no correct answer to this question as no one has access to the source code to verify how they do it internally. The most likely implementation would be this. ASP.NET keeps track of all the files it has compiled with a date/time stamp. When IIS gets request to serve a ASPX page, it redirects it to the ASP.NET processing handler. This will compare the requested file's modified time against the one in the cache. If it is newer, it does a compilation and updates the cache. Compilation strategy depends on what file you have changed. If the change is for top level files like, global.asax or assemblies in the bin directory, it will recompile all the files. :)

                  Best wishes, Navaneeth

                  G Offline
                  G Offline
                  Gamzun
                  wrote on last edited by
                  #8

                  I've read many article to solve this mystery and don't want to waste more time on it now :) Anyway thanks for the reply, your answer make sense!

                  Please don't forget to mark 'Good Answer', if you find it really a good one! Kashif

                  1 Reply Last reply
                  0
                  • A Abhijit Jana

                    N a v a n e e t h wrote:

                    htt:// is not a valid protocol. http:// is.

                    LoL. :omg: Thanks Mate !!!!

                    Cheers ! Abhijit Jana | My Blog | @Twitter | Disclaimer

                    :bob: Indian CodeProject Members Meet 2010 - Nominate Now :bob:

                    A Offline
                    A Offline
                    Ankur m
                    wrote on last edited by
                    #9

                    It's still showing htt: :doh:

                    ..Go Green..

                    A 1 Reply Last reply
                    0
                    • A Ankur m

                      It's still showing htt: :doh:

                      ..Go Green..

                      A Offline
                      A Offline
                      Abhijit Jana
                      wrote on last edited by
                      #10

                      I guess you are checking the old signature. After posting that message I have changed the signature.

                      Cheers ! Abhijit Jana | My Blog | @Twitter | Disclaimer

                      :bob: Indian CodeProject Members Meet 2010 - Nominate Now :bob:

                      1 Reply Last reply
                      0
                      Reply
                      • Reply as topic
                      Log in to reply
                      • Oldest to Newest
                      • Newest to Oldest
                      • Most Votes


                      • Login

                      • Don't have an account? Register

                      • Login or register to search.
                      • First post
                        Last post
                      0
                      • Categories
                      • Recent
                      • Tags
                      • Popular
                      • World
                      • Users
                      • Groups