出现Microsoft VBScript 运行时错误 错误 '800a004c'

来源:百度知道 编辑:UC知道 时间:2024/09/24 09:09:22
我将目录换成了MOVIE后 就出现了

Microsoft VBScript 运行时错误 错误 '800a004c'

路径未找到

/movie/inc/sub.asp,行 409
'----------------FSO操作------------------------------
'读取文件
Function FSOFileRead(Template_Name)
Dim objFSO,objCountFile,FiletempData
Set objFSO = Server.CreateObject("Scripting.FileSystemObject")
Set objCountFile = objFSO.OpenTextFile(Server.MapPath(Template_Name),1,True)
If objCountFile.AtEndOfStream = false Then FSOFileRead = objCountFile.ReadAll
objCountFile.Close
Set objCountFile=Nothing
Set objFSO = Nothing
End Function

Server.mappath("/ad_page"))这里,Server.mappath是把相对路径转为绝对路径。现在的情况就是相对于网站根目录。就是要求http://你的域名(不能有目录)/ad_page是存在的,如:http://ewik8.cn/ad_page就对了,而http://ewik8.cn/abc/ad_page就会出错。你看看你的位置是不是没有放对。

---------------
不知道你的是什么结构,你把Server.mappath("/ad_page"))改成Server.mappath("ad_page"))试一下

这不是很显然 ,到 /movie/inc/sub.asp 的第 409行,看应用了什么文件。肯定是路径改过之后找不到文件了