Server Error in '/cmsupload' Application.
--------------------------------------------------------------------------------Access denied to 'D:\CMS\CmsUpload\login.aspx'. 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 'D:\CMS\CmsUpload\login.aspx'. 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 'D:\CMS\CmsUpload\login.aspx'. Failed to start monitoring file changes.]
   System.Web.DirectoryMonitor.AddFileMonitor(String file) +381
   System.Web.DirectoryMonitor.StartMonitoringFile(String file, FileChangeEventHandler callback, String alias) +76
   System.Web.FileChangesMonitor.StartMonitoringPath(String alias, FileChangeEventHandler callback) +495
   System.Web.Caching.CacheDependency.Init(Boolean isPublic, Boolean isSensitive, String[] filenamesArg, String[] cachekeysArg, CacheDependency dependency, DateTime utcStart) +1535
   System.Web.Caching.CacheDependency..ctor(Boolean isSensitive, String[] filenames, DateTime utcStart) +50
   System.Web.Configuration.HttpConfigurationSystem.GetCacheDependencies(Hashtable cachedeps, DateTime utcStart) +154
   System.Web.Configuration.HttpConfigurationSystem.ComposeConfig(String reqPath, IHttpMapPath configmap) +760
   System.Web.HttpContext.GetCompleteConfigRecord(String reqpath, IHttpMapPath configmap) +434
   System.Web.HttpContext.GetCompleteConfig() +49
   System.Web.HttpContext.GetConfig(String name) +195
   System.Web.CustomErrors.GetSettings(HttpContext context, Boolean canThrow) +20
   System.Web.HttpResponse.ReportRuntimeError(Exception e, Boolean canThrow) +40
   System.Web.HttpRuntime.FinishRequest(HttpWorkerRequest wr, HttpContext context, Exception e) +480 
--------------------------------------------------------------------------------
Version Information: Microsoft .NET Framework Version:; ASP.NET Version:

解决方案 »

  1.   

    参考一下这个,http://www.cfcxy.net/dispbbs.asp?BoardID=2&id=204.或者你可能在MSDN里去搜索一下,也有说明.跟这个差不多
      

  2.   

    machine.config
    <processmodel user=domain\administrator password=adminpwd
      

  3.   

    haike 和 hdt的方法都试过了,都不行:(,很谢谢你俩。
    我再把问题阐述一下:
    在项目中,我需要调用WORD组件,对文件进行转换处理,为了增加网络访问用户的权限,我采用了“本地身份验证后模拟客户端”的方式,也就是说在Web.config中增加了一项设置,如下所示:
       《 identity impersonate=“true” userName=“Administrator” password=“1234567” / 》
      这样配置后,项目在普通服务器上不存在问题,但不能布署到域控制服务器上,请各位大虾再出出主意,谢谢先
      

  4.   

    也许改用DCOM配置会好。
    我用到了Excel,是这样配置的。web.config 中禁用用户模拟<identity impersonate="false"/> 或者删掉.
     运行 DcomCnfg
    组件服务 --〉我的电脑--〉DOCM配置 --〉 Microsoft Word 文档
    2000 server 下 aspnet 启动权限。(进程中最后会只留一个,iis重启时消失)2003 server 下 network service  加到 启动和激活权限(全部权限)
        访问权限(全部权限)
       配置权限(全部权限)