---
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 <span class="nodinite-product-name" title="The node that unites different systems. Or as we call it Nodinite">Nodinite</span>, 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 <span class="nodinite-product-name" title="The node that unites different systems. Or as we call it Nodinite">Nodinite</span> installations  
✅ Avoid downtime and configuration headaches  

> This problem typically occurs when <span class="nodinite-product-name" title="The node that unites different systems. Or as we call it Nodinite">Nodinite</span> 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 <span class="nodinite-product-name" title="The node that unites different systems. Or as we call it Nodinite">Nodinite</span> 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.

## <i class="fal fa-hand-point-right" aria-hidden="true"></i> Next Steps

* <i class="fal fa-clipboard-check" aria-hidden="true"></i> [Log API Prerequisites][Prerequisites]  
* <i class="fal fa-users-cog" aria-hidden="true"></i> [IIS_IUSRS Group Membership][IISAuthIISIUSRS]  
* <i class="fal fa-map" aria-hidden="true"></i> [Planning your Nodinite Installation][]  

## <i class="fal fa-link-horizontal" aria-hidden="true"></i> Related Topics

* <i class="fal fa-arrow-turn-up" aria-hidden="true"></i> [Install and Update Overview][InstallUpdate]  
* <i class="fal fa-wrench" aria-hidden="true"></i> [Troubleshooting Overview][Troubleshooting Overview]  
* <i class="fab fa-windows" aria-hidden="true"></i> [Windows Server Troubleshooting Overview][Windows-Overview]  
* <i class="fal fa-server" aria-hidden="true"></i> [IIS Authentication settings][]  
* <i class="fal fa-cloud-sun" aria-hidden="true"></i> [Web API Prerequisites][]  
* <i class="fal fa-globe" aria-hidden="true"></i> [Web Client Prerequisites][]  

[gMSA]:https://docs.nodinite.com/install-and-update/troubleshooting/windows/gmsa-accounts/
[IIS Authentication settings]:https://docs.nodinite.com/install-and-update/troubleshooting/iis/iis-authentication-settings/
[IISAuthIISIUSRS]:https://docs.nodinite.com/install-and-update/troubleshooting/iis/iis-authentication-settings/#fa-users-cog-iis_iusrs-group-membership
[InstallUpdate]:https://docs.nodinite.com/install-and-update/overview/
[Log API]:https://docs.nodinite.com/core-services/log-api/overview/
[Nodinite Portal]:https://portal.nodinite.com/
[Planning your Nodinite Installation]:https://docs.nodinite.com/install-and-update/getting-started/planning-your-nodinite-solution/
[Portal Core Platform Services]:https://docs.nodinite.com/install-and-update/getting-started/version-7/install-nodinite-v7-steps/04-servers/#core-platform-services
[Prerequisites]:https://docs.nodinite.com/core-services/log-api/getting-started/prerequisites/#what-windows-rights-does-the-log-api-require
[Troubleshooting Overview]:https://docs.nodinite.com/install-and-update/troubleshooting/overview/
[Web API]:https://docs.nodinite.com/core-services/web-api/overview/
[Web API Prerequisites]:https://docs.nodinite.com/core-services/web-api/getting-started/prerequisites/#what-windows-rights-does-the-web-api-require
[Web Client]:https://docs.nodinite.com/core-services/web-client/overview/
[Web Client Prerequisites]:https://docs.nodinite.com/core-services/web-client/getting-started/prerequisites/
[Windows-Overview]:https://docs.nodinite.com/install-and-update/troubleshooting/windows/overview/