Publishing the DataBrowser Project
In this part, we will show you how to upload the DataBrowser.Cloud project, which includes the web role and the worker role, to the Windows Azure instance you have created in part 1. These roles will become your webpages where users will have the access to the data in your catalogue.
To be able to complete the steps in this part, you must have completed all previous parts of the walkthrough and have access to the Windows Azure Platform management panel.
- After you have set the connection strings as described in part 3 of this walkthrough, go to the Solution Explorer, right-click on the DataBrowser.Cloud project, and click Publish…
- You will see the publishing wizard open. If you are publishing the project for the first time, you will see no subscription in the drop-down box. So, click on the Sign in to download credentials and the wizard will open a web browser window for you and ask you to sign in with your LiveId, which you used to open a Windows Azure account. If you were already signed, you will not see the login screen.
- After a few seconds, the browser will try to download a configuration file with publishsettings extension. Save it somewhere on your hard drive.
- Go back to the wizard, click [Import…] and browse to the downloaded settings file. When you open it, you will see the drop-down box change to the name of your subscription. Click [Next>]
- The next screen will show all settings you received through the settings file you imported. Verify that you have selected Release built configuration and Cloud service configuration. Click [Next>]
- The Summary page will show you the way the project will be published on your hosting account. Click [Publish] to start the process of automatic upload of all necessary files.
This process will take several minutes. During that, you will be able to see the progress in the Windows Azure Activity Log screen in Visual Studio.
You will also be able to see the uploading on the management panel as well.
At the end of the publishing, the hosting service with the DataBrowser roles will be started.
Please have in mind that you will not have any data in the database and you do not have any catalogues defined in it. This is what we will do next. For now, check that your hosted service is running on Azure and read our next part.