最后管理员为我配置了 IIS,下面列出了错误消息。设置 SQLStream = CreateObject("ADODB.Stream") 设置 SQLConnection = CreateObject("ADODB.Connection") 设置 SQLCommand = CreateObject("ADODB.Command") 设置 SQLRecordSet = CreateObject("ADODB.RecordSet") SQLConnection.Open "Provider= sqloledb;SERVER=SQLPROD;DATABASE=MyDataBase;UID=MyUsername;PWDMyPassword;"
'Response.Write("Connection Status: " & SQLConnection.State) & vbnewline
'Response.Write("Connection Provider: " & SQLConnection.Provider) & vbnewline
'Response.Write("Version: " & SQLConnection.Version) & vbnewline
SQLCommand.ActiveConnection = SQLConnection
SQLCommand.CommandText = "SELECT Seminars.Year, Seminars.SeminarID, Seminars.Theme, Seminar_Week.First, Seminar_Week.Last, Seminar_Week.WeekID, Seminar_Week.Date, Seminar_Week.Affiliation FROM Seminars CROSS JOIN Seminar_Week"
'Response.Write("SQL Command Passed in: " & SQLCommand.CommandText)
Set adoRec = SQLCommand.Execute()
file1 = "./seminars/" & seminar_type & "/" & seminar_year & "/" & adoRec("Date") & "-" & adoRec("Year") & "_" & adoRec("Last") & ".pdf"
file2 = "./seminars/" & seminar_type & "/" & seminar_year & "/" & adoRec("Date") & "-" & seminar_year & "_" & adoRec("Last") & "(handouts).pdf"
file3 = "./seminars/" & seminar_type & "/" & seminar_year & "/" & adoRec("Date") & "-" & seminar_year & "_" & adoRec("Last") & "_Flyer.pdf"
Set fso = CreateObject("scripting.filesystemobject")
Response.Write("<p style=" & "margin-left:10px;" & "><img src=" & "./img/right_arrowblue.png" & " alt=" & "Expand/Collapse" & " id=" & "arrow_" & adoRec("Week") & " /><strong>[" & adoRec("Date") & "]</strong> " & "<a href=" & "javascript:toggle('seminar_" & adoRec("Week") &"')"">"&aroRec("First") & adoRec("Last") & ", " & adoRec("Affiliation") & "</a></p>")
最后一行代码导致此错误
ADODB.Recordset 错误“800a0cc1”
在与请求的名称或序号对应的集合中找不到项目。
文件路径,第 244 行
第 244 行是最后一行代码,应该在网页上写下有关每个研讨会的一些信息。
我很确定此时我指向的文件路径不正确,因为我在所有不同的字符串的某个地方都有一个额外的空间。
我现在的问题是一开始的那些,意思是那些在
"<p style=" & "margin-left:10px;" & "><img src=" & "./img/right_arrowblue.png"
造成麻烦。
我也不熟悉使用“展开/折叠”,所以如果有人能告诉我更多关于这一点的信息。我正在尝试修复别人的代码,所以我有点落后于 8 号球。