How to resolve Parser Error Message: An error occurred loading a configuration file in ASP.NET

1 reply [Last post]
rahul's picture
rahul
User offline. Last seen 16 weeks 2 days ago. Offline
Joined: 08/21/2009

I created a Virtual directory HMS with local path as 'C:InetpubwwwrootWebApplication2' Now when i tried to open the start page for my application it throws the following error in my HMS application

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

Configuration Error
Description: An error occurred during the processing of a configuration file required to service this request. Please review

the specific error details below and modify your configuration file appropriately.

Parser Error Message: An error occurred loading a configuration file: Failed to start monitoring changes to

'C:InetpubwwwrootWebApplication2web.config' because access is denied.

Source Error:

[No relevant source lines]

Source File: C:InetpubwwwrootWebApplication2web.config Line: 0

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

While other ASP.net applications in the same wwwroot folder of the machine are working fine.if it is because of permissions then help me in setting proper permissions for each user to make it work.


perfect_storm's picture
perfect_storm
User offline. Last seen 1 year 45 weeks ago. Offline
Joined: 08/22/2009
inherit permissions from parent folder

From the error message It seems that user does not have proper permissions to access web.config file for your web application.As you told that other web applications in your wwwroot are working fine , you try inhereting parent permissions to child objects.

to do that right click your WebApplication2 folder

Select properties

Go to Security tab

Click on advanced button

check the check box for "inherit from parent the permission entries that apply to child objects.Include these with entries explicitly defined here" and apply.

Now try to open your application's start page it should work