Switch IIS hosting to out-of-process

This commit is contained in:
2026-05-20 08:25:10 +02:00
parent 6f8528ac54
commit e3b9d8d0c0
2 changed files with 29 additions and 1 deletions
+28
View File
@@ -1567,6 +1567,34 @@ Ergebnis:
- Build erfolgreich. - Build erfolgreich.
- 3 bestehende MudBlazor-Analyzer-Warnungen in `Logs.razor`, `Transformations.razor` und `Standorte.razor`. - 3 bestehende MudBlazor-Analyzer-Warnungen in `Logs.razor`, `Transformations.razor` und `Standorte.razor`.
## IIS 500 Diagnose und Hosting-Modell 2026-05-20
Geaendert:
- `web.config` fuer IIS auf `hostingModel="outofprocess"` umgestellt.
- `stdoutLogEnabled="true"` bleibt aktiv, Logziel bleibt `.\logs\stdout`.
- Ziel: Wenn IIS/ASP.NET Core vor dem App-Start scheitert, sollen eher verwertbare Startlogs entstehen; ausserdem wird die App nicht mehr direkt im IIS Worker-Prozess gehostet.
Aktueller Stand:
- Publish-Ordner `\\trch-webapp-bidashboard.trafagch.local\BiDashboard$\` enthaelt `BiDashboard.dll`, `web.config`, `wwwroot`, `runtimes`, `trafag_exporter.db` und `logs`.
- `logs` war trotz aktivem stdout-Logging leer.
- Die veroeffentlichte DLL liess sich vom Publish-Ordner aus starten und brach nicht sofort mit einer Exception ab.
- Remote-Pruefung der installierten .NET-Runtimes per WinRM war nicht moeglich; der Serveradmin muss deshalb am Server pruefen, ob das .NET 8 Hosting Bundle installiert ist.
Naechste Server-Pruefpunkte:
- URL `https://trch-webapp-bidashboard.trafagch.local/BiDashboard/diag.txt` testen.
- Wenn `diag.txt` nicht erreichbar ist, stimmt IIS-Anwendung/virtueller Pfad/Binding nicht.
- Wenn `diag.txt` erreichbar ist, aber die App 500 liefert, Windows Event Viewer pruefen:
- Windows Logs > Application
- Quellen: `IIS AspNetCore Module V2`, `.NET Runtime`, `Application Error`
- App Pool pruefen:
- .NET CLR Version: `No Managed Code`
- Pipeline: `Integrated`
- 32-bit Applications: `False`
- Identity muss Modify-Rechte auf Publish-Ordner und `logs` haben.
## Architekturreview Static/Hardcoding 2026-05-15 ## Architekturreview Static/Hardcoding 2026-05-15
Erstellt: Erstellt:
+1 -1
View File
@@ -10,7 +10,7 @@
arguments=".\BiDashboard.dll" arguments=".\BiDashboard.dll"
stdoutLogEnabled="true" stdoutLogEnabled="true"
stdoutLogFile=".\logs\stdout" stdoutLogFile=".\logs\stdout"
hostingModel="inprocess" /> hostingModel="outofprocess" />
</system.webServer> </system.webServer>
</location> </location>
</configuration> </configuration>