jquery - 经典 ASP sql server "operation is not allowed"错误

标签 jquery sql-server vbscript asp-classic

我收到错误:

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“最大实体请求正文限制”时,您可能会收到此错误。

来自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.

关于jquery - 经典 ASP sql server "operation is not allowed"错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/31519408/

相关文章:

php - 如何计算网格中选中复选框的记录

jquery - 使用没有按钮的 UI 图标 Sprite ?

javascript - jQueryeach + FileReader 不返回正确的值

sql - 使用 SQL Server 查找表中的重复记录

sql-server - 为什么 Azure SQL sys.event_log 表中没有 "additional_data"?

networking - 在 vbscript 中在另一台计算机上显示消息框?

object - QTP 中的 .Exist 超时如何工作?

jquery - 在 x-handlebars 脚本中执行 javascript

sql - 小计和总计 SQL Pivot

vba - VBScript 似乎在等待 Excel 宏完成?