Click here to Skip to main content
15,884,176 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
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.3053; ASP.NET Version:2.0.50727.3053
Posted

hi,
please check the version information in web.config file

compilation debug="true" targetframework="4.0"

find above tag in u r web.config and change into your targetframework.

thanks ,
 
Share this answer
 
v2
Comments
2011999 6-Jun-12 0:56am    
I changed target Frame work 4.0
but same problem.
You need to set the framework you built your project on. Not blindly change it to 4.0 or so. If you made your project on 2.0, it's ok, leave it as is - do not change.

Based on the error, it looks like some security permission issue. Try giving Network service & ASPNET accounts read permission on the file (if missing).

Steps example:
Go to your application folder -> Properties -> Tab Security -> Add... -> In locations - local machine name, write/find "NETWORK SERVICE" -> give the account a full/(or read atleast) control access -> OK


Have a look at this article to get the correct account that would need access permission:
Who is my IIS application process identity? [^]
 
Share this answer
 
v2

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900