Version Affected: 22.02 and later
Overview
When an administrator creates a new realm in the SecureAuth Identity Platform's New Experience, the operation fails with an HTTP 500 error, sometimes after the browser stalls for a minute or more. The realm can be left partly created: it may appear in the Classic Experience but not under the Application Manager or Internal Application Manager in the New Experience, and its Post Authentication setting in the Classic Experience may not match what was selected during creation.
This error has two possible causes, and the Admin API log (AdminApiLog) shows which one applies. Each cause listed below gives the log entry that identifies it.
These causes are not related, so a fix for one cause will not resolve the other cause.
In this article
-
Cause 1: The Template Realm's web.config Is Corrupted
With Debug logging turned on, the log shows Membership Provider LdapMembershipProvider does not exist in configuration.
-
Cause 2: The Template Realm Is Larger Than the Free Disk Space
The log shows There is not enough space on the disk, even though the drive has free space.
Cause 1: The Template Realm's web.config Is Corrupted
The web.config file of the template realm (SecureAuth1), and possibly the Template folder's web.config as well, has become corrupted, which causes new realm creation in the New Experience to fail. Enabling Debug logging for the AdminApiLog file and attempting to create a realm again typically shows an entry similar to the following:
2026/04/30 16:49:57.919|Error|SecureAuth.Admin.API.WebApiConfig|[Log] POST|https://localhost/api/v3/applications/|System.InvalidOperationException: Membership Provider LdapMembershipProvider does not exist in configuration.
Resolution 1:
To resolve this:
- Enable Debug logging for the AdminApiLog file: create the folder D:\SecureAuth\AdminApiLogs if it doesn't already exist, back up D:\SecureAuth\Api\nlog.config, then replace its contents with the following:
The resulting log file is D:\SecureAuth\AdminApiLogs\AdminApiLog.txt.<?xml version="1.0" encoding="utf-8" ?> <nlog xmlns="http://www.nlog-project.org/schemas/NLog.xsd" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.nlog-project.org/schemas/NLog.xsd NLog.xsd" autoReload="true" throwExceptions="false" internalLogLevel="Off" internalLogFile="c:\temp\nlog-internal.log"> <targets> <target name="logfile" xsi:type="File" fileName="D:\SecureAuth\AdminApiLogs\AdminApiLog.txt" layout="${date:universalTime=True}|${level}|${logger}|${message}|${exception:format=tostring}"/> </targets> <rules> <logger name="*" minlevel="Debug" writeTo="logfile" /> </rules> </nlog> - Attempt to create the realm again in the New Experience, then check the AdminApiLog file for an entry matching the one shown in Cause 1 above.
- Back up the existing SecureAuth1 and Template web.config files.
- Copy the known-good web.config files from D:\MFCApp_Bin\SISU\Download\Secureauth, from both the SecureAuth1 and Template subfolders, over their respective paths under D:\SecureAuth.
- Try creating the realm in the New Experience again.
Cause 2: The Template Realm Is Larger Than the Free Disk Space
The New Experience creates a new realm by copying the template realm, SecureAuth1, including the log files in its AuditLogs, DebugLogs and ErrorLog folders. If SecureAuth1 is also used as a production realm with Audit or Debug text logging turned on, those folders can grow far larger than the free space on the drive, for example, 36 GB of logs on a drive with 17 GB free. The copy then runs out of space partway through, and the Admin API log shows an entry similar to the following:
<timestamp>|Error|SecureAuth.Admin.BLL.Services.V2.RealmService|[Create] Error creating realm: SecureAuth<NN>.|System.IO.IOException: There is not enough space on the disk.This entry is written at the Error level, so it appears in the Admin API's default log, D:\SecureAuth\Api\Log\AdminApiLog-<date>.txt, without Debug logging turned on.
Resolution 2:
To resolve this:
- Check the size of the D:\SecureAuth\SecureAuth1 folder, and of its AuditLogs, DebugLogs and ErrorLog subfolders, against the free space on the drive.
- If the template realm's Audit and Debug logs are not needed on disk, for example, because they are already sent to a Security Information and Event Management (SIEM) system, turn off Audit and Debug text-file logging on the SecureAuth1 realm's Logs tab in the Admin Console.
- Move the old log files out of those folders, or delete them if they are no longer needed.
- Try creating the realm in the New Experience again.
Special Considerations
If Debug logging was turned on for the AdminApiLog file in Resolution 1, turn it back off once realm creation succeeds, by restoring the backup of D:\SecureAuth\Api\nlog.config made in step 1.
For any realms that could not be created during troubleshooting, manually remove their leftover paths from D:\SecureAuth and from the corresponding Internet Information Services (IIS) site as well.
SecureAuth Knowledge Base Articles provide information based on specific use cases and may not apply to all appliances or configurations. Be advised that these instructions could cause harm to the environment if not followed correctly or if they do not apply to the current use case.
Customers are responsible for their own due diligence prior to utilizing this information and agree that SecureAuth is not liable for any issues caused by misconfiguration directly or indirectly related to SecureAuth products.
Comments
0 comments
Please sign in to leave a comment.