Asp classic ASP Classic-响应对象的每个属性/方法都会生成错误,但写入会生成错误

Asp classic ASP Classic-响应对象的每个属性/方法都会生成错误,但写入会生成错误,asp-classic,response,Asp Classic,Response,因此,我们有了这个ASP经典应用程序,我们将其移动到运行Windows 2008的新共享托管服务器 现在,对响应方法的每次调用或对其属性的任何访问都会生成“对象不支持此属性或方法”错误。唯一有效的方法是回应。写让我更困惑 技术支持人员表示,该服务器没有任何问题,而且“许多其他asp经典应用程序工作正常” 发生什么事了 编辑:以下是我用来执行测试的代码 <% on error resume next 'clear method -------------------------------

因此,我们有了这个ASP经典应用程序,我们将其移动到运行Windows 2008的新共享托管服务器
现在,对响应方法的每次调用或对其属性的任何访问都会生成“对象不支持此属性或方法”错误。唯一有效的方法是回应。写让我更困惑
技术支持人员表示,该服务器没有任何问题,而且“许多其他asp经典应用程序工作正常”
发生什么事了

编辑:以下是我用来执行测试的代码

<%
on error resume next

'clear method -----------------------------------------------------------------
response.Clear  
if err<>0 then 
    response.write "Clear: <U>ASPCheck-ErroR " & err.description & "</U>"
    err.clear
end if

'properties -------------------------------------------------------------------
response.write  "<br />Cookies: "  
response.Cookies("test") = "testing" 'does not produce any output
if err<>0 then 
    response.write "<U>ASPCheck-ErroR " & err.description & "</U>"
    err.clear
end if

response.write  "<br />Buffer: "
response.write response.Buffer  
if err<>0 then 
    response.write "<U>ASPCheck-ErroR " & err.description & "</U>"
    err.clear
end if

response.write  "<br />CacheControl: "
response.write response.CacheControl
if err<>0 then 
    response.write "<U>ASPCheck-ErroR " & err.description & "</U>"
    err.clear
end if

response.write  "<br />Charset: "
response.write response.Charset
if err<>0 then 
    response.write "<U>ASPCheck-ErroR " & err.description & "</U>"
    err.clear
end if

response.write  "<br />ContentType: "
response.write response.ContentType 
if err<>0 then 
    response.write "<U>ASPCheck-ErroR " & err.description & "</U>"
    err.clear
end if

response.write  "<br />Expires: "
response.write response.Expires 
if err<>0 then 
    response.write "<U>ASPCheck-ErroR " & err.description & "</U>"
    err.clear
end if

response.write  "<br />ExpiresAbsolute: "
response.write response.ExpiresAbsolute 
if err<>0 then 
    response.write "<U>ASPCheck-ErroR " & err.description & "</U>"
    err.clear
end if

response.write  "<br />IsClientConnected: "
response.write response.IsClientConnected   
if err<>0 then 
    response.write "<U>ASPCheck-ErroR " & err.description & "</U>"
    err.clear
end if

response.write  "<br />Pics: "
response.Pics = ""
if err<>0 then 
    response.write "<U>ASPCheck-ErroR " & err.description & "</U>"
    err.clear
end if

response.write  "<br />Status: "
response.write response.Status  
if err<>0 then 
    response.write "<U>ASPCheck-ErroR " & err.description & "</U>"
    err.clear
end if

' methods ---------------------------------------------------------------------
response.write  "<br />AddHeader: "
response.AddHeader  "testheader","testheadervalue"
if err<>0 then 
    response.write "<U>ASPCheck-ErroR " & err.description & "</U>"
    err.clear
end if

response.write  "<br />AppendToLog: "
response.AppendToLog    ""
if err<>0 then 
    response.write "<U>ASPCheck-ErroR " & err.description & "</U>"
    err.clear
end if

response.write  "<br />BinaryWrite: "
response.BinaryWrite    "B"
if err<>0 then 
    response.write "<U>ASPCheck-ErroR " & err.description & "</U>"
    err.clear
end if

response.write  "<br />Flush: "
response.Flush  
if err<>0 then 
    response.write "<U>ASPCheck-ErroR " & err.description & "</U>"
    err.clear
end if

response.write  "<br />Write: "
response.Write  "W"
if err<>0 then 
    response.write "<U>ASPCheck-ErroR " & err.description & "</U>"
    err.clear
end if
%>

在IIS上,
启用缓冲
未选中


您可以在“应用程序开发”>“ASP”>“启用缓冲”下找到此设置。

您可以粘贴一些不工作的代码吗?我在服务器上运行了您的代码,但得到的唯一错误是:Pics:ASPCheck error Object不支持此属性或方法。与我的开发机器相同,但不在服务器上。是否有可能ASP没有正确安装?很难找到,它是一个共享托管服务器。对我来说,这似乎是某种安全限制。或者他们可能安装了导致这种行为的其他设备。这可以解释一些错误,但缓冲区、CacheControl、字符集、ContentType、Expires、ExpiresAbsolute、iClientConnection和状态又如何呢?不过我试过了。
Clear: ASPCheck-ErroR Object doesn't support this property or method
Cookies: ASPCheck-ErroR Object doesn't support this property or method
Buffer: ASPCheck-ErroR Object doesn't support this property or method
CacheControl: ASPCheck-ErroR Object doesn't support this property or method
Charset: ASPCheck-ErroR Object doesn't support this property or method
ContentType: ASPCheck-ErroR Object doesn't support this property or method
Expires: ASPCheck-ErroR Object doesn't support this property or method
ExpiresAbsolute: ASPCheck-ErroR Object doesn't support this property or method
IsClientConnected: ASPCheck-ErroR Object doesn't support this property or method
Pics: ASPCheck-ErroR Object doesn't support this property or method
Status: ASPCheck-ErroR Object doesn't support this property or method
AddHeader: ASPCheck-ErroR Object doesn't support this property or method
AppendToLog: ASPCheck-ErroR Object doesn't support this property or method
BinaryWrite: ASPCheck-ErroR Object doesn't support this property or method
Flush: ASPCheck-ErroR Object doesn't support this property or method
Write: W