Dynamic Compilation
-
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
All files in the file-system are date-stamped, that probably has something to do with it :-).
-
All files in the file-system are date-stamped, that probably has something to do with it :-).
-
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
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:
-
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
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 thebin
directory, it will recompile all the files. :)Best wishes, Navaneeth
-
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:
Abhijit Jana wrote:
My Blog
htt://
is not a valid protocol.http://
is. :)Best wishes, Navaneeth
-
Abhijit Jana wrote:
My Blog
htt://
is not a valid protocol.http://
is. :)Best wishes, Navaneeth
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:
-
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 thebin
directory, it will recompile all the files. :)Best wishes, Navaneeth
-
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:
-
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: