Sitefinity 4.0 SecurityConfig.config access denied
This is our first Sitefinity site deployment. Our web server is Windows 2003 Service Pack 2. We have added the NETWORK SERVICE account to entire application with read/write; we have added the ASPNET machine account to entire application; the web site is configured for Anonymous Access and our Everyone account has read/write to all folders on the site. We still have this problem on our application. Any ideas? Also, .NET 4.0 is installed on the server.
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
Exception Details: System.UnauthorizedAccessException: Access to the path 'E:\CentraSpecialtyHospital\App_Data\Sitefinity\Configuration\SecurityConfig.config' is denied.
ASP.NET is not authorized to access the requested resource. Consider granting access rights to the resource to the ASP.NET request identity. ASP.NET has a base process identity (typically MACHINE\ASPNET on IIS 5 or Network Service on IIS 6 and IIS 7, and the configured application pool identity on IIS 7.5) that is used if the application is not impersonating. If the application is impersonating via <identity impersonate="true"/>, the identity will be the anonymous user (typically IUSR_MACHINENAME) or the authenticated request user.
To grant ASP.NET access to a file, right-click the file in Explorer, choose "Properties" and select the Security tab. Click "Add" to add the appropriate user or group. Highlight the ASP.NET account, and check the boxes for the desired access.
Source Error:
An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below. |
|
Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.0.30319.1
Hi Brenda,
The account that runs you application pool is not granted with read/write permissions over the App_Data. You are getting a general ASP.NET permissions error ( which also says that the account you use does not have needed permissions).
Best wishes,
Ivan Dimitrov
the Telerik team
Our AppPool Account does have permission. I attached screen shots of the AppPool account and the permission it has at different locations. The web site is completely open at this time. All accounts have Read & Execute, List, and Read permission. What additional information can I send to you that will help trouble shoot this issue? Please advise.
Hi Brenda,
As Ivan mentioned you need to give the account read and WRITE permissions to the app_data folder, as per your screenshots and comments the account doesn't have the required "write" permissions it needs. Break the inheritance on the app_data folder and then allow the account to also write and you should be good to go.
Cheers,
Phill
thanks - fixed that and it now works. Completely missed the write - was focusing on read/execute. Just an oversight. Thanks again.