【问题标题】:"The resource cannot be found" when I hit F5 in Visual Studio 2010在 Visual Studio 2010 中按 F5 时“找不到资源”
【发布时间】:2010-07-07 14:46:31
【问题描述】:

我有一个 .NET 3.5 Web 应用程序,我试图在我的本地开发环境中运行它。

每次按 F5 运行应用程序时,都会出现以下错误:

Server Error in '/' Application.

The resource cannot be found.

Description: HTTP 404. The resource you are looking for (or one of its dependencies) could have been removed, had its name changed, or is temporarily unavailable. Please review the following URL and make sure that it is spelled correctly.

Requested URL: /Default.aspx

Version Information: Microsoft .NET Framework Version:2.0.50727.3603; ASP.NET Version:2.0.50727.3614

我正在运行 Visual Studio 2010。这个 Web 应用程序在我们的生产服务器上完美运行,但我似乎无法让它在我的本地开发机器上运行。

关于如何解决此问题的任何建议?

【问题讨论】:

  • 我刚刚遇到了同样的问题。这似乎是在生产力电动工具暂时禁用之后发生的。生产力如此之高。你找到解决办法了吗?

标签: visual-studio-2010 server-error


【解决方案1】:

看起来它正在寻找本地 Web 服务器,因为您的 URL 是 /Default.aspx。您可能需要将其指向实际的服务器。

【讨论】:

  • 但我只是想直接从本地机器上的 Visual Studio 运行它。
  • 另外,如果您的应用程序是 .Net 3.5,您可能会遇到问题,因为 VS 声明它是 2.0 版
猜你喜欢
  • 2011-08-06
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 2012-04-20
  • 2014-12-21
  • 1970-01-01
相关资源
最近更新 更多