Web app Deployment

Last post 02-26-2007 8:13 AM by dotnetsamurai. 8 replies.

Sort Posts:

  • Web app Deployment

    12-02-2006, 4:57 PM

    Hi,

    A very basic question that I am struggling to understand.

    When deploying a asp.net web application why should I create a web setup project? Why can't I just copy, by ftp, the source files to the destination webserver?

     Many thanks

    Filed under:
  • Re: Web app Deployment

    12-02-2006, 5:15 PM
    • Loading...
    • pkellner
    • Joined on 11-12-2004, 10:42 AM
    • San Jose, California
    • Posts 3,317
    • Moderator
      TrustedFriends-MVPs
    You do not need to setup a web deployment project.  I usually just copy as you suggest.  the web deployment projects are for things like building dll's and other types of deployments you may not need.
    Peter Kellner
    http://73rdstreet.com and blogging at
    http://PeterKellner.net
    MVP, ASP.NET
  • Re: Web app Deployment

    12-05-2006, 4:37 AM

    But wouldnt this mean that there would be a whole lot of .resx, .vb, .cs files rolling around in the directory unnecessarily?

    Is there any risk of leaving any business logic open to interference?

  • Re: Web app Deployment

    12-05-2006, 11:28 AM
    Does anyone know of any good articles about this where I can read up?
  • Re: Web app Deployment

    12-05-2006, 12:23 PM
    • Loading...
    • pkellner
    • Joined on 11-12-2004, 10:42 AM
    • San Jose, California
    • Posts 3,317
    • Moderator
      TrustedFriends-MVPs

    Rick Strahl's got a good one in code magazine.

    http://west-wind.com/weblog/posts/5601.aspx 

    Peter Kellner
    http://73rdstreet.com and blogging at
    http://PeterKellner.net
    MVP, ASP.NET
  • Re: Web app Deployment

    12-05-2006, 4:41 PM

    You wouldn't want the source files on your server because even though they are unaccessible to the client, anyone who has access to the server could view them.

    The easiest way to deploy if you're using 2005 is to R-Click on project and do Publish Web Site to a local folder. 

    This makes a creates a compiles version of the site (.cs -> .dll's).  You are left with just the minimum pages you need to run the site, and no source :)
  • Re: Web app Deployment

    12-06-2006, 2:06 AM
    Great! Thanks for the advice!
  • Re: Web app Deployment

    12-06-2006, 12:21 PM

    Hi doUMissClassic,

    Once you publish to a local folder, do you just ftp it all to the host? And if so, how is the database handled?

    Thanks,

    Claude.

  • Re: Web app Deployment

    02-26-2007, 8:13 AM

    You should understand that the "Web Setup" project and "Web deployment" projects are two different things.

     The web setup project is for creating an msi that installs the web application.

     
    The web deployment project is for creating a ready-to-deploy version of the web site. The output of the web deployment project can have the source removed (non-updatable), which is useful for hiding intellectual property. Also, it is precompiled, which avoids compilation when the web app is running.


     

    [This post is not provide AS IS, has warranties, and confers rights]
Page 1 of 1 (9 items)