Updating a published site

Last post 07-03-2009 1:44 AM by HostingASPNet. 3 replies.

Sort Posts:

  • Updating a published site

    07-02-2009, 1:10 PM
    • Member
      point Member
    • Kate27
    • Member since 06-29-2009, 4:38 PM
    • Posts 10

    Hi,

    Im currently working on a web application that needs daily updates. The site has thousands of visitors per day.

    At the minute I am publishing the site locally and then uploading the entire site everytime I make an update. To do this I have to stop iis for a few minutes everyday.

    Obviously not ideal!

    When I publish it asks me if I want to make the site updateable, I select this option, however Im still not sure how to update just one page on the site.

    I make changes to both the page and the code behind page.

    How can I update just one page?


    Do I simply publish it locally and upload just the page ive updated?


    What about the dlls, when I view them, they are random? I can't tell which dll is for which page, so which one do i upload?


    I understand I can just upload the project without publishing it, what are the implications of this?





  • Re: Updating a published site

    07-02-2009, 2:14 PM
    Answer
    • Contributor
      6,084 point Contributor
    • atconway
    • Member since 09-24-2007, 9:20 PM
    • Florida U.S.A
    • Posts 1,259

    Which Visual Studio IDE are you using?  In VS.NET 2005 and 2008 publishing the site does not stop IIS, and you do not need to stop it in order to Publish.  I would not mess with manually copying files as you may miss 1 (or a newer .dll like you mentioned) that could cause the site to crash.

    Pushing out your updates via the 'Publish' functionality directly to the web server and selecting the  'Replace matching files with local copies' and 'Copy Only files needed to run this application' will get the updated files you need to the server.  Now these options are for a .NET web application project and not a .NET website project which is a little different.

    In a 'website' project all of the files from the project are sent to the server (including code files).  In a web application project the code is compiled into a single .dll with the project name and pushed to the server.

    Thank you,   >[Blog]<

    "The best thing about a boolean is even if you are wrong, you are only off by a bit." :D
    -anonymous

  • Re: Updating a published site

    07-02-2009, 7:04 PM
    Answer
    • Star
      11,578 point Star
    • Bruce L
    • Member since 02-08-2007, 6:53 PM
    • Posts 1,935

    When you use VS.NET to publish a site, it actually precompile the whole site, wipe everything out at the target location and then reupload all your site.  If your site is big, it can take a while.

    You can consider NOT using precompile and use Copy site feature in VS.NET and you can only upload the files you updated.

    Although it may be slightly different, I think our KB article can help you get started.  https://support.discountasp.net/KB/a72/how-do-i-deploy-visual-studio-20082005-visual-web-developer.aspx

    Bruce
    DiscountASP.NET - ASP.NET Hosting Experts
    Voted 2009 "Best ASP.NET Hosting" by asp.netPRO Magazine
    Win2008/IIS7.0, ASP.NET 2.0/3.5 SP1, MVC, AJAX, Silverlight, SQL 2008/2005
  • Re: Updating a published site

    07-03-2009, 1:44 AM
    Answer

     Hello,

    With site updateable option you could change the .aspx files, not the code behind or dlls.

    About deployment options you could check here - Deploy ASP.NET site.

    Regards

Page 1 of 1 (4 items)