回 帖 发 新 帖 刷新版面

主题:这里究竟是怎么错了呢?

Microsoft VBScript 运行时错误 (0x800A0035)
文件未找到
/admin8/makeclass.asp, 第 141 行

classfile=server.mappath("../autojs/class"&RootID&".js")
Set fso = CreateObject("Scripting.FileSystemObject")
Set txt = fso.OpenTextFile(classfile,1)        这是第141行,哪有错啊
classjs=txt.ReadLine
classjs=replace(classjs,"document.write('"," ")
classjs=replace(classjs,"')"," ")
txt.close

回复列表 (共3个回复)

沙发

没找到文件呀!
你 response.write classfile 看看文件路径对不对

板凳


由于你在"../autojs/class"&RootID&".js中用到了父目录标识“../”,你检查一下你的IIS参数设置,在IIS中有一项是指明是否使用启用父路径(IIS属性中选中虚拟目录,按下配置按钮,在新的对话框中选择“选项”选项卡。立即可以看见)。

3 楼

文件未找着,错误提示的很清晰..
建议采用1楼朋友的办法调试...

我来回复

您尚未登录,请登录后再回复。点此登录或注册