gpt4 book ai didi

asp-classic - ASP "Operation not Allowed"在执行 Request.Form 方法时发生错误

转载 作者:行者123 更新时间:2023-12-04 03:00:26 25 4
gpt4 key购买 nike

我已经运行以下脚本来增加上传的文件大小
E:\inetpub\adminscripts
cscript adsutil.vbs 设置 w3svc/ASPMaxRequestEntityAllowed 大小

运行命令后。我收到此错误...

请求对象错误“ASP 0104:80004005”

不允许操作

/ewqms370/common/indexintermediate.asp,第 63 行

...对于这里的代码:

strUserName=Replace(Request.Form("txtUserName"),"'","''")

任何人都可以看到有什么问题吗???

最佳答案

您将 AspMaxRequestEntityAllowed 属性设置为什么值?请记住,这应该以字节为单位指定,因此您可能需要仔细检查。打开您的元数据库文件以确保您的脚本相应地更新设置可能是值得的。在 IIS6 上,您可以打开位于 c:\Windows\System32\Inetsrv 中的 metabase.XML,找到“AspMaxRequestEntityAllowed”行来仔细检查。

AspMaxRequestEntityAllowed 指定 ASP 请求的实体正文中允许的最大字节数。如果存在 Content-Length header 并且指定的数据量大于 AspMaxRequestEntityAllowed 的值,则 IIS 将返回错误响应。此属性在功能上与 MaxRequestEntityAllowed 相关,但特定于 ASP 请求。

MSDN 官方文档:AspMaxRequestEntityAllowed Metabase Property (IIS 6.0)

关于asp-classic - ASP "Operation not Allowed"在执行 Request.Form 方法时发生错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/1831252/

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