ASP.NET deployment best method

Last post 05-08-2008 2:16 PM by VishalRJoshi. 6 replies.

Sort Posts:

  • ASP.NET deployment best method

    05-06-2008, 11:03 AM
    • navaneethkn
    • Joined on 06-01-2007, 6:00 AM
    • India
    • Posts 139

     Development environment : ASP.NET 2.0 , Visual studio 2005

    I am looking for a good method for deploying my ASP.NET application. I have used "Publish website" feature with "Allow site to updatable" checkbox checked. This worked correctly, but I am facing some problem in updating the site after deploying. I did the change in local machine and used the "Publish website" again, but it changed all assemblies names (assemblies which starts with app_web).

    There is another option to avoid this by checking "Use fixed assembly names" checkbox. But it will generate each assembly for each page, so I will have many DLLs in my bin directory. Is there any performance impact for this method ? Or do I need to use aspnet_merge.exe and merge assemblies ? I need to update this site regularly. Please suggest a good method.

    Thanks

    Sincerely
    Navaneeth.K.N
    www.w3hearts.com

    If this post was useful to you, please mark it as answer. Thank you!
  • Re: ASP.NET deployment best method

    05-06-2008, 2:31 PM

    navaneethkn:
    Please suggest a good method.

    FTP the files to your server.  Works for many.

    Jeff

    Please: Don't forget to click "Mark as Answer" on the post that helped you. That way future readers will know which post solved your issue.
  • Re: ASP.NET deployment best method

    05-07-2008, 12:42 AM
    • navaneethkn
    • Joined on 06-01-2007, 6:00 AM
    • India
    • Posts 139

    jeff@zina.com:
    FTP the files to your server
     

    Thanks. I know this is the easiest method. But will there any performance impacts when both aspx and cs files are there on server ? Will precompiled website works much faster than this method ? Also there is a bit security issue as I am uploading to another server.

    Thanks again, 

    Sincerely
    Navaneeth.K.N
    www.w3hearts.com

    If this post was useful to you, please mark it as answer. Thank you!
  • Re: ASP.NET deployment best method

    05-07-2008, 1:29 PM
    • Loading...
    • VishalRJoshi
    • Joined on 12-02-2007, 9:36 PM
    • Redmond, WA, USA
    • Posts 6

    I would recommend you use WDP... Put the output of WDP to a fixed location outside of your web applcation.  You can then opn this pre-compiled web as a web site (using open web site command) and use publish web or copy web to publish to destination...  You can read more about WDP at http://vishaljoshi.blogspot.com/2008/01/visual-studio-2008-web-deployment.html

    In anycase do note that once you pre-compile you can only change ASPX pages (if you mark "allow site to be updatable") you cannot just change .cs files coz that will cause pre-compilation to create new DLLs...  Using WDP you can pre-compile per folder which will allow you to exactly update the pieces of your app that are to be updated together...

    Vishal R. Joshi | Microsoft Corporation | Vishal.Joshi@microsoft.com | +1-425-705-2031| http://www.vishaljoshi.blogspot.com/
    Vishal R. Joshi | Microsoft Corporation | Vishal.Joshi@microsoft.com | +1-425-705-2031| http://www.vishaljoshi.blogspot.com/
  • Re: ASP.NET deployment best method

    05-08-2008, 2:02 AM
    • navaneethkn
    • Joined on 06-01-2007, 6:00 AM
    • India
    • Posts 139

    VishalRJoshi:
    I would recommend you use WDP.
     

    Looks interesting. But I am still on VS2005, so is there any alternatives ? 

    Sincerely
    Navaneeth.K.N
    www.w3hearts.com

    If this post was useful to you, please mark it as answer. Thank you!
  • Re: ASP.NET deployment best method

    05-08-2008, 11:57 AM
    • Loading...
    • redwing19
    • Joined on 07-06-2007, 11:00 PM
    • Posts 109

    You can download the WDP add-on for VS2005. 

  • Re: ASP.NET deployment best method

    05-08-2008, 2:16 PM
    Answer
    • Loading...
    • VishalRJoshi
    • Joined on 12-02-2007, 9:36 PM
    • Redmond, WA, USA
    • Posts 6
     
    navaneethkn:

    Looks interesting. But I am still on VS2005, so is there any alternatives ? 

     

    There is a 2005 version of WDP as well you can access it from the link below:http://msdn.microsoft.com/en-us/library/aa479568.aspx Vishal R. Joshi | Microsoft Corporation | Vishal.Joshi@microsoft.com | +1-425-705-2031| http://www.vishaljoshi.blogspot.com/
    Vishal R. Joshi | Microsoft Corporation | Vishal.Joshi@microsoft.com | +1-425-705-2031| http://www.vishaljoshi.blogspot.com/
Page 1 of 1 (7 items)