-
Notifications
You must be signed in to change notification settings - Fork 0
IIS Configuration
Application Pool: DefaultAppPool Sites:
-
ApplicationName – This represent the application. This should be mainly considered the front-end component of the overall application as it could be written using ASP.NET MVC or WebForms, Angular.js, Python, Ruby on Rails or any other web language. In our case we are building the application using ASP.NET MVC. Beyond that, the architecture was designed based on Domain Driven Design so there are more layers to the application other than just the MVC pattern. That means that when the application is built and deployed it will include the assemblies for other components.
-
ApplicationServices – This represents the service layer for the application. It takes advantage of the ASP.NET WebApi which is a REST service architecture. The front-end ASP.NET MVC application would communicate with the service layer using a Web Client and standard REST protocols. Builds & Deployments – Due to there being a Web Application component and a RESTful Services component IIS needs to be configured to have deployment containers for each. Below, you will find information on how to configure Visual Studio to deploy each of these so that you can run the application locally.
- Right click on Sites and select Add Website…
- In the Site Name field enter Application
- Click the Select... button and choose the DefaultAppPool
- Click the button next to the Physical path field and navigate to the location you create the Visual Studio publish profile. Example: C:\Projects\Deployments\Application
- Under the Bindings section leave all settings as they are but ensure that the Port is set to 80
- Click Ok
- Right click on Sites and select Add Website…
- In the Site Name field enter Services
- Click the Select... button and choose the DefaultAppPool
- Click the button next to the Physical path field and navigate to the location you create the Visual Studio publish profile. Example: C:\Projects\Deployments\Services
- Under the Bindings section leave all settings as they are but ensure that the Port is set to 81
- Click Ok