More in this section

Forums / General Discussions / Access to the path ... Configuration/SecurityConfig.config is denied

Access to the path ... Configuration/SecurityConfig.config is denied

3 posts, 0 answered
  1. Brenda
    Brenda avatar
    7 posts
    26 Jul 2012
    22 Mar 2011
    Link to this post

    Your response was that our AppPool account does not have permission - yes it does.  I responded to the previous thread earlier but no response yet.  I have attached screen shot to show you that our AppPool account does have permission.  What else can I supply you to help get this resolved? 

    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.

    Access to the path 'E:\CentraSpecialtyHospital\App_Data\Sitefinity\Configuration\SecurityConfig.config' is denied.


    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.

    Stack Trace:

    [UnauthorizedAccessException: Access to the path 'E:\CentraSpecialtyHospital\App_Data\Sitefinity\Configuration\SecurityConfig.config' is denied.]
       System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath) +9726046
       System.IO.FileStream.Init(String path, FileMode mode, FileAccess access, Int32 rights, Boolean useRights, FileShare share, Int32 bufferSize, FileOptions options, SECURITY_ATTRIBUTES secAttrs, String msgPath, Boolean bFromProxy, Boolean useLongPath) +1142
       System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share) +83
       System.Xml.XmlWriterSettings.CreateWriter(String outputFileName) +142
       System.Xml.XmlWriter.Create(String outputFileName, XmlWriterSettings settings) +23
       Telerik.Sitefinity.Configuration.Data.XmlConfigProvider.GetConfigurationWriter(ConfigSection section) +117
       Telerik.Sitefinity.Configuration.Data.XmlConfigProvider.SaveSectionInternal(ConfigSection section) +58
       Telerik.Sitefinity.Configuration.Data.XmlConfigProvider.SaveSection(ConfigSection section) +87
       Telerik.Sitefinity.Configuration.ConfigManager.SaveSection(ConfigSection section) +25
       Telerik.Sitefinity.Security.SecurityManager..cctor() +344
    [TypeInitializationException: The type initializer for 'Telerik.Sitefinity.Security.SecurityManager' threw an exception.]
       Telerik.Sitefinity.Security.SecurityManager.GetCurrentUser() +0
       Telerik.Sitefinity.Configuration.UserPolicyHandler.GetPolicyNames(ConfigProvider configProvider, ConfigSection section) +27
       Telerik.Sitefinity.Configuration.ConfigElement.GetValueFromPolicy(ConfigPolicyHandler handler, ConfigProperty prop, Object& value) +101
       Telerik.Sitefinity.Configuration.ConfigElement.GetPolicyValue(ConfigProperty prop, Object& value) +87
       Telerik.Sitefinity.Configuration.ConfigElement.get_Item(ConfigProperty prop) +56
       Telerik.Sitefinity.Configuration.ConfigElement.get_Item(String propertyName) +68
       Telerik.Sitefinity.Localization.Configuration.ResourcesConfig.get_Providers() +17
       Telerik.Sitefinity.Localization.ResourceManager.get_ProvidersSettings() +22
       Telerik.Sitefinity.Data.ManagerBase`1.GetProvidersSettings() +10
       Telerik.Sitefinity.Data.ManagerBase`1.Initialize() +507
       Telerik.Sitefinity.Data.ManagerBase`1..ctor(String providerName, String transactionName) +24
       Telerik.Sitefinity.Localization.ResourceManager..ctor() +21
       Telerik.Sitefinity.Localization.Res..cctor() +21
    [TypeInitializationException: The type initializer for 'Telerik.Sitefinity.Localization.Res' threw an exception.]
       Telerik.Sitefinity.Localization.Res.RegisterResource() +0
       Telerik.Sitefinity.Abstractions.ObjectFactory.RegisterIoCTypes() +980
       Telerik.Sitefinity.Abstractions.Bootstrapper.Bootstrap() +83
       Telerik.Sitefinity.Web.SitefinityHttpModule.Init(HttpApplication context) +24
       System.Web.Routing.UrlRoutingModule.System.Web.IHttpModule.Init(HttpApplication application) +10
       System.Web.HttpApplication.InitModulesCommon() +80
       System.Web.HttpApplication.InitModules() +43
       System.Web.HttpApplication.InitInternal(HttpContext context, HttpApplicationState state, MethodInfo[] handlers) +828
       System.Web.HttpApplicationFactory.GetNormalApplicationInstance(HttpContext context) +304
       System.Web.HttpApplicationFactory.GetApplicationInstance(HttpContext context) +107
       System.Web.HttpRuntime.ProcessRequestInternal(HttpWorkerRequest wr) +327





    Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.0.30319.1


  2. SelAromDotNet
    SelAromDotNet avatar
    912 posts
    18 Jul 2012
    23 Mar 2011
    Link to this post
    looking at the screenshot "258130_AppPoolAccountSecurity-eDrive-App-Data-folder.jpg" it appears that the application pool has only read permissions. The App_Data folder must have Write permissions enabled for the website and application pool.

    Add write permissions for that folder to the application pool and see if that allows you to continue.

    hope this was helpful!
  3. Brenda
    Brenda avatar
    7 posts
    26 Jul 2012
    23 Mar 2011
    Link to this post
    Thank you - I overlooked the Write portion - saw it was Read/Execute, etc. and knew that the app pool account had access.  Thanks again.
3 posts, 0 answered