gpt4 book ai didi

asp.net-mvc - 为什么我收到消息 "The specified request cannot be executed from current Application Pool"?

转载 作者:行者123 更新时间:2023-12-02 19:48:12 25 4
gpt4 key购买 nike

很不知道为什么会看到这个错误。我像这样导航到我的登录 View http://test.staging.com/mywebsite/Login

我的登录 View 刚刚使用 MVC 重做,但我也看到同样的错误消息进入 aspx 页面...

如果我使用 http,我会收到错误消息无法从当前应用程序池执行指定的请求。如果我使用https://test.staging.com/mywebsite/Login , 我很好。如果我不指定协议(protocol),test.staging.com/mywebsite/Login ,我也收到错误

幕后是否发生错误,并且我的自定义错误页面无法像讨论的那样显示 here

导致此错误的其他原因是什么?

最佳答案

这通常意味着您的自定义错误被配置为作为不同的应用程序池运行。

您可以阅读更多at MSDN 。 (请参阅“使用另一个应用程序池中的自定义错误”部分)。

There are two ways to correct this behavior. The first is possibly not one that you are interested in because it would require you to change your current architecture and run both sites in the same application pool (such as share the same worker process memory space). To do this, simply move the /errors virtual directory to run in the same application pool as the site for which it serves the custom error.

The second way is to make use of a registry key provided by IIS 6.0. This registry key makes sure IIS 6.0 does not check the metadata during the execution of the custom error and therefore allowing this to work.

有关注册表项修复的信息,请参阅文章。

这也可能意味着您正在使用类似于 Server.Transfer 的内容到位于不同 AppPool 中的页面。

关于asp.net-mvc - 为什么我收到消息 "The specified request cannot be executed from current Application Pool"?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/8946759/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com