Re: Deploy of a web application



Hi,

Daniela Roman wrote:
To deploy a simple web application what type of files do I need to copy over?
I want to use a simple copy.
Thanks

It depends (damn ;-)

There are 3 deployment models in ASP.NET 2.0:

- You can deploy the ASPX files and the corresponding code-behind files (CS, VB.NET, ...) to the web server. The classes will be compiled on demand. This is OK for websites where the content changes often, or for testing purposes. However, some people dislike deploying the source files to the web server.

- To avoid deploying the source files, you can publish your website. To do this, use the corresponding menu in VS2005. This will precompile your site and copy only the files needed to a folder of your choice (or even diretly to the web server using FTP for example).

- If you use the Web Application Project template (available in VS2005 SP1 or from here http://webproject.scottgu.com/) then a DLL will be created in the "bin" folder. You can copy the ASPX files and the "bin" folder to the website.

Additionally to this, you of course need to copy all the resource files (images, script, css...) to the website too.

HTH,
Laurent
--
Laurent Bugnion [MVP ASP.NET]
Software engineering, Blog: http://www.galasoft-LB.ch
PhotoAlbum: http://www.galasoft-LB.ch/pictures
Support children in Calcutta: http://www.calcutta-espoir.ch
.



Relevant Pages

  • Re: deploying webpart on two front end web server
    ... The problem is deploying in a farm environment consisting of multiple front ... would it put my webpart dll on all the front end web ... deploying webpart on two front end web server ... As you mentioned the features, are you deploying them as features ...
    (microsoft.public.sharepoint.portalserver.development)
  • RE: VB.NET and IIS
    ... deploying your web site ina similar way as you would do by generating a ... > I dont think so, when i open IIS management, at the moment i am manually ... >> Do you mean something like a PUBLISH function to create your web site? ... >>> I am writing an application to streamline website production. ...
    (microsoft.public.dotnet.general)
  • Re: Website deployment vs2008
    ... JP> I have a asp.net 3.5 website using Ajax, ... All runs happily on the testing server. ... JP> above method compiles all the code-behind and other code files into ... JP> What is the best method of deploying a finished website? ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: ClickOnce bootstrapper fails with empty error window
    ... Are you deploying it to a web server or to a folder on a disk? ... If you're using ClickOnce, why are you clicking on the setup.exe instead of ... and doubleclick on the generated setup.exe, I get an error window with no ...
    (microsoft.public.dotnet.framework.windowsforms)
  • Updating a Web-Site
    ... I just deployed a ASP.NET 2.0 website with the option ... upload. ... Is there a way to specify which files should be uploaded when deploying a ... How does one update it without re-deploying the entire site again? ...
    (microsoft.public.dotnet.framework.aspnet)