+1-888-365-2779
Try Now
More in this section

Forums / Bugs & Issues / "Access to the path '...ToolboxesConfig.config' is denied", after migrating to sitefinity 4.3

"Access to the path '...ToolboxesConfig.config' is denied", after migrating to sitefinity 4.3

9 posts, 0 answered
  1. Gerardo
    Gerardo avatar
    2 posts
    Registered:
    04 Mar 2011
    07 Nov 2011
    Link to this post
    I have updated our site from Sitefinity 4.0 to 4.3 and now I am receiving the following exception when I try to open the site:

    Server Error in '/Some' Application.


    Access to the path '(...)\App_Data\Sitefinity\Configuration\ToolboxesConfig.config' is denied.


    Exception Details: System.UnauthorizedAccessException: Access to the path '(...)\App_Data\Sitefinity\Configuration\ToolboxesConfig.config' is denied. 

    Stack Trace: 

    [UnauthorizedAccessException: Access to the path '... \App_Data\Sitefinity\Configuration\ToolboxesConfig.config' is denied.]
       Telerik.Sitefinity.Configuration.Data.XmlConfigProvider.SaveXmlToFile(XmlDocument xml, String filePath) +254
       Telerik.Sitefinity.Configuration.Data.XmlConfigProvider.SaveElement(ConfigElement config, Func`2 getXmlElement) +319
       Telerik.Sitefinity.Configuration.Data.XmlConfigProvider.SaveSection(ConfigSection section) +213
       Telerik.Sitefinity.Configuration.ConfigManager.SaveSection(ConfigSection section) +38
       Telerik.Sitefinity.Services.InstallContext.SaveChanges(Boolean clean) +231
       Telerik.Sitefinity.Modules.Ecommerce.Catalog.CatalogModule.Initialize(ModuleSettings settings) +438
       Telerik.Sitefinity.Services.SystemManager.InitializeModule(ModuleSettings settings, InstallContext installContext, Boolean start) +573
       Telerik.Sitefinity.Services.SystemManager.Initialize() +1231
       Telerik.Sitefinity.Abstractions.Bootstrapper.RegisterRoutes(RouteCollection routes) +293
       Telerik.Sitefinity.Abstractions.Bootstrapper.Bootstrap() +386
       Telerik.Sitefinity.Web.SitefinityHttpModule.Init(HttpApplication context) +114
       System.Web.HttpApplication.RegisterEventSubscriptionsWithIIS(IntPtr appContext, HttpContext context, MethodInfo[] handlers) +546
       System.Web.HttpApplication.InitSpecial(HttpApplicationState state, MethodInfo[] handlers, IntPtr appContext, HttpContext context) +325
       System.Web.HttpApplicationFactory.GetSpecialApplicationInstance(IntPtr appContext, HttpContext context) +407
       System.Web.Hosting.PipelineRuntime.InitializeApplication(IntPtr appContext) +375

    [HttpException (0x80004005): Access to the path '. . . . \App_Data\Sitefinity\Configuration\ToolboxesConfig.config' is denied.]
       System.Web.HttpRuntime.FirstRequestInit(HttpContext context) +11529072
       System.Web.HttpRuntime.EnsureFirstRequestInit(HttpContext context) +141
       System.Web.HttpRuntime.ProcessRequestNotificationPrivate(IIS7WorkerRequest wr, HttpContext context) +4784373
    ----------
    As a developer, I use a source code control solution (TFS). When I check out the Toolboxes.config, I can browse and use the site normally.
    But if I don't, Sitefinity won't start, because the config file is read-only.

    As a workaround, we removed the e-commerce module from SystemConfig.config. Unfortunatelly, that broke the Backend page administration. To fix that, we removed all the e-commerce pages from the backend BEFORE removing the module.
    It was painfull and a waste of time. Is there any other solution available? We may want to use the e-commerce module in the future...

    Thanks in advance
    Gerardo.-

  2. Victor Velev
    Victor Velev avatar
    1345 posts
    Registered:
    06 Jul 2015
    08 Nov 2011
    Link to this post
    Hello Gerardo,

    We have answered you in the support ticket you opened. Can we keep our communication at one place so the information flow is better structured.

    Best wishes,
    Victor Velev
    the Telerik team
    Do you want to have your say in the Sitefinity development roadmap? Do you want to know when a feature you requested is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
  3. RobertZ121
    RobertZ121 avatar
    64 posts
    Registered:
    14 Aug 2006
    14 Nov 2011
    Link to this post
    Hi Victor,

    I think that you don't like to talk about SF 4.3 bugs. I have same problems like Gerardo as you can see at my attachment and need a solution asap.

    Regards Robert
  4. Ivan Dimitrov
    Ivan Dimitrov avatar
    16072 posts
    Registered:
    25 Nov 2016
    14 Nov 2011
    Link to this post
    Hi,

    The error says that ASP.NET worker process does not have read/write permissions over App_Data and configuration files. Please grant the asp.net user account (or network service) with read/write permissions. You can do this from windows explorer if you have direct access to the server.

    Greetings,
    Ivan Dimitrov
    the Telerik team
    Do you want to have your say in the Sitefinity development roadmap? Do you want to know when a feature you requested is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
  5. Mike
    Mike avatar
    1 posts
    Registered:
    20 Sep 2010
    14 Nov 2011
    Link to this post
    I got the same problem. In order to fix it, you just need to make sure that all your.config files are NOT readonly and application user has read/write permissions to \Sitefinity\Configuration folder.
  6. Dawid
    Dawid avatar
    15 posts
    Registered:
    30 Jan 2012
    06 Feb 2012
    Link to this post
    Take a look at your source code management.  If you're using for example TFS, you have to have the file checked out.  Not sure why, as the file contents doesn't change.  

    It's a bit annoying to have to have random files checked out manually while developing, but that's life.
  7. omhoge
    omhoge avatar
    5 posts
    Registered:
    12 Jan 2007
    15 Jul
    Link to this post

    and it still happens in v. 9!  but they won't post the fixes publically for us to find.

    Even if you give Network_Service full control, propagate to all children

    and make all files in the project folder writeable.

    You'll still get Access to the path 'D:\...\...\..._2016_dev\App_Data\Sitefinity\Configuration\SearchConfig.config' is denied.

    I'm stuck on the initial deploy of a new project

     

  8. omhoge
    omhoge avatar
    5 posts
    Registered:
    12 Jan 2007
    15 Jul
    Link to this post

    The only way to get an SF running on a windows server is to also add to the Project folder security and all children:

    EVERYONE and ISUR and grant them FULL control. 

    With such a non-secure requirement, no wonder they don't publish it publicly.  Hope this helps the next person.

  9. Victor Leontyev
    Victor Leontyev avatar
    65 posts
    Registered:
    01 Jul 2014
    17 Jul in reply to omhoge
    Link to this post
    Instead of giving full control permission for EVERYONE, it is better and safer to give FULL control permission only for user IIS AppPool\<yourpoolname> only for your website folder
9 posts, 0 answered