简体   繁体   中英

Where are the files for IIS Express when VS2013 deploys a server?

I am trying to access a path in my MVC controller, and have the correct routes established. However there is a path I'm accessing http://localhost:11541/Controller and am getting the error

You don't have permission to list files in this directory.

I can only assume that there is a folder or file with the same name that IIS is "seeing" before MVC routes take the path. I want to inspect this path to make sure it's empty before I continue.

IIS Express hosts directly out of your project directory. There's no special place that it moves your code to. You'll generally only see that error when where's a folder that matches your URL path, but no actual route that matches. Without more information such as your project directory structure and the contents of your RouteConfig.cs, it's impossible to say exactly what's happening, though.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM