【问题标题】:Azure Mobile Services on IISExpress gives me the error - web server is not configured to list the contents of this directoryIISExpress 上的 Azure 移动服务给了我错误 - Web 服务器未配置为列出此目录的内容
【发布时间】:2015-03-30 22:29:26
【问题描述】:

更新最新的 AzureMobile.Services.Backend.Tables 包后,当我尝试在 IISExpress 或 LocalIIS 上运行我的应用程序时出现此错误:

Web 服务器未配置为列出此目录的内容。

我知道作为 asp.net web api 的 azure 移动服务没有在运行时生成的主页。我尝试创建一个新的 azure 移动服务,它也可以正常工作。

我的 webconfig 是否遗漏了什么?

【问题讨论】:

  • 当您尝试访问您的 api 路由或仅当您尝试访问服务器的根目录时收到此错误?
  • 从 Visual Studio 运行项目时出现此错误。
  • 是的,但是当您的浏览器出现错误时,您尝试浏览到哪个 URL?
  • 对,那么您有 index.html 或其他要回应的内容吗?听起来没有……浏览到 API 方法也是如此,例如http://localhost:13188/api/someAPIMethod应该返回数据?

标签: c# asp.net azure asp.net-web-api2 azure-mobile-services


【解决方案1】:

通过使用默认模板创建另一个移动服务项目来解决。

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 2013-04-06
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2016-06-09
    • 1970-01-01
    相关资源
    最近更新 更多