Adams Admin or Adams Web Fails to Start
Symptoms
When navigating to the home page a message similar to the following appears.
HTTP Error 500.30 - ASP.NET Core app failed to start
Common solutions to this issue:
The app failed to start
The app started but then stopped
The app started but threw an exception during startup
Troubleshooting steps:
Check the system event log for error messages
Enable logging the application process' stdout messages
Attach a debugger to the application process and inspect
Details
The event log has three errors similar to the following (in chronological order).
Source: .NET Runtime
Application: w3wp.exe
CoreCLR Version: 8.0.1325.6609
.NET Version: 8.0.13
Description: The process was terminated due to an unhandled exception.
Exception Info: System.Exception: The authentication mode in the web.config file does not match the authentication mode in the database.
at Program.<Main>$(String[] args)
at Program.<Main>(String[] args)
Source: IIS AspNetCore Module V2
Application '/LM/W3SVC/1/ROOT/AdamsAdmin' with physical root 'C:\inetpub\wwwroot\AdamsAdmin\' hit unexpected managed exception, exception code = '0xe0434352'. First 30KB characters of captured stdout and stderr logs:
Unhandled exception. System.Exception: The authentication mode in the web.config file does not match the authentication mode in the database.
at Program.<Main>$(String[] args)
at Program.<Main>(String[] args)
Source: IIS AspNetCore Module V2
Application '/LM/W3SVC/1/ROOT/AdamsAdmin' with physical root 'C:\inetpub\wwwroot\AdamsAdmin\' failed to load coreclr. Exception message:
CLR worker thread exited prematurely
Cause
If at startup the web.config
authentication mode does not match the database's authentication mode, then an exception is thrown and Adams Admin or Adams Web will not start.
Solution
The database settings is edited in Configure Adams → Central Config → Require Login
The web.config
value can be edited directly in the file or in IIS Manager → Default Web Site → Adams Admin/Web → Authentication
Support Configurations
IIS / web.config | Database |
---|---|
Forms | Require Login is True/checked |
Forms | Authentication Source is Azure AD |
None | Authentication Source is Azure AD |
Windows | Require Login is False/un-checked Authentication Source is not Azure AD |
Successful Startup
When Adams Admin starts successfully and a request is made to it, the following message appears in the event viewer.
Source: IIS AspNetCore Module V2
Application 'C:\inetpub\wwwroot\AdamsAdmin\' started successfully.
Related content
© 2023 Foray, LLC - All Rights Reserved