compiling .net code...

Last post 08-26-2005 10:15 AM by chrigil. 2 replies.

Sort Posts:

  • compiling .net code...

    08-26-2005, 9:43 AM
    • Contributor
      2,804 point Contributor
    • griff303
    • Member since 02-03-2004, 4:53 PM
    • Posts 731
    Is there really a difference if you "Compile" or run the code locally or create the code and run it out on the server live? The code is suppose to be compiled and ran like an application, rather than compiled on the spot like ASP. I guess I have never really had to worry about compiling it through visual studio .net or webmatrix. I have always created a test site and ran it semi-live. Is there really a performance difference or any type of advantage to running/compiling it locally??
    - km
    ______________________________________
    "always here and always forever"
  • Re: compiling .net code...

    08-26-2005, 10:15 AM
    • Member
      143 point Member
    • chrigil
    • Member since 02-24-2004, 4:29 AM
    • Posts 51
    ASP.Net code is compiled automatically when you first run the page.

    You might notice that a page takes a few seconds more to load the first time you request it after each time you change some code and Save the file. It's actually not taking longer to load but is re-compiling the code. On a really complicated page the difference is more noticeable.

    I think (not 100% sure) you can compile code yourself and change compilation settings etc using a .Net tool. I might be thinking of .Net 2.0 though so don't quote me on this. I'm sure someone else on this forum can help more on this point.

    For most people the standard compilation setting are fine.

    Hope this helps
  • Re: compiling .net code...

    08-26-2005, 10:16 AM
    • Star
      7,894 point Star
    • fadil1977
    • Member since 08-23-2004, 4:43 AM
    • london
    • Posts 1,581
    persnally.... i prefer to use in locally and publish it so it is faster for me to change things and edit or deal with errors and i thinkk the VS has a good environment to run the application and give you a taste of the reality ..... but if you feel you have happy to do the testing in a server..... that will be great !!!!and i do not think so it should be a problem!!

    this is my idea and if others have a diffrenet idea please do comment on that ! 
    Fadil Alnassar
    www.fadilalnassar.com | FREE Nodil Tab Control
    http://www.mefranchising.com
Page 1 of 1 (3 items)