Specified argument was out of the range of valid values. Parameter name: site

If you are facing following error in your ASP.Net project.

“Specified argument was out of the range of valid values. Parameter name: site”

Following these steps to resolve this issue

1) Go to your windows “Control Panel”

2) Click on “Programs”

3) Then click on “Turn Windows Features on or off”

4) From “Windows Features” dialog, tick the checkbox “Internet Information Services” and its sub-options i.e. “Web Management Tools” and “World Wide Web Services” and click “Ok”, as shown below:

5) After doing above steps, restart your Visual Studio and run your project.

LEAVE A REPLY