2

I have an .Net MVC application which runs fine if I use the build in Visual Studio Webserver. If I use the projects property pages to switch to IIS as the webserver and create a virtual directory for my project, any request I send to the server results in a "Directory listing denied" failure.

Does anyone know a solution for this?

tereško
  • 58,060
  • 25
  • 98
  • 150
Mats
  • 14,902
  • 33
  • 78
  • 110

2 Answers2

0

Might be the IIS does not have default.aspx set up as a start page.

Erik
  • 4,120
  • 2
  • 27
  • 20
0

It's an issue with 'extensionless' urls prior to IIS7.

It needs either an ISAPI filter or duplicate routes in the routing table with a .mvc extension. Try ScottGu's blog at weblogs.asp.net.

Steve Morgan
  • 12,978
  • 2
  • 40
  • 49