There are two categories of ASP.NET deployment:
- Local deployment : In this case, the entire application is contained within a virtual directory and all the contents and assemblies are contained within it and available to the application.
- Global deployment : In this case, assemblies are available to every application running on the server.
- XCOPY deployment
- Copying a Website
- Creating a set up project
XCOPY DEPLOYMENT
XCOPY deployment means making recursive copies of all the files to the target folder on the target machine. You can use any of the commonly used techniques:- FTP transfer
- Using Server management tools that provide replication on a remote site
- MSI installer application
COPYING A WEBSITE
The Copy Web Site option is available in Visual Studio. It is available from the Website -> Copy Web Site menu option. This menu item allows copying the current web site to another local or remote location. It is a sort of integrated FTP tool.Using this option, you connect to the target destination, select the desired copy mode:
- Overwrite
- Source to Target Files
- Sync UP Source And Target Projects
- You pass on your source code.
- There is no pre-compilation and related error checking for the files.
- The initial page load will be slow.
CREATING A SETUP PROJECT
In this method, you use Windows Installer and package your web applications so it is ready to deploy on the production server. Visual Studio allows you to build deployment packages. Let us test this on one of our existing project, say the data binding project.Open the project and take the following steps:
Step (1) : Select File -> Add -> New Project with the website root directory highlighted in the Solution Explorer.
Step (2) : Select Setup and Deployment, under Other Project Types. Select Setup Wizard.
- Setup.exe
- Setup-databinding.msi
No comments:
Post a Comment