ASP “Operation not Allowed” error occured while eecute Request.Form method

人走茶凉 提交于 2019-12-07 11:15:42

问题


I have run the following script for increase the file size for upload E:\inetpub\adminscripts cscript adsutil.vbs set w3svc/ASPMaxRequestEntityAllowed size

After running the command.I am getting this error...

Request object error 'ASP 0104 : 80004005'

Operation not Allowed

/ewqms370/common/indexintermediate.asp, line 63

...for this code here:

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

Can anyone see something wrong???


回答1:


What value did you se the AspMaxRequestEntityAllowed property to? Remember that this should be specified in bytes so you may want to double check this. It would probably be worthwhile to open up your metabase file to ensure your script updated the setting accordingly. On IIS6 you can open metabase.XML which is located in c:\Windows\System32\Inetsrv find the line "AspMaxRequestEntityAllowed" to double check this.

AspMaxRequestEntityAllowed specifies the maximum number of bytes allowed in the entity body of an ASP request. If a Content-Length header is present and specifies an amount of data greater than the value of AspMaxRequestEntityAllowed, IIS returns an error response. This property is related in function to MaxRequestEntityAllowed, but is specific to an ASP request.

Official documentation in MSDN: AspMaxRequestEntityAllowed Metabase Property (IIS 6.0)




回答2:


The reason you've expanded the Request entity is probably because you are posting a file to the server. However to do that you will either be using a multipart mime type or you have some home grown code consuming the entity body. In either case the request Form object is not going to be of any use. It only works when standard url encode form data is posted.



来源:https://stackoverflow.com/questions/1831252/asp-operation-not-allowed-error-occured-while-eecute-request-form-method

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!