After creating and testing your ASP.NET application, the next step is to deploy the application. Deployment is the process of distributing the finished application to be installed on other computer. We can use the built-in deployment feature that comes with Visual studio .NET to create a Windows Installer file - an .msi file for the purpose of deploying applications.

         • Creating the Setup Project for ASP.NET Application
         • Installing the Application

Creating the Setup Project for ASP.NET Application: Creating a setup project for asp.net application. The application name is- web school system.

1. First we open the project:






Figure- Open a project




2. Right Click Solution, select Add > New Project...from menu.





Figure- Add a new project



3. Select Setup and Deployment Project in Project Types, and the select Setup Wizard in Templates. Type "web school system" for name. Click OK to create the Setup and Deployment Project.



Figure- Select Setup Wizard template




4. The Setup Project Wizard is shown.







Figure- Setup Wizard Welcome Page





5. Select Create a setup for a web application and then click Next >.







Figure - Select the project type



6. Select Primary output from webschoolsystem and Content Files from webschoolsystem, this option will help you to add all the DLL or EXE and ASP.NET file to the setup file. You must select a correct project for primary output in the solution. After that, click Finish. You also can click Next > to follow the wizard to add readme file to the setup file.







Figure - Select the project output

7. The Setup project is created in solution.








Figure-The Project created





8. Open the File System (Setup) of the Setup project. Right click the Web Application Folder\bin Folder, select Add > File... to add the hibernate.cfg.xml manually from the DB-VA generated C# project.






Figure - Add files to project



Figure - The files in the folder



9. Right click the Web School System Setup project and then select Build on menu.








Figure - To build the application


10. The Setup File is created in the Web School System Setup\Debug folder.







Figure - The Setup execute file are generated
                    

Copyright © 2010 VisualBuilder. All rights reserved