---
title: "Fix 'Cannot Read Configuration File Due to Insufficient Permissions' in Nodinite"
description: "Resolve 'Cannot read configuration file due to insufficient permissions' in Nodinite. Grant the IIS application pool identity read access to redirection.config in the inetsrv config folder."
---

# Cannot read configuration file due to insufficient permissions

If a :Nodinite: [Core Service][Core Services] web site returns "Cannot read configuration file due to insufficient permissions", its [IIS][IISAuthIISIUSRS] application pool identity can't read the IIS configuration files on the server. This guide explains why and how to fix it.  

✅ Step-by-step solution for IIS application pool permission issues  
✅ Works for every Core Service web site, with the [Log API][] as the typical example  
✅ Keeps the service identity least-privileged  

## :fa-circle-info: Why This Happens

On Windows Server, every :Nodinite: Core Service runs as its own IIS web site under the service identity you set in the Portal ([Auth step][Step 2 Service Account Defaults] and [Servers step][Step 4 Core platform services]). Some services read IIS settings at runtime, for example to report their own application pool identity, and that read goes through `redirection.config` in `%windir%\system32\inetsrv\config`. When the identity isn't a [local administrator][Local Administrator] and isn't in the **IIS_IUSRS** group, Windows denies the read.

>[!NOTE]
>This error only occurs on Windows Server installations hosted in IIS. Container hosting doesn't use the IIS configuration files.

## The Problem

The [Log API][] error page looks like this example (the path in the first line depends on the version and the web site):

```text
Server Error in '/ENVIRONMENTNAME/LogAPI' Application.
Filename: redirection.config
Error: Cannot read configuration file due to insufficient permissions
Exception Details: System.UnauthorizedAccessException: Filename: redirection.config
Error: Cannot read configuration file due to insufficient permissions

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.ServerManager.ApplicationPoolsSectionCreator() +74
   Nodinite.LogApiHost.Controllers.InformationController.GetAppPoolIdentity(String applicationPoolName) +86
```

## The Solution

The application pool identity does **not** have **Read** rights on `%windir%\system32\inetsrv\config`. Use one of these fixes, then recycle the application pool of the affected web site (for example the [Log API][]):

1. Add the service identity to the local **IIS_IUSRS** group and give that group **Read** rights on the folder that holds `redirection.config`; see [IIS_IUSRS group membership][IISAuthIISIUSRS]. This is the recommended fix.
2. Or grant the service identity itself **Read** rights on `%windir%\system32\inetsrv\config`.

For a [gMSA][gMSA accounts] identity, include the trailing `<tags data-value="Nodinite,IIS,Application Pool,permissions,redirection.config,IIS_IUSRS,Log API,Troubleshooting"></tags>
<keywords data-value="Nodinite,IIS,Application Pool,permissions,redirection.config,IIS_IUSRS,Log API,service account,Troubleshooting"></keywords>
<description data-value="Resolve 'Cannot read configuration file due to insufficient permissions' in Nodinite. Grant the IIS application pool identity read access to redirection.config in the inetsrv config folder."></description>
<title data-value="Fix 'Cannot Read Configuration File Due to Insufficient Permissions' in Nodinite"></title>

# Cannot read configuration file due to insufficient permissions

If a :Nodinite: [Core Service][Core Services] web site returns "Cannot read configuration file due to insufficient permissions", its IIS application pool identity can't read the IIS configuration files on the server. This guide explains why and how to fix it.  

✅ Step-by-step solution for IIS application pool permission issues  
✅ Works for every Core Service web site, with the [Log API][] as the typical example  
✅ Keeps the service identity least-privileged  

## :fa-circle-info: Why This Happens

On Windows Server, every :Nodinite: Core Service runs as its own IIS web site under the service identity you set in the Portal ([Auth step][Step 2 Service Account Defaults] and [Servers step][Step 4 Core platform services]). Some services read IIS settings at runtime, for example to report their own application pool identity, and that read goes through `redirection.config` in `%windir%\system32\inetsrv\config`. When the identity isn't a [local administrator][Local Administrator] and isn't in the **IIS_IUSRS** group, Windows denies the read.

>[!NOTE]
>This error only occurs on Windows Server installations hosted in IIS. Container hosting doesn't use the IIS configuration files.

## The Problem

The [Log API][] error page looks like this example (the path in the first line depends on the version and the web site):

```text
Server Error in '/ENVIRONMENTNAME/LogAPI' Application.
Filename: redirection.config
Error: Cannot read configuration file due to insufficient permissions
Exception Details: System.UnauthorizedAccessException: Filename: redirection.config
Error: Cannot read configuration file due to insufficient permissions

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.ServerManager.ApplicationPoolsSectionCreator() +74
   Nodinite.LogApiHost.Controllers.InformationController.GetAppPoolIdentity(String applicationPoolName) +86
