我正在尝试将 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.
- The application you are trying to debug uses a version of the Microsoft .NET Framework that is not supported by the debugger.
- The debugger has made an incorrect assumption about the Microsoft .NET Framework version your application is going to use.
- 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/