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.
这是怎么回事啊?
...全文
678 6 打赏 收藏 转发到动态 举报
写回复
用AI写文章
6 条回复
切换为时间正序
请发表友善的回复…
发表回复
nbwjl 2014-04-13
  • 打赏
  • 举报
回复
IIS访问配置成administrator试试。
lhb8801 2014-04-12
  • 打赏
  • 举报
回复
你去百度这个错误 An error occurred on the server when processing the 第一个就可以
阿海无敌 2014-04-12
  • 打赏
  • 举报
回复
有解决的办法吗
big_shot 2014-04-11
  • 打赏
  • 举报
回复
c盘没有运行你这个网站的用户的写入权限。如果可以匿名写,服务器应该不安全吧
Go 旅城通票 2014-04-11
  • 打赏
  • 举报
回复
c盘没有运行你这个网站的用户的写入权限。。

28,390

社区成员

发帖
与我相关
我的任务
社区描述
ASP即Active Server Pages,是Microsoft公司开发的服务器端脚本环境。
社区管理员
  • ASP
  • 无·法
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