IIS下测试ASP出错,求大神赐教!
阿海无敌 2014-04-11 12:58:19 我在一个HTML文件"default.htm"里面有一个超链接指向同路径下的一个Asp文件"write.asp"。asp文件主要内容如下:
<%
dim fs,fname
set fs=Server.CreateObject("Scripting.FileSystemObject")
set fname=fs.CreateTextFile("c:\test.txt",8,true)
fname.WriteLine("Hello World!")
fname.Close
set fname=nothing
set fs=nothing
%>
我的目的是在本地服务器上生成txt文件。
可是总出现这个错误:
An error occurred on the server when processing the URL. Please contact the system administrator.
If you are the system administrator please click here to find out more about this error.
这是怎么回事啊?