Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Question
Friday, May 30, 2008 3:39 AM
Hi.
I am trying to run the MVC examples as a web-page(Vista machine) and am getting the "HTTP Error 403.14 Forbidden" error. It complains that "A default document is not configured for the requested URL" What is this, there is no default document for MVC... ?? I had a look and in the IIS there is a default.aspx in the default document list.
If I run the app in debug mode(F11 in Visual studio 2008) then everything is fine and it works as expected but I want to compare the MVC framework to a normal site. I am leaning toward the MVC because I do think that with the correct caching model it will compare to the other sites that I have done.
Thank you
Sarel
All replies (4)
Friday, May 30, 2008 5:37 AM
Method 1
To resolve this problem, follow these steps:
1. Start IIS Manager. To do this, click Start, click Run, type inetmgr.exe, and then click OK.
2. In IIS Manager, expand server name, expand Web sites, and then click the Web site that you want to modify.
3. In Features view, double-click Directory Browsing.
4. In the Actions pane, click Enable.
Method 2
To resolve this problem, follow these steps:
1. Start IIS Manager. To do this, click Start, click Run, type inetmgr.exe, and then click OK.
2. In IIS Manager, expand server name, expand Web sites, and then click the Web site that you want to modify.
3. In Features view, double-click Default Document.
4. In the Actions pane, click Enable.
5. In the File Name box, type the name of the default document, and then click OK.
If these steps do not work try reading this doc,
Wednesday, July 6, 2016 6:11 PM
I didn't have to enable directory browsing. Make sure your App Pool is set to the proper Framework version. If you're running Windows 7, its default is .NET 2.0, which will prevent modern MVC from working. Simply change it to .NET 4 and it'll work :) Good luck!
Wednesday, July 6, 2016 6:21 PM
Hi,
With MVC you rather define a default controller and action '(usually /home/index). Do you have one? For learning start from an MVC default default template rarther than with an empty MVC template.
Enable directorty browsing is likelyt the last thing you want to do (ie you don't want to let users to browse this direcory, you want to serve a default content).
Monday, March 27, 2017 6:17 PM
I found I only got this error if I started out with .NET Framework 4.5.2 (the default) and added the "ASP .NET Web Application" and "Empty" template and a "Web Service (ASMX)" item to the project, then changed it to 4.0. (It ran fine before changing the framework version.)
So alternatively, you can start from an ASP .NET site on the framework you want, first, i.e. 4.0. Then I picked "ASP .NET Web Application", selected "Empty" as the template, and then added my "Web Service (ASMX)" item and was just fine when I ran it. It's more about selecting the right version, to begin with. It doesn't play nice with downgrading.