This is a migrated thread and some comments may be shown as answers.

Configuration Error

1 Answer 74 Views
Getting started with ASP.NET
This is a migrated thread and some comments may be shown as answers.
msofian
Top achievements
Rank 1
msofian asked on 19 Sep 2007, 07:09 AM
hi
I get this error message in localhost :

Server Error in '/thebdg' 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: Access to the path 'c:\inetpub\wwwroot\web.config' is denied.

Source Error:

[No relevant source lines]

Source File: c:\inetpub\wwwroot\web.config    Line: 0


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



How can I fix this problem and make the web site run ?

1 Answer, 1 is accepted

Sort by
0
Poul Henningsen
Top achievements
Rank 1
answered on 19 Sep 2007, 07:31 AM
It sounds like the DACL on web.config doesn't allow read access to the local Network Service account. Try to give read permission to the network service and things should be fine.

Poul
Tags
Getting started with ASP.NET
Asked by
msofian
Top achievements
Rank 1
Answers by
Poul Henningsen
Top achievements
Rank 1
Share this question
or