First time use of IIS
Now that IIS is running on your system, it should have defaulted to running on port 80. You can test this out by going to http://localhost/
The file you have placed in the wwwroot directory Default.aspx
is an ASP.NET application. You need to go to IIS and convert the directory it is stored into a web application.
Now when creating web applications, it is better to create them in another folder other than your wwwroot folder, and in the case of this tutorial it is easier. Move your Default.aspx
into a folder named 'webapp', or something of the like.
To convert it into an application, do the following:
- In the Server Manager, expand the
'Roles' item in the tree
- Expand the 'Web Server (IIS)' item
- Click on 'Internet Information Services (IIS) Manager
- In the window on the right hand side, you will need to open up your server. In my case, my server is called WIN2008R2. Your server name will be located inside the 'Connections' pane. Expand your server in the tree
- Expand the 'Sites' item
- Expand your newly created site. There should only be one there, and the item will have a globe next to it
- Now right click on your 'webapp' item which will have a folder next to it, and click 'Convert to Application'. Then leave all the properties the same in the window that comes up and click OK.
You have now created a new web application. By going to http://localhost/webapp you should see it working.