部署ASP.NET站点遇到报错Request is not available in this context

阿豪运维笔记 05-26 117阅读

温馨提示:这篇文章已超过38天没有更新,请注意相关的内容是否还可用!

部署ASP.NET站点遇到如下报错

Server Error in '/' Application.

Request is not available in this context

Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

Exception Details: System.Web.HttpException: Request is not available in this context

Source Error:

An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.

image.png

解决办法

把IIS应用程序池改成经典模式,报错即可解决

image.png

若文章图片、下载链接等信息出错,请联系反馈,博主将第一时间更新!如果喜欢本站,请打赏支持本站,谢谢!
文章版权声明:除非注明,否则均为阿豪运维笔记原创文章,转载或复制请以超链接形式并注明出处。

目录[+]

取消
微信二维码
微信二维码
支付宝二维码