---
title: "Fix 'Cannot Read Configuration File Due to Insufficient Permissions' in Nodinite"
description: "Resolve 'Cannot read configuration file due to insufficient permissions' errors in Nodinite. Grant the IIS App Pool service account Read rights on the folder holding redirection.config, or add it to IIS_IUSRS."
---

# Cannot read configuration file due to insufficient permissions

If you encounter the error "Cannot read configuration file due to insufficient permissions" when using :Nodinite:, this guide will help you quickly resolve it and restore your services.  

✅ Step-by-step solution for resolving IIS App Pool permission issues  
✅ Ensure secure and reliable :Nodinite: installations  
✅ Avoid downtime and configuration headaches  

> This problem typically occurs when :Nodinite: performs extended checks and the IIS App Pool account lacks access to required system files on Windows Server.

## Understanding the Cause

On Windows Server, the [Web Client][], [Web API][], and [Log API][] each run as their own [IIS][IISAuthIISIUSRS] web site, in an application pool that runs as the service account you choose in the [Nodinite Portal][] ([Step 4: Servers › Core platform services][Portal Core Platform Services]). The [Log API][] reads IIS configuration to find its own application pool identity, so that account needs **Read** access to the IIS configuration folder `%windows%\system32\inetsrv\config`, where `redirection.config` lives. The [Log API prerequisites][Prerequisites] list this right; when it is missing, the error below appears.

## The problem

Starting with :Nodinite: 5.1, additional security checks require the App Pool account to have proper access rights. If not, you may see the following error for the [Log API][]:

```text
Server Error in '/ENVIRONMENTNAME/LogAPI' Application.
Filename: redirection.config
Error: Cannot read configuration file due to insufficient permissions
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: Filename: redirection.config
Error: Cannot read configuration file due to insufficient permissions

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 File 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.

Stack Trace:
[UnauthorizedAccessException: Filename: redirection.config
Error: Cannot read configuration file due to insufficient permissions]
   Microsoft.Web.Administration.Interop.IAppHostAdminManager.GetAdminSection(String bstrSectionName, String bstrPath) +0
   Microsoft.Web.Administration.Configuration.GetSectionInternal(ConfigurationSection section, String sectionPath, String locationPath) +219
   Microsoft.Web.Administration.ServerManager.ApplicationPoolsSectionCreator() +74
   Microsoft.Web.Administration.Lazy.Initialize(T& target, CreateInstanceDelegate`1 valueFactory) +21
   Microsoft.Web.Administration.ServerManager.ApplicationPoolCollectionCreator() +18
   Microsoft.Web.Administration.Lazy.Initialize(T& target, CreateInstanceDelegate`1 valueFactory) +21
   Nodinite.LogApiHost.Controllers.InformationController.GetAppPoolIdentity(String applicationPoolName) +86
```

*Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.7.3429.0*

## The solution

The IIS App Pool service account does **not** have the required **read** rights on `%windows%\system32\inetsrv\config`. Grant the account **Read** rights on this folder, then recycle the App Pool for the [Log API][].  
Alternatively, ensure the account is part of the local [IIS_IUSRS group][IISAuthIISIUSRS] and assign this group read rights on the folder containing `redirection.config`.

The [Web API][Web API Prerequisites] and [Web Client][Web Client Prerequisites] prerequisites list the same Read right for their service accounts. When you use a [gMSA][], grant the right to the gMSA account.

## :fa-hand-point-right: Next Steps

* :fa-clipboard-check: [Log API Prerequisites][Prerequisites]  
* :fa-users-cog: [IIS_IUSRS Group Membership][IISAuthIISIUSRS]  
* :fa-map: [Planning your Nodinite Installation][]  

## :fa-link-horizontal: Related Topics

* :fa-arrow-turn-up: [Install and Update Overview][InstallUpdate]  
* :fa-wrench: [Troubleshooting Overview][Troubleshooting Overview]  
* :fab fa-windows: [Windows Server Troubleshooting Overview][Windows-Overview]  
* :fa-server: [IIS Authentication settings][]  
* :fa-cloud-sun: [Web API Prerequisites][]  
* :fa-globe: [Web Client Prerequisites][]  

[gMSA]:{ndr}/Install%20and%20Update/Troubleshooting/Windows/gMSA%20accounts.md
[IIS Authentication settings]:{ndr}/Install%20and%20Update/Troubleshooting/IIS/IIS%20Authentication%20settings.md
[IISAuthIISIUSRS]:{ndr}/Install%20and%20Update/Troubleshooting/IIS/IIS%20Authentication%20settings.md#fa-users-cog-iis_iusrs-group-membership
[InstallUpdate]:{ndr}/Install%20and%20Update/Overview.md
[Log API]:{ndr}/Core%20Services/Log%20API/Overview.md
[Nodinite Portal]:https://portal.nodinite.com/
[Planning your Nodinite Installation]:{ndr}/Install%20and%20Update/Getting%20started/1.%20Planning%20your%20Nodinite%20Solution.md
[Portal Core Platform Services]:{ndr}/Install%20and%20Update/Getting%20started/Version%207/Install%20Nodinite%20v7%20Steps/04%20-%20Servers.md#core-platform-services
[Prerequisites]:{ndr}/Core%20Services/Log%20API/Getting%20started/1.%20Prerequisites.md#what-windows-rights-does-the-log-api-require
[Troubleshooting Overview]:{ndr}/Install%20and%20Update/Troubleshooting/Overview.md
[Web API]:{ndr}/Core%20Services/Web%20API/Overview.md
[Web API Prerequisites]:{ndr}/Core%20Services/Web%20API/Getting%20started/1.%20Prerequisites.md#what-windows-rights-does-the-web-api-require
[Web Client]:{ndr}/Core%20Services/Web%20Client/Overview.md
[Web Client Prerequisites]:{ndr}/Core%20Services/Web%20Client/Getting%20started/1.%20Prerequisites.md
[Windows-Overview]:{ndr}/Install%20and%20Update/Troubleshooting/Windows/Overview.md