801
Comment:
|
3474
|
Deletions are marked like this. | Additions are marked like this. |
Line 3: | Line 3: |
Complete the following requirements. | Complete the following requirements. [[http://db.cs.southern.edu/Videos/CPTR446/2020/CPTR%20446%20Deploying%20Web%20Service%20to%20IIS/CPTR%20446%20Deploying%20Web%20Service%20to%20IIS.html|Video Walk through is here]] |
Line 8: | Line 8: |
1. Install Web Deploy (using the Web Platform installer downloaded from Microsoft). 1. Enable remote connections in the IIS management service (server level)see image: 1. Create an ASP.NET application and copy it to your IIS wwwroot folder. |
1. Install Web Deploy (in the video I got Web Deploy 3.6 from [[https://www.iis.net/downloads/microsoft/web-deploy|here]]). 1. Enable remote connections in the IIS management service (server level)see [[attachment:Management.png|image]] a. You will have to stop the service a. Make the changes in the image above. a. Start the service. 1. Create an ASP.NET application under your "Default Web Site" named "MoviesSVC". a. The location on disk should be C:\MoviesSVC. If you are using a windows account, it will setup the permissions for you. /* i. Make sure that {{{IIS_IUSRS}}} has modify rights. */ /* i. Make sure that {{{IIS AppPool\DefaultAppPool}}} also has modify rights. */ a. See the [[attachment:MoviesSVC.png|image]] a. Double click on the IIS Permissions icon. a. 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!). 1. Make sure that both of the following services are running: a. Web Deployment Agent Service a. Web Management Service 1. 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. a. Back in Visual Studio right click on the service project and select publish. Select the WCF option at the bottom. a. See The [[attachment:pub1.png|Connection Page]] and the [[attachment:pub2.png|Settings Page]]. a. 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: i. Server Name: db.cs.southern.edu i. Authentication: SQL Server Authentication i. User: cptr446 1. Password: WC200Twenty#! 1. Select the database name to be Movies2020 i. test the connection. (It passed? Great!) a. Save the settings and then click publish. 1. 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). a. [attachment:connected service.png|Here]] is the image of what I had to delete and re-create. a. Delete it a. 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) a. Make sure to name it with the same Namespace as the one you deleted. 1. Finally, run your program and enjoy the fact that you just made a 3-tier application. |
Line 12: | Line 42: |
Show your professor for Credit: | Make a video demonstrating that your application is working and that each tier is working correctly. |
Line 15: | Line 46: |
If you appear lost, look at the documentation for IIS online. |
* Show the Service Site and the WSDL * Show that your project references the service and run it to show that it works. |
HW04: IIS VM Setup
Complete the following requirements. Video Walk through is here
- Create a VM with Windows Server (latest edition)
Install IIS on it - Recall the demo from class and/or the video
IIS features see: image
Install Web Deploy (in the video I got Web Deploy 3.6 from here).
Enable remote connections in the IIS management service (server level)see image
- You will have to stop the service
- Make the changes in the image above.
- Start the service.
- Create an ASP.NET application under your "Default Web Site" named "MoviesSVC".
- The location on disk should be C:\MoviesSVC. If you are using a windows account, it will setup the permissions for you.
See the image
- Double click on the IIS Permissions icon.
- 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!).
- The location on disk should be C:\MoviesSVC. If you are using a windows account, it will setup the permissions for you.
- Make sure that both of the following services are running:
- Web Deployment Agent Service
- Web Management Service
- 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.
- Back in Visual Studio right click on the service project and select publish. Select the WCF option at the bottom.
See The Connection Page and the Settings Page.
- 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:
- Server Name: db.cs.southern.edu
- Authentication: SQL Server Authentication
- User: cptr446
- Password: WC200Twenty#!
- Select the database name to be Movies2020
- test the connection. (It passed? Great!)
- Save the settings and then click publish.
- 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).
- [attachment:connected service.png|Here]] is the image of what I had to delete and re-create.
- Delete it
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)
- Make sure to name it with the same Namespace as the one you deleted.
- 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.
- You will need to show me a working version of your VM by displaying a simple asp.net web page.
- Show the Service Site and the WSDL
- Show that your project references the service and run it to show that it works.