Failed to start monitoring file changes.

J

Jay Ge

I searched this issue in internet, but they still cannot solve my
issue, so your help/suggestion will be preciated.

this page is placed on serverA, and it will touch files on
serverB.(but it seems this is not double hop issue.) I use
impersonation <identity impersonate="true"
userName="domain\username" password="passwd" /> and
<authentication mode="Windows"/>. the account "domain\username"
is the admin of serverA (I have grant it admin permission on all
floders, i know this may be crazy, but i need to identify if it is
caused by access permission), this account also have permission on
the object folder of serverB, buy alway met this issue. if i set
impersonate=false, this page will be shown normally.

and if i put the page on my own pc (that means use my own pc to
replace the severA), ant it runs well, but when i put this page back
to server A, this issue will be shown. the difference between serverA
and my own PC is this page is saved on C:\..\wwwroot\..., but in
serverA it is in E:\....

my engilish is poor, please try to understand what i am saying and
give me some suggestion on this. i have been suffering on this
several days. :(

-----------------------------------Error
MSG-------------------------------------
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
'E:\..\..\Default.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
'E:\...\...\Default.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) +144

System.Web.Configuration.HttpConfigurationSystem.ComposeConfig(String
reqPath, IHttpMapPath configmap) +697
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) +479




--------------------------------------------------------------------------------
Version Information: Microsoft .NET Framework Version:; ASP.NET
Version:

*-----------------------*
Posted at:
www.GroupSrv.com
*-----------------------*
 
K

Karl Seguin

Jay,
Your english is very good.

I take it you have already read:
http://support.microsoft.com/default.aspx?scid=kb;en-us;Q317955

The simplest thing might be to make sure all the directories are less than 9
characters long..so simply try renaming everything and see if that works...

Karl

--
MY ASP.Net tutorials
http://www.openmymind.net/


Jay Ge said:
I searched this issue in internet, but they still cannot solve my
issue, so your help/suggestion will be preciated.

this page is placed on serverA, and it will touch files on
serverB.(but it seems this is not double hop issue.) I use
impersonation <identity impersonate="true"
userName="domain\username" password="passwd" /> and
<authentication mode="Windows"/>. the account "domain\username"
is the admin of serverA (I have grant it admin permission on all
floders, i know this may be crazy, but i need to identify if it is
caused by access permission), this account also have permission on
the object folder of serverB, buy alway met this issue. if i set
impersonate=false, this page will be shown normally.

and if i put the page on my own pc (that means use my own pc to
replace the severA), ant it runs well, but when i put this page back
to server A, this issue will be shown. the difference between serverA
and my own PC is this page is saved on C:\..\wwwroot\..., but in
serverA it is in E:\....

my engilish is poor, please try to understand what i am saying and
give me some suggestion on this. i have been suffering on this
several days. :(

-----------------------------------Error
MSG-------------------------------------
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
'E:\..\..\Default.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
'E:\...\...\Default.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(Hashta
ble
cachedeps, DateTime utcStart) +144

System.Web.Configuration.HttpConfigurationSystem.ComposeConfig(String
reqPath, IHttpMapPath configmap) +697
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) +479




-------------------------------------------------------------------------- ------
Version Information: Microsoft .NET Framework Version:; ASP.NET
Version:

*-----------------------*
Posted at:
www.GroupSrv.com
*-----------------------*
 
K

Kevin Spencer

i have tried this several days ago, not work.

I guess it's time to try work.

;-)

--
Kevin Spencer
..Net Developer
Microsoft MVP
Neither a follower
nor a lender be.
 
J

Jay Ge

it also doesn't work this time!

about such issues, what is the popular reason? maybe case by base?

*-----------------------*
Posted at:
www.GroupSrv.com
*-----------------------*
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,755
Messages
2,569,536
Members
45,009
Latest member
GidgetGamb

Latest Threads

Top