|
|
How to resolve Parser Error Message: An error occurred loading a configuration file in ASP.NET
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.
Similar entries
- Configuration error- authentication mode = "Windows" in web.config of ASP.NET
- How to set Custom error pages in asp.net using web.config
- configuration file for asp.net web application web.config
- 500 - Internal server error generic error message in ASP pages
- How to resolve SQLException SELECT permission denied in ASP.net page
- solution to Access to the path is denied asp.net
- javascript error Sys is undefined
- System error 67 has occurred. The network name cannot be found
- How to resolve "Failed to generate a user instance of SQL Server due to failure in
- SQL Server does not allow remote connections Error 26
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