HW04: IIS VM Setup

Complete the following requirements. Video Walk through is here

  1. Create a VM with Windows Server (latest edition)
  2. Install IIS on it - Recall the demo from class and/or the video

    1. IIS features see: image

  3. Install Web Deploy (in the video I got Web Deploy 3.6 from here).

  4. Enable remote connections in the IIS management service (server level)see image

    1. You will have to stop the service
    2. Make the changes in the image above.
    3. Start the service.
  5. Create an ASP.NET application under your "Default Web Site" named "MoviesSVC".
    1. The location on disk should be C:\MoviesSVC. If you are using a windows account, it will setup the permissions for you.
    2. See the image

    3. Double click on the IIS Permissions icon.
    4. Add a user that can update the web application. Make it a Windows user (I used the Administrator account in the Video, which I know is bad form!).
  6. Make sure that both of the following services are running: (NOTE: If you installed Web Deploy as a stand-alone service, you may have missed installing the Web Deployment Agent Services - Change the program from Add/Remove... and add it)

    1. Web Deployment Agent Service
    2. Web Management Service
  7. Time to go back and try to deploy. You are going to deploy the code to the server you've been preparing but we will now use the production database server db.cs.southern.edu.
    1. Back in Visual Studio right click on the service project and select publish. Select the WCF option at the bottom.
    2. See The Connection Page and the Settings Page.

    3. Notice that on the settings page you need to create a new connection string for the database. Click on the ... and set the following values:
      1. Server Name: db.cs.southern.edu
      2. Authentication: SQL Server Authentication
      3. User: cptr446
      4. Password: [given in class]
      5. Select the database name to be Movies2020
      6. test the connection. (It passed? Great!)
    4. Save the settings and then click publish.
  8. To test your settings, re-target you WPF application to the new server. By re-creating the Connected Service (i.e. delete it and re-create it).
    1. [attachment:connected service.png|Here]] is the image of what I had to delete and re-create.
    2. Delete it
    3. Right click on Connected Service and add a connected service. Fill in the information from the service we just deployed (e.g.: http://10.10.6.135/MoviesSVC/MovieService.svc)

    4. Make sure to name it with the same Namespace as the one you deleted.
  9. Finally, run your program and enjoy the fact that you just made a 3-tier application.

Make a video demonstrating that your application is working and that each tier is working correctly.

WebServices/ProgrammingHomeworks/HW04 (last edited 2023-05-23 20:16:16 by scot)