Server.MapPath(), ASP 0171 (0x80004005)
来源:百度知道 编辑:UC知道 时间:2024/06/03 23:44:48
Server.MapPath(), ASP 0171 (0x80004005)
必须为 MapPath 方法指定路径参数。
<%
ElseIf Request("Save") <> Empty Then
Set txtf = fs.OpenTextFile( Server.MapPath(index), 2, True ) 就是这行
txtf.Write Request("Content")
Response.Clear
Response.Redirect "View.asp?FileName=" & index
End If
%>
谁能帮我解决一下
能具体点吗?
必须为 MapPath 方法指定路径参数。
<%
ElseIf Request("Save") <> Empty Then
Set txtf = fs.OpenTextFile( Server.MapPath(index), 2, True ) 就是这行
txtf.Write Request("Content")
Response.Clear
Response.Redirect "View.asp?FileName=" & index
End If
%>
谁能帮我解决一下
能具体点吗?
index 是什么?
你写index的位置应该是一个实际存在文件名。
而且文件路径不能以/开始,不能是http://的形式,必须是网站的一个相对连接如index.asp或../index.asp
---------------------------------------------
你的程序中index 应该是一个变量
而你要保证index这个变量所对应的值必须符合一下条件:
1, 不能以 / 开头
2, 不能以 http:// 这样的URL
3, 必须使用网站的相对连接,如 index.asp 或 ../index.asp
4, 必须保证你所引用的相对连接地址是存在的,不能是404错误
形如 /index.asp 或 http://domain/index.asp 都是错误的
这次明白了?
请教Server.MapPath用法
server.mappath("")语法
asp server.mappath的问题?
Server.MapPath问题,急,解决后加分!
server.mappath(/)代表什么呀
ASP Server.MapPath 服务器根路径
Server.MapPath(), ASP 0171 (0x80004005)
asp中movefile server.mappath(), server.mappath()d的报错
关于ASP server.MapPath报错的问题
错误类型:Server.MapPath(), ASP 0173 (0x80004005)