Satish Vemula
Sign in
|
Join
|
Help
in
Satish Vemula
Clarity Employees
(Entire Site)
Home
Contact
RSS
Atom
Comments RSS
Recent Posts
Vista problems on MacBook Pro
Role of DockStyle property when adding controls
Sending Http Authentication Request from a Windows Form
Suppressing Script Errors in a WebBrowser
ASP .NET Datagrid with scrollbars and fixed headers
Tags
ASP.NET
Non-Microsoft Products
Server Products
Windows Forms
Navigation
Home
Archives
June 2007 (1)
November 2006 (2)
October 2006 (1)
February 2006 (7)
Failure to start monitoring changes / Unable to start debugging on the web server
Access denied to 'c:\inetpub\wwwroot\MyApp\'. 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\wwwrootMyApp\'. 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\MyApp\'. 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) +983 System.Web.HttpRuntime.ProcessRequestInternal(HttpWorkerRequest wr) +128
Version Information:
.NET Framework Version:1.1.4322.2032; ASP.NET Version:1.1.4322.2032
Have you run across any of these issues when trying to run an asp application?
Chances are pretty high that this is because you have not given privileges to the ASPNET user on the virtual directory. ASPNET user account is the account used for running the ASP.NET worker process (aspnet_wp.exe)
Here are certain steps to resolve this problem:
Check who is running the aspnet_wp.exe by looking at the processes in Task Manager. It is ASPNET by default. Lets verify if this user has been given permissions to access C:\Inetpub\wwwroot\MyApp
In Windows Explorer, right click on this directory, click Properties.
Select Security Tab and if the ASPNET user does not exists, click on Add and add the user.
Leave the default permission and click OK to save these changes.
If the problem persists, repeat these steps for each folder in the hierarchy of the path.
Run your ASP .Net app
lication now and it should work.
You can get detailed step-by-step information at the following link:
http://support.microsoft.com/default.aspx?scid=kb;en-us;Q317955
If this still doesn't help, try these:
Verify that the debug property is set to true in the web.config file.
Give full read-write permissions to the respective folders
Verify that IIS server was installed prior to ASP .NET.
Run aspnet_regiis.exe -i and reinstall the relevant ASP .NET version.
Good Luck!
Posted:
Feb 19 2006, 11:00 PM
by
svemula
| with
1 comment(s)
Filed under:
ASP.NET
,
ASP.NET
Comments
Yashoda said:
Thanks a lot..i was facing a similar kind of problem and it worked:)
#
September 26, 2007 11:38 AM
Leave a Comment
Title
(required)
Name
(required)
Your URL
(optional
)
Comments
(required)
Remember Me?