3

I have a project that for some reason isn't loading the project, but just is showing me the directory listings. I have even tried running it in local IIS to see if it makes a difference and it doesn't

Things I have tried

  1. modules runAllManagedModulesForAllRequests="true"

  2. remove and reinstall IIS from manage windows applications in control panel

If I create a template MVC project in visual studio and run it , it runs fine so that makes me think its not my configruation. Other uses with the same project and web config are having no problem getting the site to load.

Also if I try and goto /Home/Index I get a 404 error. Not sure if that helps in any way

Any other ideas I may be missing here

IIS 10 on Windows 10

Liam
  • 22,818
  • 25
  • 93
  • 157
Steve
  • 39
  • 1
  • 3
  • mmm, where that project came from? – Daniel Manta Jun 12 '17 at 20:10
  • Its a custom in house project – Steve Jun 12 '17 at 20:11
  • In File Explorer: right click on the folder, go to properties, uncheck read-only, click on Security tab, make sure the folder has all permissions required to run IIS. – Daniel Manta Jun 12 '17 at 20:22
  • @derloopkat , I think because of git my folders are locked down on read only, but I have checked security on the folder where my project lives and set all users to full control and still the same thing. If i add an index.html to the root it will load that file no problem but thats not what im looking for – Steve Jun 12 '17 at 21:32
  • @derloopkat the from scratch application worked in express but in local IIS i was getting permissions errors. – Steve Jun 13 '17 at 08:16
  • That makes more sense. Make sure IIS is enabled in Windows Features and Asp.net is registered, because when it isn't this is exact result. – Daniel Manta Jun 13 '17 at 09:11

2 Answers2

2
  1. Check that IIS is installed and features you require are enabled
  2. Register Asp.Net in Windows 10 for the Framework version you use.

    dism /online /enable-feature /all /featurename:IIS-ASPNET45

  3. Remove read-only tick and grant IIS with permissions on the folder your application is deployed.
Daniel Manta
  • 5,682
  • 13
  • 35
  • 38
1

You need to go over your IIS configurations again, do re-check whether you have the “Default Document” set for your website in IIS Manager.

Also, if you’re running directly via Visual Studio, check whether you have selected the relevant “Project” as the “Startup Project” for the Solution (visit https://msdn.microsoft.com/en-us/library/a1awth7y.aspx).

If the above fail, do recheck the IIS Permission for the particular project (visit https://support.microsoft.com/en-us/help/313075/how-to-configure-web-server-permissions-for-web-content-in-iis)

Lastly as mentioned above, do un-check the "Read Only" Flag if its there. Do share your feedback and let me know if your problem still persists.

Mikaal Anwar
  • 1,630
  • 5
  • 16