Introduction
Microsoft's Internet Information Services (IIS) is a versatile, all-purpose web server that provides requested HTML pages or files on Windows PCs.
Remote client computers can submit queries to an IIS web server, which will then deliver the proper response. Web servers can share and distribute information across LANs, such as corporate intranets, and WANs, such as the Internet, thanks to this fundamental functionality.
A web server can provide users with information in a variety of ways, including static HTML-coded web pages, file downloads and uploads, text documents, image files, and more.
Deploying ASP.Net MVC Application on IIS Server
Step 1
Create the ASP.net MVC Application using Visual Studio.
![Deploying Asp.net MVC Application on IIS Server]()
![Deploying Asp.net MVC Application on IIS Server]()
Select the Project Type as MVC and hit the create button.
![Deploying Asp.net MVC Application on IIS Server]()
Now our Project is in the initial Deployment stage.
![Deploying Asp.net MVC Application on IIS Server]()
Now our application is ready for Deployment on IIS Server.
![Deploying Asp.net MVC Application on IIS Server]()
Step 2
Now right click on the application and hit the publish option.
![Deploying Asp.net MVC Application on IIS Server]()
Step 3
Select the deployment options.
![Deploying Asp.net MVC Application on IIS Server]()
We will select the Folder option.
![Deploying Asp.net MVC Application on IIS Server]()
Create the Directory in your system for Application Build.
![Deploying Asp.net MVC Application on IIS Server]()
Select your folder for application build.
![Deploying Asp.net MVC Application on IIS Server]()
Hit the Finish button and we are good to go.
![Deploying Asp.net MVC Application on IIS Server]()
Our application build was created successfully.
![Deploying Asp.net MVC Application on IIS Server]()
Our Deployment Build is ready.
![Deploying Asp.net MVC Application on IIS Server]()
Step 4
Open the IIS Server.
![Deploying Asp.net MVC Application on IIS Server]()
Right click on the websites and add a new website. Give the name of the website and add the physical path for your application where you stored the application build. The next step will be to give the Hostname to your website (Simply the Domain Name)
![Deploying Asp.net MVC Application on IIS Server]()
You can see the setting in the below screenshot.
![Deploying Asp.net MVC Application on IIS Server]()
Now click the OK button.
Step 5
Open the C Drive and find the system 32 Folder. Open the Driver Folder and after that, open the etc. folder and then open the Host File
C:\Windows\System32\drivers\etc
![]()
Open the Host file using Notepad.
![Deploying Asp.net MVC Application on IIS Server]()
Now open CMD and find your IP Address.
Set the IP Address and Host name in Host file in the way I am doing below.
![Deploying Asp.net MVC Application on IIS Server]()
![Deploying Asp.net MVC Application on IIS Server]()
![Deploying Asp.net MVC Application on IIS Server]()
Now go to IIS Server and browse your website.
![Deploying Asp.net MVC Application on IIS Server]()
Now our application is live on IIS Server.
![Deploying Asp.net MVC Application on IIS Server]()