菜鸟问题但很急

oliver007 2003-12-30 04:42:35
我把网站文件夹放在c:\inetpub\wwwroot\
可怎么我用http://localhost/sitename访问时,
他提示我

没有权限

/website/index.asp, 15行
...全文
78 27 打赏 收藏 转发到动态 举报
写回复
用AI写文章
27 条回复
切换为时间正序
请发表友善的回复…
发表回复
oliver007 2003-12-31
  • 打赏
  • 举报
回复
help me
oliver007 2003-12-31
  • 打赏
  • 举报
回复
就是在inetpub/wwwroot/website就不行:(
用http://localhost/website访问:(
oliver007 2003-12-31
  • 打赏
  • 举报
回复
但我把站点放到inetpub外,新建一个虚拟目录还是可以的:(
全息宇宙 2003-12-31
  • 打赏
  • 举报
回复
估计是没有写文本的权限
lanbaowwe 2003-12-31
  • 打赏
  • 举报
回复
检查一下默认根目录是否正确,要不建个站点或虚拟目录吧!
oliver007 2003-12-31
  • 打赏
  • 举报
回复
我想是不是由于IIS中有一些配置文件没有被复制到站点文件夹中:(
但是我不知道那是些什么
oliver007 2003-12-31
  • 打赏
  • 举报
回复
是用administrator登录的,可以新建虚拟目录,可以删除
sxsgssgs 2003-12-31
  • 打赏
  • 举报
回复
你是用什么用户操作的?最好是administrator用户。
oliver007 2003-12-31
  • 打赏
  • 举报
回复
帮顶一下
oliver007 2003-12-31
  • 打赏
  • 举报
回复
还请帮忙:))

谢谢
oliver007 2003-12-31
  • 打赏
  • 举报
回复
<!--#include file="conn.asp"-->
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<%
Dim Counter
Sub IncrementCounter()
Set fs=Server.CreateObject("Scripting.FileSystemObject")
counter_file=Server.MapPath("counter.txt")
Set txt=fs.OpenTextFile(counter_file,1,true)
Counter=txt.ReadLine
txt.Close

Counter=Counter+1

Set txt=fs.CreateTextFile(counter_file,True)
txt.WriteLine(Counter)
txt.Close
End Sub

Application.Lock
InCrementCounter
Application.UnLock
%>
睿睿爸爸 2003-12-31
  • 打赏
  • 举报
回复
必须有删除和新建权限
sxsgssgs 2003-12-31
  • 打赏
  • 举报
回复
把你的代码贴出来,看看。
oliver007 2003-12-31
  • 打赏
  • 举报
回复
真的很急,帮忙顶一下
oliver007 2003-12-31
  • 打赏
  • 举报
回复
请各位高手再帮帮我,非常急!!!


谢谢
oliver007 2003-12-30
  • 打赏
  • 举报
回复
好像不行:(
hackate 2003-12-30
  • 打赏
  • 举报
回复
估计是IIS的解吸问题吧,看看那里设置有误!
Lowjim 2003-12-30
  • 打赏
  • 举报
回复
好象安装江民2004和诺顿就会这样,我也遇到过,如果装了这两个软件,你把它们卸载了,然后重装一下IIS,可能就可以解决。
oliver007 2003-12-30
  • 打赏
  • 举报
回复
Set txt=fs.CreateTextFile(counter_file,True)
oliver007 2003-12-30
  • 打赏
  • 举报
回复
各位高手麻烦帮看看
加载更多回复(7)

28,407

社区成员

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

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