这个是为什么?

Memocs 2003-10-20 08:59:39
装了.net framework 1.1 后,运行一个 test.aspx 后,出现这样的错误提示:

Server Error in '/' Application.
--------------------------------------------------------------------------------

Access denied to 'C:\Inetpub\wwwroot\'. Failed to start monitoring file changes.
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

Exception Details: System.Web.HttpException: Access denied to 'C:\Inetpub\wwwroot\'. Failed to start monitoring file changes.

Source Error:

An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.

Stack Trace:


[HttpException (0x80070005): Access denied to 'C:\Inetpub\wwwroot\'. Failed to start monitoring file changes.]
System.Web.DirMonCompletion..ctor(DirectoryMonitor dirMon, String dir, Boolean watchSubtree, UInt32 notifyFilter) +140
System.Web.DirectoryMonitor.StartMonitoring() +42
System.Web.DirectoryMonitor.StartMonitoringFile(String file, FileChangeEventHandler callback, String alias) +154
System.Web.FileChangesMonitor.StartMonitoringDirectoryRenamesAndBinDirectory(String dir, FileChangeEventHandler callback) +278
System.Web.HttpRuntime.FirstRequestInit(HttpContext context) +331

[HttpException (0x80004005): ASP.NET Initialization Error]
System.Web.HttpRuntime.FirstRequestInit(HttpContext context) +964
System.Web.HttpRuntime.ProcessRequestInternal(HttpWorkerRequest wr) +128




--------------------------------------------------------------------------------
Version Information: Microsoft .NET Framework Version:1.1.4322.573; ASP.NET Version:1.1.4322.573
...全文
40 7 打赏 收藏 转发到动态 举报
写回复
用AI写文章
7 条回复
切换为时间正序
请发表友善的回复…
发表回复
haoliqi 2003-10-20
  • 打赏
  • 举报
回复
IIS权限问题,右键管理站点-所有任务-权限向导
CMIC 2003-10-20
  • 打赏
  • 举报
回复
look
http://support.microsoft.com/default.aspx?scid=kb;en-us;317955&Product=aspnet
asam2183 2003-10-20
  • 打赏
  • 举报
回复
如果还不行,重新注册一下框架
C:\WINNT\Microsoft.NET\Framework\v1.0.3705\aspnet_regiis -U
C:\WINNT\Microsoft.NET\Framework\v1.0.3705\aspnet_regiis -I
asam2183 2003-10-20
  • 打赏
  • 举报
回复
没有给ASP.NET用户权限
Memocs 2003-10-20
  • 打赏
  • 举报
回复
to rgbcn(rgbcn) : 添了,没有用

to muyangzuo(牧羊座) : 该怎么设?
muyangzuo 2003-10-20
  • 打赏
  • 举报
回复
你设置了IIS没有?
rgbcn 2003-10-20
  • 打赏
  • 举报
回复
没有赋予ASP.NET用户相关的权限。
找到数据库所在文件夹->右键->属性->安全,添加ASP.NET用户“写”的权限。

62,025

社区成员

发帖
与我相关
我的任务
社区描述
.NET技术交流专区
javascript云原生 企业社区
社区管理员
  • ASP.NET
  • .Net开发者社区
  • R小R
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告

.NET 社区是一个围绕开源 .NET 的开放、热情、创新、包容的技术社区。社区致力于为广大 .NET 爱好者提供一个良好的知识共享、协同互助的 .NET 技术交流环境。我们尊重不同意见,支持健康理性的辩论和互动,反对歧视和攻击。

希望和大家一起共同营造一个活跃、友好的社区氛围。

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