473,220 Members | 2,267 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,220 software developers and data experts.

Failed to Start Monitoring Directory Changes

I am experiencing the the problem outlined the below. Unfortunately, I am using WinXP and I not sure if I can apply the solution due to lack of security control

Any feed back would be apreciated

http://support.microsoft.com/default...kb;EN-US;31795
FIX: "Failed to Start Monitoring Directory Changes" Error Message When You Browse to an ASP.NET Pag
View products that this article applies to
This article was previously published under Q317955
SYMPTOM
When you browse to an ASP.NET (.aspx) page, you may receive one of the following error messages:

Access denied to 'D:\MyWeb\Users\MainDirectory\MyApplication\' directory. Failed to start monitoring directory changes.
-or-
Access denied to 'D:\MyWeb\Users\MainDirectory\MyApplication\Sample Page.aspx'. Failed to start monitoring file changes.
For more information about the call stack traces that are associated with each of these error messages, see the "More Information" section.
CAUS
To detect file changes, the process identity and the impersonated user identity must have specific permissions to all of the directories in the hierarchy of the file path for the file that ASP.NET is monitoring if any of the directories in that hierarchy have more than eight characters in their names

Some examples of the files that ASP.NET monitors are as follows:
Web.config file
Machine.config file
Files in the Bin directory of an ASP.NET applicatio
Cache dependency file
You receive the first error message if the Aspnet_wp.exe process identity (the ASPNET account by default) does not have permissions on at least one of the directories in the hierarchy of that file path

You receive the second error message if the impersonated account does not have permissions on at least one of the directories in the hierarchy of that file path.
RESOLUTIO
Use either of the following methods to resolve this problem.
Method
Make sure that all of the directory names in the hierarchy of that file path are less than nine characters long

For example:
C:\Web\Users\MainDir\Site1

Method
Grant the required permissions on all of the directories in that hierarchy to the ASP.NET process account (ASPNET by default) or to the impersonated account (if impersonation is turned on). To do this, follow these steps:
In Windows Explorer, browse to the application folder or to the virtual directory that contains the content (for example, D:\MyWeb\Users\MainDirectory\MyApplication)
Right-click the folder, and then click Properties
On the Security tab, click Add
Type ComputerName\ASPNET (for example, on a computer that is named Webdev, type Webdev\ASPNET), and then click OK. If impersonation is turned on, you must also add the impersonated accounts
Allow the following permissions for the ASPNET account (and for the impersonated accounts if impersonation is turned on)
Read & Execut
List Folder Content
Rea

Click OK to close the Properties dialog box and to save the changes
Repeat steps 2 through 6 for all of the folders in the hierarchy of the path. For example

D:\MyWeb\Users\MainDirector
D:\MyWeb\User
D:\MyWe
D
If you want to grant more restrictive permissions to these folders, follow these steps after you complete step 5

Click Advanced
On the Permissions tab, click the permission entry for the ASPNET account (or another impersonated account), and then click Edit
Click Clear All, and then click to select the Allow check box for the List Folder / Read Data permission
NOTE: The application virtual directory (for example, D:\MyWeb\Users\MainDirectory\MyApplication) must have at least the permissions that are specified in step 5
STATU
Microsoft has confirmed that this is a bug in the Microsoft products that are listed at the beginning of this article. This bug was corrected in ASP.NET (included with the .NET Framework) 1.1.
MORE INFORMATIO
This is the call stack trace that is associated with the first error message in the "Symptoms" section:

