0% found this document useful (0 votes)
13 views10 pages

Deploying

Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
13 views10 pages

Deploying

Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 10

Deploy ASP.

NET Application to IIS


This blog guides you how to deploy your ASP.NET/MVC application to IIS web server. And make
it public to internet. There are totally 4 steps:

 Install required components in IIS.


 Publish files to IIS: copy files to server and create website in IIS.
 Add Port Exception to Windows Firewall.
 Assign public IP Address to your website.
1. Install required components in IIS
Control Panel-> Programs and Features

Select IIS(Internet Information Services)


2. Publish files to IIS
2.1 In Visual Studio, select project - > Publish…

2.2 Create a new profile

2.3 Connection, configure server and website. Here we choose the default website.
2.4 Settings, choose ‘Release’.

2.5 Preview, check what files are to be deployed.


2.6 After publish, all of files are copied to ‘C:\inetpub\wwwroot\CoursePlayer’.

Your web browser is opened automatically and accesses your website.


3. Add Port Exception to Firewall
3.1 Control Panel -> Windows Firewall
3.2 Advanced setting

3.3 Inbound Rules -> New Rule…


3.4 Rule Type

3.5 Protocol and Ports


3.6 Action

3.7 Profile
3.8 Name

After the above steps, your machine is exposed to the outside world.
4. Assign Public IP address to your website.
4.1 In IIS, add Binding to web site
4.2 Set IP Address and Port.
If you choose another port, you must add the port number to firewall exception, refer to step 3.

4.3 Access website with ip address, don’t miss the last slash.
4.4 Try this address in another machine.

You might also like