asp.net - 尝试调试我已迁移的 ASP.NET (WebForms) 应用程序时出现错误

标签 asp.net visual-studio-2008

我正在尝试将 ASP.NET 2.0 应用程序 (WebForms) 迁移到 ASP.NET 3.5。我终于修复了遇到的 500.19 IIS 7.5 错误。现在,只要我不尝试调试它,它就会运行。如果我尝试调试它,我会收到一条错误消息。我已经搜索过有关此错误的帮助,但几乎没有什么帮助。这是错误消息的文本:

Unable to start debugging on the web server. Check for one of the following.

  1. The application you are trying to debug uses a version of the Microsoft .NET Framework that is not supported by the debugger.
  2. The debugger has made an incorrect assumption about the Microsoft .NET Framework version your application is going to use.
  3. The Microsoft .NET Framework version specified by you for debugging is incorrect.

Please see the Visual Studio .NET debugger documentation for correctly specifying the Microsoft .NET Framework version your application is going to use for debugging.

据我所知,我为此应用程序使用了正确版本的 .NET Framework (3.5)。虽然我对 Windows 7 上的 IIS 7.5 不太熟悉。

最佳答案

我发现我必须进入 IIS 并更改升级后的 ASP.NET 应用程序正在使用的应用程序池。它已被分配到与 .NET 4.0 关联的应用程序池。我将其更改为与 .NET Framework 2.0 相关的内容。

关于asp.net - 尝试调试我已迁移的 ASP.NET (WebForms) 应用程序时出现错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/3982073/

相关文章:

C# ASP.NET - 一个可以从任何函数访问的变量,并且对任何用户都不同?

javascript - 在IE和VS2008中使用断点调试Javascript

asp.net - Fiddler:错误 502 代理错误

android - 如何通过调用web服务在asp.net和android之间发送和接收数据

visual-studio - 有没有办法让 Resharper 修复文件上的所有内容(使用第一个选项)

c++ - 使用 Boost 日期时间库和 Visual Studio 2008 时运行时检查失败

c# - JQuery AJAX,错误状态代码 : 200, 状态文本:parserorro |好的

visual-studio-2008 - Web 应用程序项目类型在 Visual Studio 2008 中不可用

c# - 应该如何在 ASP.Net 中对事件进行单元测试?

asp.net - 抓取 ASP.net 网站 : Need to Page through a Gridview using Python Mechanize