Getting Started Guide
AWS Web Application Hosting for Microsoft Windows
« PreviousNext »
View the PDF for this guide.Go to the AWS Discussion Forum for this product.Go to the Kindle Store to download this guide in Kindle format.Did this page help you?  Yes | No |  Tell us about it...

Deploy Sample Application

In this topic we will download a sample ASP.NET application, grant write access to the appropriate folders and files, and configure IIS to point to the new application on your Amazon EC2 instance.

To download the sample application

  1. In the Amazon EC2 instance, create a folder for your sample application in your root directory called ImageGallery, c:\ImageGallery.

  2. Add the website location for the BaseImageGallery application to trusted sites on your Amazon EC2 instance

    1. In the Amazon EC2 instance, run Internet Explorer from the Start menu.

    2. Click the gear icon in top right corner.

    3. Click Internet Options.

    4. Click the Security tab.

    5. Click Trusted Sites and then click Sites.

    6. Add https://s3.amazonaws.com and click Close.

    7. Click the Advanced tab.

    8. Scroll down to Security.

    9. Un-check Do not save encrypted pages to disk and click OK.

  3. Download the application.

    1. Using Internet Explorer in your Amazon EC2 instance, type https://s3.amazonaws.com/aws-sdk-samples/.NET/BaseImageGallery.zip in your browser's address bar.

      Note

      This is a case-sensitive URL. This zip file is a .NET application; however we are not going to delve into the details of .NET. Instead we’ll “paste and modify” the application.

    2. When the File Download dialog box appears, click Save As. Save the file to c:\ImageGallery.

      Note

      If you receive an error that Internet Explorer is unable to download the file, close the error dialog and try downloading the application again inside the same browser window.

    3. Paste the contents of the ImageGallery folder (found inside the zip file) into this directory, so that individual files sit directly under C:\ImageGallery.

To modify the physical path for your default website

  1. Open IIS Manager on your Amazon EC2 instance and navigate to the Default Web Site again.

  2. Right-click Default Web Site.

  3. Select Manage Web Site and click Advanced Settings.

  4. In the Physical Path box, type c:\ImageGallery and click OK.