Last post Feb 02, 2016 03:14 AM by ardmore
Jan 31, 2016 03:32 PM|ardmore|LINK
I got the error in a simple ASP.NET WEB API 2 project.
I am sure that I enabled the Directory Browsing. See the image.
But nothing changed.
Feb 01, 2016 07:08 AM|Angie xu - MSFT|LINK
HTTP Error 403.14 - Forbidden
The Web server is configured to not list the contents of this directory.
If you are an end-user, you should contact the website administrators in order to let them know that this error has occurred for this URL address. Then, the website administrators will fix this issue later.
To resolve this problem, follow these steps:
Feb 01, 2016 01:29 PM|ardmore|LINK
Oops, I just found in IIS, the content under Sites\Default Web Site is empty. It is a local desktop web application. Why?
Feb 01, 2016 02:02 PM|PatriceSc|LINK
How are you supposed to install this application? Sites\Default Web Site seems to just be the default IIS site which might be empty and even disabled sometimes if it is not used.
More likeky it seems you shoud have some installation step if you really have to run this web site on a local machine (which looks weird for a web app). Or t is not installed in Sites\Default Web Site
Is this your own or a 3rd party app? Don't your run this application for VS?
Feb 01, 2016 02:30 PM|ardmore|LINK
I don't install it. It is a simple asp.net web api 2 project in VS 2015. Which is similar with
Should I install it? The tutorial on the link doesn't mention it. By the way, I use IIS Express.
Feb 01, 2016 06:15 PM|PatriceSc|LINK
Then no but then Sites\Default Web Site is not the web site folder?
Ah, could it be that you created an empty web project without any default page? What if you try to add a default web page or controller you could use as a test to call your web api?
I'm trying to understand what is the situation on your side as usually it just works. My understanding would be that you just have no default page so IIS doesn't have any thing to show and tries to show the folder content (which is usually disabled and should
stay that way).
What if you add a default.aspx page or a default controller? If for nothing help this page could be used to test your web api.
Feb 02, 2016 01:40 AM|ardmore|LINK
I am not sure that I understand your question. But I think that I have to create the virtual directory. And I did it, and VS showed it was created. However I can not find it either in c:\interpub\wwwroot or IIS manager root Sites\Default Web Site.
Feb 02, 2016 02:15 AM|lextm|LINK
IIS Express is not IIS, so that you cannot check C:\inetpub\wwwroot nor use IIS Manager.
I do have a tool called Jexus Manager which can help you manage IIS Express,
You can add your project's IIS Express configuration as a new server and then manage it,
Feb 02, 2016 03:14 AM|ardmore|LINK
Find the cause. The IIS Express doesn't work in a stable state. Not sure why, but I will make another try in a different laptop.