In this article you will learn about how to install IIS and setup your first asp.net website.
As a first step, we need to enable the IIS in our system; by default it won’t be available
To enable just go to Control panel->Program and features->Turn windows features on or off ->And finally check the iis services like the below screen shot .
This process will take some time and you will get a screen shot like below:
That’s it Now IIS will be available like the below screenshot:
When you open it,you will see the screen like below with your computer name
Just for your information, this process will also add the folder called inetpub in the c drive
(Note this is the place where you can add your websites to host in IIS)
Adding the websites to IIS:
Next step is that, to create the new website in iis and map to the website project folder placed in the inetpub.
So right click the sites folder and you will the get add website option like below screen shot
Once the website has been added, click the content view at the bottom of right pane, like the below screenshot to browse the page which you want to see in the browser.
Then you will see the screen like below:
Right click the login.aspx (any page you want to see) and you will see browse option like below:
Possibility of Error:
First time when you install the IIS, you may get the following error. I got the same error for two or three times initially so sharing the same with others.
Reason for the Problem: We need to register the Asp.net with the IIS
Just two Steps to register Asp.net with IIS:
Step 1: Open the cmd prompt as administrator and type the following path
Step 2: Then just type aspnet_regiis –i like below screen shot
That’s it, you registered successfully…?
If you want, just for the verification, you can see two app pools were added to the Application pools like below screen shot:
Finally you will get the output as expected:
You can also find other useful Articles related to IIS in my websites:
Hope the article was helpful, kindly share your valuable feedback or thoughts in the comment section.
910 total views, 3 views today