After upgrading to 9.3 portal says "Potentially dangerous behavior was detected"

Hi.

Just upgraded to 9.3 and installed the ApiServer. But when I try to access the portal it says "Potentially dangerous behavior was detected. The request will be ignored."

Then I found the fix for that: Unable to log in to the web portal after an upgrade to 9.x (4369782)

But that didn't work:

C:\Program Files\One Identity\One Identity Manager>imxclient edit-config /path C:\inetpub\wwwroot\ApiServer\web.config -T
ImxClient 9.3 v93-278876
© 2024 One Identity LLC. All rights reserved.

Attempting to connect to database...
Could not open connection, using connection dialog as fallback.
Info: Opening connection dialog...
Info: Starting C:\Users\acme-user\AppData\Local\One Identity\One Identity Manager\Cache\Updater\7tPuSSQLx47VzF9_PDF0KmqR_tSYZ97XQQye6mBi\Update.dll at 2025-01-13 09:40:51
Info: Checking for updates...
Info: User acme-user (Dialog user: acme-user, X fields: acme-user) authenticated.
Warn: Command edit-config failed with exception.VI.Base.ViException: No configuration data for the web application "<empty>" was found in the database, or an error occurred while loading. Check the configuration and the application log files.
   at VI.Web.ConfigBase.WebAppDbConfig.Load(IConnection connection, String baseUrl, Boolean createMissing)
   at VI.ImxClient.EditConfig.EditConfigPlugin.SetTrustedSourceKey(EditConfigArgs cargs, String newKey)
   at VI.ImxClient.EditConfig.EditConfigPlugin.Execute(String[] args, EditConfigArgs cargs)
   at VI.ImxClient.PluginBase`1.Execute(String[] args, Object argso)
   at VI.ImxClient.CommandRunner.Run(String[] args)    at VI.Web.ConfigBase.WebAppDbConfig.Load(IConnection connection, String baseUrl, Boolean createMissing)
   at VI.ImxClient.EditConfig.EditConfigPlugin.SetTrustedSourceKey(EditConfigArgs cargs, String newKey)
   at VI.ImxClient.EditConfig.EditConfigPlugin.Execute(String[] args, EditConfigArgs cargs)
   at VI.ImxClient.PluginBase`1.Execute(String[] args, Object argso)
   at VI.ImxClient.CommandRunner.Run(String[] args)
--- Error report ---
[1798015] No configuration data for the web application "<empty>" was found in the database, or an error occurred while loading. Check the configuration and the application log files.
                <at VI.ImxClient.CommandRunner.Run(String[] args)>              <at VI.ImxClient.PluginBase`1.Execute(String[] args, Object argso)>             <at VI.ImxClient.EditConfig.EditConfigPlugin.Execute(String[] args, EditConfigArgs cargs)>              <at VI.ImxClient.EditConfig.EditConfigPlugin.SetTrustedSourceKey(EditConfigArgs cargs, String newKey)>          <at VI.Web.ConfigBase.WebAppDbConfig.Load(IConnection connection, String baseUrl, Boolean createMissing)>
--- end ---

Failure: Command edit-config failed with exception.

If I go to Designer -> Web Server configurations -> and then select the ApiServer, the foreign key for Program is Empty as stated in the error message above.

Anyone have any clues?

/Henrik