1.Open up IIS Manager.
2.Add the website by right clicking on "Default website" and choose "Add application".
3.Enter any name as alias type and the load that website in the physical path and click OK.
4.Then go to the Features View of that Loaded Website and double click on the "Directory Browsing".
- Click on "Actions" work space and change the "Disable" state to "Enable" state.
6.Then Refresh the Default Website.
7.Open the Visual Studio and go to that website. it will ask for reload , then click "yes".
8.it will add the following code in the web.config file.
<system.webServer>
<directoryBrowse enabled="true" />
</system.webServer>
9.Now run and see the error will disappear.
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…