Troubleshooting appsettings configuration
This page helps you determine the cause when, after a change to the appsettings.Production.json file, the Portal or the Service does not start or behaves differently than expected.
First steps
If the Portal or the Service does not start after a configuration change:
- Restore the backup of the
appsettings.Production.jsonfile and recycle the application pool / restart the Service again. If the application starts, the cause lies in the most recent change. - Check the startup logs — see Where to find logs. The error message usually indicates the file, section, or parameter causing the problem.
- Compare the message with the list of the most common errors below.
- Make changes one at a time — after each change, apply it and check how the application works. This makes it easier to identify the problematic parameter.
Where to find logs
Errors that occur during application startup — before a database connection is established — are not written to the logs database. Look for them in the Windows Event Log.
Event Viewer
Open Event Viewer (eventvwr.msc) on the Portal or Service server and check:
| Log | What to look for |
|---|---|
| Windows Logs → Application | Portal startup errors reported by the IIS AspNetCore Module V2 source and errors from the .NET Runtime / Application Error sources with the full exception text. |
| Windows Logs → System | Service startup errors reported by the Service Control Manager source, e.g. information that the service failed to start or terminated unexpectedly. |
| Applications and Services Logs → WebCon WorkFlow | Entries written by the application, if the EventLog sink is configured — by default in environments updated from a version earlier than 2026 R1. |
To quickly find the relevant entry, use the Filter Current Log option in the Actions pane and limit the view to the Critical and Error levels from the last hour.
Other sources of information
| Source | When it is useful |
|---|---|
| Error page in the browser | A Portal that failed to start in IIS returns an HTTP 500.30 error (the application failed to start), HTTP 500.31, or HTTP 502.5. The code alone does not indicate the cause — details are available in Event Viewer. |
| Log files | Files from the File sink — by default, only fatal errors (Fatal) are written. |
| Logs database | Entries from the MSSqlServer sink — available only if the application connected to the database specified in LogsDb. |
Service ServiceLogs directory | Files with a date in their names, containing information about starting Service modules. The Service is considered started only after all modules have been activated — starting the WebCon.WorkFlow.Bootstrapper.exe process alone does not mean this. |
/health address | The state of the application and — for the Service — of individual modules and of the connection to the SOLR server, the WCF service, and the license service. See HealthChecks. |
| Portal standard output log | In the Portal web.config file, you can temporarily set stdoutLogEnabled="true" and specify a directory in stdoutLogFile. Messages output by the application during startup will be written. After the diagnosis is complete, restore the value false. The web.config file is overwritten during installation and updates, so treat this change as temporary only. |
Most common errors
Invalid JSON syntax
Symptom: The Portal or the Service does not start immediately after the file is changed. Event Viewer shows an error similar to:
System.IO.InvalidDataException: Failed to load configuration from file 'C:\...\appsettings.Production.json'.
Cause: the file is not a valid JSON document. Most often:
- a missing comma between items,
- an unclosed
{ }or[ ]bracket, - single quotes
'instead of double quotes", - a single
\character in a path or SQL Server instance name (e.g."SQL01\BPS"instead of"SQL01\\BPS"), - text copied from a document or email containing "smart" quotes
“ ”.
Solution: open the file in an editor with JSON support (e.g. Visual Studio Code), correct the indicated places, and apply the changes again. The error message usually contains the line number and position where the problem was detected.
Missing or invalid connection string
Symptom: the application does not start, and the logs show an error related to an empty or invalid connection string, e.g. Format of the initialization string does not conform to specification.
Cause: the ConnectionStrings section was not completed in appsettings.Production.json (the values in the template are empty), the section or parameter name contains a typo, or the connection string contains a syntax error.
Solution: check that appsettings.Production.json contains valid ConfigDb and LogsDb values — see ConnectionStrings.
SQL Server authentication error
Symptom: the logs show the error:
Login failed for user '<account>'.
Cause:
- with
Integrated Security=True— the Portal application pool identity or the Service account does not have a login in SQL Server (the message then contains the account name, e.g.DOMAIN\SERVER$orIIS APPPOOL\<pool name>), - with SQL Server authentication — an incorrect login or password, a disabled account, an expired password, or SQL Server authentication mode disabled on the server.
Solution: check which account is shown in the message and verify its login in SQL Server. You can find the detailed cause (the so-called 18456 error state) in the SQL Server error log on the database server. Keep in mind that the Portal and the Service may connect to the database using different accounts.
Insufficient SQL account permissions
Symptom: the application connects to the server but does not start, or reports errors during operation, e.g.:
The server principal "<account>" is not able to access the database "<database>" under the current security context.
The EXECUTE permission was denied on the object '<object>'...
CREATE TABLE permission denied in database '<database>'.
Cause: the account in the connection string does not have access to the database specified in ConfigDb or LogsDb, or does not have the required permissions. The last message appears when automatic creation of the logs table (autoCreateSqlTable) is enabled and the account cannot create tables.
Solution: grant the account the db_owner role in all WEBCON databases – configuration, logs, attachments and archive — see ConnectionStrings.
SQL server certificate is not trusted
Symptom: the logs show the error:
A connection was successfully established with the server, but then an error occurred during the login process. (provider: SSL Provider, error: 0 - The certificate chain was issued by an authority that is not trusted.)
Cause: the connection to SQL Server is encrypted by default, and the server uses a certificate that the Portal or Service server does not trust (e.g. a self-signed certificate).
Solution: install a certificate issued by a trusted certification authority on the SQL server or — if this is acceptable in your environment — add TrustServerCertificate=True to the connection string.
No connection to the SQL server
Symptom: the logs show the error:
A network-related or instance-specific error occurred while establishing a connection to SQL Server.
Cause: an incorrect server or instance name in Data Source, a stopped SQL Server or SQL Server Browser service, a firewall blocking the port, or a server name that cannot be resolved.
Solution: check the server and instance name (remember to use a double \\ in the JSON file), port availability (1433 by default) from the Portal/Service server, and the status of the SQL Server services.
Port is in use
Symptom: the application does not start, and the logs show the error:
Failed to bind to address http://[::]:<port>: address already in use.
Cause: the port specified in Kestrel.Endpoints is used by another application or another Portal instance.
Solution: change the port in Kestrel.Endpoints or stop the application using it. To identify the process using the port, run:
Get-NetTCPConnection -LocalPort <port> | Select-Object OwningProcess
Entries do not appear in the Event Log
Symptom: the EventLog sink has been configured, but Event Viewer does not show the WebCon WorkFlow log or new entries.
Cause: the Serilog.Sinks.EventLog module was not added to the Using list, the event source is not registered and the application account does not have permission to create it, or the event level is lower than MinimumLevel.
Solution: check the configuration described in the EventLog section and register the event source as administrator.
The Event Log fills up with warnings after an update
Symptom: after an update to version 2026 or later, Event Viewer shows a very large number of warnings written by the Portal or the Service.
Cause: during an update from a version earlier than 2026 R1, the installer adds the EventLog sink to the appsettings.Production.json file, which — as in previous versions — writes events of level Warning and higher. In new installations, warnings are written only to the database.
Solution: in the EventLog sink, set "restrictedToMinimumLevel": "Error" or remove the sink from appsettings.Production.json — see EventLog.
Change has no effect
Symptom: the application starts correctly, but the new parameter value is not applied.
Cause:
- the changes were made in
appsettings.jsoninstead ofappsettings.Production.json(or were overwritten during an update), - the Portal application pool was not recycled or the Service was not restarted,
- a typo in a section or parameter name — unknown parameters are ignored without any message,
- the parameter was placed in the wrong section (e.g.
MaxRequestBodySizedirectly inKestrelinstead ofKestrel.Limits), - a list (e.g.
Serilog.Using) was specified only partially and was merged with the template list differently than expected — see Configuration files and their loading order, - the changes were made only in the Portal but concern the Service (or vice versa) — each application has its own file.
Solution: compare the structure of appsettings.Production.json with the structure of the appsettings.json template, correct the names and placement of the parameters, and then apply the changes again.
Attachments above a certain size are not uploaded
Symptom: uploading larger files fails, while smaller files are uploaded correctly.
Cause: the request size exceeds the Kestrel.Limits.MaxRequestBodySize limit (128 MB by default) or the IIS request filtering limit.
Solution: increase both limits — see Kestrel.