[HttpException (0x80004005): Access denied to 'D:\MyWeb\Users\MainDirectory\MyApplication\' directory. Failed to start monitoring directory changes.
System.Web.FileChangesMonitor.StartMonitoringDirec toryRenamesAndBinDirectory(String dir, FileChangeEventHandler callback)
System.Web.HttpRuntime.StartMonitoringDirectoryRen amesAndBinDirectory()
System.Web.HttpRuntime.FirstRequestInit(HttpContex t context)

[HttpException (0x80004005): ASP.NET Initialization Error]
System.Web.HttpRuntime.FirstRequestInit(HttpContex t context)
System.Web.HttpRuntime.ProcessRequestInternal(Http WorkerRequest wr)
This is the call stack trace that is associated with the second error message in the "Symptoms" section:

[HttpException (0x80004005): Access denied to 'D:\MyWeb\Users\MainDirectory\MyApplication\Sample Page.aspx'. Failed to start monitoring file changes.]
System.Web.FileChangesMonitor.StartMonitoringFile( String fileName, FileChangeEventHandler callback)
System.Web.Caching.CacheDependency.Init(String[] filenames, String[] cachekeys, CacheDependency dependency, DateTime start)
System.Web.Caching.CacheDependency..ctor(String filename, DateTime start)
System.Web.Caching.CacheDependency..ctor(String filename)
System.Web.Security.FileAuthorizationModule.OnEnte r(Object source, EventArgs eventArgs)
System.Web.SyncEventExecutionStep.Execute()
System.Web.HttpApplication.ExecuteStep(IExecutionS tep step, Boolean& completedSynchronously)
If you receive one the error messages that are listed in the "Symptoms" section, but if the call stack trace is not the same, the cause of your error message may be different. In this case, see the articles in the "References" for more information.

Nov 18 '05 #1
0 2047

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Edward Yang | last post by:
I setup web.config with impersonation="true". On our local server the project works great. I did the same procedures on our staging server, but it failed with an impossible error: Server Error in...
7
by: Mark | last post by:
Hello, I have researched and tried every thing I have found on the web, in groups and MS KB articles. Here is what I have. I have a Windows 2000 Domain Controller all service packs and...
4
by: kimpton | last post by:
Hi, My App running on my local machine is trying to access apsx and ascx pages via a virtual directory (see earlier post) that points to a share on a different machine. I can now access .aspx...
2
by: Greg Allen | last post by:
I know this has been discussed before, and have found some documentation about it on the web. But nothing has fixed my problem. I am running the 1.1 .NET framework, SP1. I have a web...
9
by: Tim D | last post by:
Hi, I originally posted this as a reply to a rather old thread in dotnet.framework.general and didn't get any response. I thought it might be more relevant here; anyone got any ideas? My...
0
by: AC [MVP MCMS] | last post by:
I have a web application that is throwing a common error, but in a very unusual state. I'm specifically receiving the following error: "Failed to start monitoring changes to 'd:\inetpub\wwwroot'."...
1
by: rachana | last post by:
Hello, I have got one asp.net application which works fine on my local machine. When moved on the server, I get error, Server Error in '/MyApplication' Application....
0
by: etropic | last post by:
Other comments say that this is the ASP.NET account not having rights. I have added the EVERYONE group to FULL CONTROL on ALL LEVELS of the noted web site directory structure... What is odd to...
0
by: =?Utf-8?B?UmFmYWVsIEFtb3JpbQ==?= | last post by:
Hello Guys, I have an application that is installed on three different data centers across the world (exactly the same environment and installed files for each one). I got some errors from...
0
by: veera ravala | last post by:
ServiceNow is a powerful cloud-based platform that offers a wide range of services to help organizations manage their workflows, operations, and IT services more efficiently. At its core, ServiceNow...
0
by: VivesProcSPL | last post by:
Obviously, one of the original purposes of SQL is to make data query processing easy. The language uses many English-like terms and syntax in an effort to make it easy to learn, particularly for...
3
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 3 Jan 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). For other local times, please check World Time Buddy In...
0
by: mar23 | last post by:
Here's the situation. I have a form called frmDiceInventory with subform called subfrmDice. The subform's control source is linked to a query called qryDiceInventory. I've been trying to pick up the...
0
by: abbasky | last post by:
### Vandf component communication method one: data sharing ​ Vandf components can achieve data exchange through data sharing, state sharing, events, and other methods. Vandf's data exchange method...
2
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 7 Feb 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:30 (7.30PM). In this month's session, the creator of the excellent VBE...
0
by: fareedcanada | last post by:
Hello I am trying to split number on their count. suppose i have 121314151617 (12cnt) then number should be split like 12,13,14,15,16,17 and if 11314151617 (11cnt) then should be split like...
0
Git
by: egorbl4 | last post by:
Скачал я git, хотел начать настройку, а там вылезло вот это Что это? Что мне с этим делать? ...
0
by: MeoLessi9 | last post by:
I have VirtualBox installed on Windows 11 and now I would like to install Kali on a virtual machine. However, on the official website, I see two options: "Installer images" and "Virtual machines"....

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.