服务器提示
Request denied.
Verify that the file or folder exists and that you have the necessary permissions on the server to perform the requested operation
...全文
1355打赏收藏
其他文件都可以改 就是ACCESS文件不能覆盖 在等 谁告诉我
其他文件都可以改 就是ACCESS文件不能覆盖 谁告诉我怎么回事(自己单独租用的服务器)用CUTEFUP 7。1上传的 服务器提示 Request denied. Verify that the file or folder exists and that you have the necessary permissions on the server to perform the requested operation
<%
option explicit
dim conn, dbname
set conn = nothing
dbname = "db.asp.mdb"
dim maintain '维护
maintain = true
sub openconn
'on error resume next
if maintain then
set conn = createobject("adodb.connection")
'conn.connectionstring = "Driver={Microsoft Access Driver (*.mdb) };dbq=" & server.MapPath(dbname)
conn.connectionstring = "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=" & server.MapPath(dbname)
conn.open
if err.number>0 then
set conn = nothing
response.write "数据库错误"
response.end
end if
if isobject(application("conn")) then
application.Lock
set application("conn") = nothing
application.UnLock
end if
else
dim isobj
if isobject(application("conn")) then
if not application("conn") is nothing then
set conn = application("conn")
isobj = true
else
isobj = false
end if
else
isobj = false
end if
if not isobj then
set conn = createobject("adodb.connection")
'conn.connectionstring = "Driver={Microsoft Access Driver (*.mdb) };dbq=" & server.MapPath(dbname)
conn.connectionstring = "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=" & server.MapPath(dbname)
conn.open
if err.number>0 then
set conn = nothing
response.write "数据库错误"
response.end
end if
application.lock
set application("conn") = conn
application.unlock
end if
end if
end sub
openconn
sub closeconn
if not maintain then
exit sub
end if
if not conn is nothing then
conn.close
set conn = nothing
end if
end sub
%>