Asp高手看过来
wl135 2000-09-05 05:33:00 我需要从一个文本文件中取出内容,显示在页面上,server是pws 4.0代码如下:
<%@ Language=VBScript %>
<HTML>
<HEAD>
<META NAME="GENERATOR" Content="Microsoft Visual Studio 6.0">
</HEAD>
<BODY>
<%
path = server.MapPath("tz.txt")
set fs = server.CreateObject("Scripting.FileSystemObject")
if fs.FileExists(Path) then
set ts = fs.OpenTextFile(Path,ForReading,false)
tz=ts.readall
end if
set fs=nothing
%>
<%=path%>
<%=tz%>
</BODY>
</HTML>
tz.txt确实存在,且path返回也正确,但是访问页面时,报错:
Server object error 'ASP 0177 : 80070057'
Server.CreateObject Failed
/test/index1.asp, line 12
00000000
请各位大侠想想办法,在下感激不尽