C
C#16mo ago
Nico

✅ HTTP Error 500.30 - ASP.NET Core app failed to start

Hello! I'm getting this error after deploying a net core app to IIS 10 (Windows 10 pc). Publish seems to be fine, release, win-x86... I installed IIS and Hosting bundle on target PC. App has Windows Authentication enabled, I get the login prompt at browser, after filling user/pass and OK, it shows the 500.30 error. I followed steps from MS docs and run the app from cli (\dotnet app.dll) and got this:
Unhandled exception. System.IO.FileLoadException: Could not load file or assembly 'app, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null'.
Unhandled exception. System.IO.FileLoadException: Could not load file or assembly 'app, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null'.
I get app cannot Load/find a file but if I just run the app.exe it works flawless, allows to login, and app behaves correctly, connecting to remote db, etc. What am I missing?? Help! Edit: added IIS selected features
4 Replies
Nico
NicoOP16mo ago
Update: Arhggggggg found a solution: hosting model must be OutOfProcess... This change at web.config did the trick:
<aspNetCore processPath=".\app.exe" stdoutLogEnabled="false" stdoutLogFile=".\logs\stdout" hostingModel="OutOfProcess" />
<aspNetCore processPath=".\app.exe" stdoutLogEnabled="false" stdoutLogFile=".\logs\stdout" hostingModel="OutOfProcess" />
Still getting the same exception running it from cli, but app works 🧐
Unknown User
Unknown User16mo ago
Message Not Public
Sign In & Join Server To View
Accord
Accord16mo ago
Was this issue resolved? If so, run /close - otherwise I will mark this as stale and this post will be archived until there is new activity.
Nico
NicoOP15mo ago
/close
Want results from more Discord servers?
Add your server