Answered by:
Access denied - web.config

Question
-
Following error is thrown while navigating to sharepoint site (it was working earlier)
Server Error in '/' Application.
Description: HTTP 404. The resource you are looking for (or one of its dependencies) could have been removed, had its name changed, or is temporarily unavailable. Please review the following URL and make sure that it is spelled correctly.
Requested URL: /xxx/default.aspx
Version Information: Microsoft .NET Framework Version:2.0.50727.1433; ASP.NET Version:2.0.50727.1433
event trace shows following
Event code: 3008
Event message: A configuration error has occurred.
Event time: 22/04/2011 10:47:31 AM
Event time (UTC): 22/04/2011 12:47:31 AM
Event ID: 2f40e081d3d84151885f2283e0d7d831
Event sequence: 509
Event occurrence: 253
Event detail code: 0
Application information:
Application domain: /LM/W3SVC/1566616884/Root-8-129479064295870498
Trust level: WSS_Minimal
Application Virtual Path: /
Application Path: d:\Inetpub\Wwwroot\wss\VirtualDirectories\5000\
Machine name: xxxxxxxxxx
Process information:
Process ID: 5604
Process name: w3wp.exe
Account name: xxxxxxxxxxx
Exception information:
Exception type: ConfigurationErrorsException
Exception message: An error occurred loading a configuration file: Access to the path 'd:\Inetpub\Wwwroot\wss\VirtualDirectories\5000\web.config' is denied. (d:\Inetpub\Wwwroot\wss\VirtualDirectories\5000\web.config)
Request information:
Request URL: http://xxxxxxxxx
Request path: /
User host address: xxxxxxxxxxxx
User:
Is authenticated: False
Authentication Type:
Thread account name: xxxxxxxxxx
Thread information:
Thread ID: 7
Thread account name: xxxxxxxxx
Is impersonating: True
Stack trace: at System.Web.Security.Membership.Initialize()
at System.Web.Security.Membership.get_Provider()
at Microsoft.SharePoint.ApplicationRuntime.SPHttpHandler.OverrideExecuteUrlPath()
at System.Web.DefaultHttpHandler.BeginProcessRequest(HttpContext context, AsyncCallback callback, Object state)
at System.Web.HttpApplication.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute()
at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously)
We have crosschecked permissions for web.config and all seems to be fine
Appreciate help.
The resource cannot be found.
Friday, April 22, 2011 1:54 AM
Answers
-
Resolved by modifying folder permssion and iisreset
- Marked as answer by rush1956 Friday, April 22, 2011 8:19 AM
Friday, April 22, 2011 8:19 AM
All replies
-
There are many reasons why this might have occurred. Lets start here. Take a look at this article.
http://support.microsoft.com/kb/944267
Let us know if the above solves your problem
Thanks
V
VFriday, April 22, 2011 4:15 AM -
Hi,After adjusting permissions on web.config,now error recorded isEvent code: 3006Event message: A parser error has occurred.Event time: 22/04/2011 11:57:50 AMEvent time (UTC): 22/04/2011 1:57:50 AMEvent ID: d2380a7c1fd740b79c92005d3d60c768Event sequence: 7Event occurrence: 1Event detail code: 0Application information:Application domain: /LM/W3SVC/1566616884/Root-7-129479110679335306Trust level: FullApplication Virtual Path: /Application Path: d:\Inetpub\Wwwroot\wss\VirtualDirectories\5000\Machine name: *******Process information:Process ID: 5220Process name: w3wp.exeAccount name: *******Exception information:Exception type: HttpExceptionException message: Could not load file or assembly 'Microsoft.SharePoint' or one of its dependencies. The system cannot find the file specified.Request information:Request URL: **********Request path: /User host address:**************User:Is authenticated: FalseAuthentication Type:Thread account name: *****************Thread information:Thread ID: 24Thread account name: ***************Is impersonating: FalseStack trace: at System.Web.Compilation.BuildManager.ReportTopLevelCompilationException()at System.Web.Compilation.BuildManager.EnsureTopLevelFilesCompiled()at System.Web.Hosting.HostingEnvironment.Initialize(ApplicationManager appManager, IApplicationHost appHost, IConfigMapPathFactory configMapPathFactory, HostingEnvironmentParameters hostingParameters)Friday, April 22, 2011 4:28 AM
-
Resolved by modifying folder permssion and iisreset
- Marked as answer by rush1956 Friday, April 22, 2011 8:19 AM
Friday, April 22, 2011 8:19 AM