fubumvc - Web 服务器配置为不列出此目录的内容

标签 fubumvc

使用 Visual Studio 2012:

  • 我创建了一个“ASP.NET Empty Web Application”(使用 C#)。
  • 我使用 NuGet 来安装 FubuMVC包裹。
  • 当我运行应用程序(使用 IIS Express)时,我得到“欢迎使用 FubuMVC!”告诉我删除 FubuMVC.GettingStarted.dll 的页面文件并设置主页。
  • 所以我做了这两件事,实现了 HomeController只是返回 "Hello World"来自 Index .

  • 我收到一个 IIS 错误,而不是预期的“Hello World”:The Web server is configured to not list the contents of this directory.
    我做错了什么?

    最佳答案

    尝试这个
    cmd => 不要忘记以管理员身份运行

    %windir%\Microsoft.NET\Framework64\v4.0.30319\aspnet_regiis.exe -ir

    关于fubumvc - Web 服务器配置为不列出此目录的内容,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/15999474/

    相关文章:

    asp.net-mvc - Thunderdome Action 调用程序 asp.net mvc

    asp.net - 根据声明允许或拒绝访问整个网站

    entity-framework - Entity Framework 分离对象合并

    fubumvc - 如何创建异常包装 fubumvc 行为?

    c# - 在框架中使用 Funcs 而不是实例