Académique Documents
Professionnel Documents
Culture Documents
S o far you ve only been testing your ASP.NET MVC web application on your local machine, the development is not complete as your application does not allow external users to connect and user the application. To allow access from external users, you have to deploy your web application to an external production server capable of handling request from multiple internet users. This section will walk you through the deployment process using Visual Studio Express 2012 for Web.
150
A fter making these changes, save the "Web.Release.cong" le now and proceed to change the publish settings.
151
R efer to gure 220, select "Project Project Properties" to open the project properties page.
Figure 220: Open the Project Properties Page
F or the "Package /P ublish Web " options, select "Release" conguration, and select "All les in this project folder" so that all your images and the membership account database can also be deployed.
152
C reate a new publish profile by clicking on the dropdown list and select "New Prole"
N ame your new publish profile so that you can simply reuse the prole later on
Figure 224: Give a Name to Your New Publish Prole
153
U se "File System" as the publish method, then select a folder in your system to store the published les. To avoid confusion, it is better to select an empty folder to host your published les. When you are all set, select "Next" instead of "Publish"
E xpand the "File Publish Options", tick the option to "Delete all existing les prior to publish". Now you can select "Publish" to publish your website to the folder of your choice
Output Signaling Publish was Successful 2>Site was published successfully le:///U:/Publish 2> ========== Build: 1 succeeded, 0 failed, 0 uptodate, 0 skipped ========== ========== Publish: 1 succeeded, 0 failed, 0 skipped ==========
154
1. Refer to gure 227, open the FileZilla FTP Client and enter the production server login information: Production Server Login Information Host: imse2016.imse.hku.hk Username: imse2016.imse.hku.hk|your_imse_computer_login e.g. imse2016.imse.hku.hk|2012123456 Password: your_imse_computer_password Port: 2255