经典 ASP sql 服务器 "operation is not allowed" 错误

Classic ASP sql server "operation is not allowed" error

我遇到错误:

Request object error 'ASP 0104 : 80004005'

Operation not Allowed

/post.asp, line 3

尝试写入我的数据库后出现此错误。我添加的代码是

    jquery stuff{
    ar2 = useless2.split("Summary");
    ar = ar2[0];
    re = new RegExp("\n", "g");
    useless = ar.replace(re, "<br>");
    re = new RegExp('"', "g");
    useless = ar.replace(re, '""');
    used = useless;
    }

html stuff{
<input type="hidden" name="vDescription_' + c + '" value="' + used + '">
}

(是的我知道used=useless就是没用)

描述的示例:

<input type="hidden" name="vDescription_323" value=" 

0:07 Discussion

1:06 Introduction and Motivation

2:24 Support Vector Machines

6:59 The Financial Kernel (FK)

8:28 Kernel Methods

10:10 Example

10:14 Data Selection

10:34 Preprocessing

10:57 Testing

">

这是从检查元素中提取的。我不完全确定为什么它显示新行而不是
代码,这可能是导致错误的原因?

ASP代码:

<!--#include file="connv.inc"-->
<%
n=Request.form("total")
response.write(n)

for x = 0 to n-1
ttitle=Request.form("title_"&x)
title=Replace(ttitle, "'", "''")
id=Request.form("id_"&x)
views=Request.form("vViews_"&x)
likes=Request.form("vLikes_"&x)
description=Request.form("vDescription_"&x)

sql="if NOT exists (select * from tbl_videos where videoId = '"&id&"') INSERT INTO tbl_videos(videoTitle, videoId, videoLikes, videoViews, videoDescription, swamCompatible) values ('"&title&"', '"&id&"', '"&likes&"', '"&views&"', '"&description&"', '0')"
connv.execute(sql)
response.write(sql&"<br>")
next
%>

<html>
<head>
<title> Updating Tables </title>
</head>
<body>

</body>
</html>

<!--#include file="closeEmv.inc"-->

当发布的数据大小超过 ASP "Maximum Entity Requesting Body Limit" 时,您会收到此错误。

来自Microsoft

This issue occurs if a Content-Length header is present and if the Content-Length header specifies an amount of data that is larger than the value of the AspMaxRequestEntityAllowed property in the IIS metabase. The default value for the AspMaxRequestEntityAllowed property is 204,800 bytes.