```

## The Solution

The application pool identity does **not** have **Read** rights on `%windir%\system32\inetsrv\config`. Use one of these fixes, then recycle the application pool of the affected web site (for example the [Log API][]):

1. Add the service identity to the local **IIS_IUSRS** group and give that group **Read** rights on the folder that holds `redirection.config`; see [IIS_IUSRS group membership][IISAuthIISIUSRS]. This is the recommended fix.
2. Or grant the service identity itself **Read** rights on `%windir%\system32\inetsrv\config`.

 in the account name when you grant the rights. The [Log API prerequisites][Prerequisites], [Web API prerequisites][Web API Prerequisites], and [Web Client prerequisites][Web Client Prerequisites] list the same Read right for their service identities.

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

* :fa-user-plus: [Logon as a Service right][]  
* :fa-square-plus: [Log API Prerequisites][Prerequisites]  
* :fa-rocket: [Install Nodinite v7][]  

## :fa-link-horizontal: Related Topics

* :fa-arrow-turn-up: [Windows Server Troubleshooting][Windows Overview]  
* :fa-lock: [IIS Authentication settings][IISAuthIISIUSRS]  
* :fa-map: [Planning your Nodinite Installation][]  
* :fa-wrench: [Troubleshooting Overview][InstallUpdate]  

[Core Services]:{ndr}/Core%20Services/Overview.md
[gMSA accounts]:{ndr}/Install%20and%20Update/Troubleshooting/Windows/gMSA%20accounts.md
[IISAuthIISIUSRS]:{ndr}/Install%20and%20Update/Troubleshooting/IIS/IIS%20Authentication%20settings.md#fa-users-cog-iis_iusrs-group-membership
[Install Nodinite v7]:{ndr}/Install%20and%20Update/Getting%20started/Version%207/Install%20Nodinite%20v7.md
[InstallUpdate]:{ndr}/Install%20and%20Update/Troubleshooting/Overview.md
[Local Administrator]:{ndr}/Install%20and%20Update/Troubleshooting/Windows/Logon%20as%20a%20Service%20right.md#local-administrator
[Log API]:{ndr}/Core%20Services/Log%20API/Overview.md
[Logon as a Service right]:{ndr}/Install%20and%20Update/Troubleshooting/Windows/Logon%20as%20a%20Service%20right.md
[Planning your Nodinite Installation]:{ndr}/Install%20and%20Update/Getting%20started/1.%20Planning%20your%20Nodinite%20Solution.md
[Prerequisites]:{ndr}/Core%20Services/Log%20API/Getting%20started/1.%20Prerequisites.md
[Step 2 Service Account Defaults]:{ndr}/Install%20and%20Update/Getting%20started/Version%207/Install%20Nodinite%20v7%20Steps/02%20-%20Auth.md#service-account-defaults
[Step 4 Core platform services]:{ndr}/Install%20and%20Update/Getting%20started/Version%207/Install%20Nodinite%20v7%20Steps/04%20-%20Servers.md#core-platform-services
[Web API Prerequisites]:{ndr}/Core%20Services/Web%20API/Getting%20started/1.%20Prerequisites.md
[Web Client Prerequisites]:{ndr}/Core%20Services/Web%20Client/Getting%20started/1.%20Prerequisites.md
[Windows Overview]:{ndr}/Install%20and%20Update/Troubleshooting/Windows/Overview.md