C
C#11mo 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
Nico11mo 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 User11mo ago
Message Not Public
Sign In & Join Server To View
Accord
Accord11mo 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
Nico10mo ago
/close
Want results from more Discord servers?
Add your server
More Posts
✅ what is a .zero resource file?im looking at some code for an encoder/decoder and it uses a resource file called Aura.zero but its ❔ What is the best GUI system for C#?Does anyone know a good lib that impliment a gui system?Background service to consume a rabbitmq queue, messages unackedI have a background worker which listens to a rabbitmq queue for email sending. The messages are add❔ What is default data types when reading from Excel sheet for upload into DB.?I was trying to upload a excel sheet but having type miss match error while the data types in excel ❔ What is available approaches to communicate between MicroservicesHello dear friends, Let's assume we have a project has the following Microservices (AuthMicroservice✅ Could not load assembly UWP [Mysql Data] (Resolved alone)Hello everyone. I reached something interesting this last hours. I can't work anymore on my project.❔ How to implement an "undo move" function in a game where I need to keep track of multiple objects?PS: I'm using Unity by the way. tldr; In my game, every time the player moves one tile, different o❔ ✅ 'Engines' does not exist in the namespace 'BenchmarkDotNet'Other than a problem, I'm not sure what I've got going on here. In the terminal, I've tried `dotnet❔ nuget doesnt work anymore. IHi, I checked the settings and it seems good. https://api.nuget.org/v3/index.json I get the follow❔ EF Core: Owned property with converter expression cannot be convertedHey guys, we're having this issue. ShoppingCart is an owned entity and Items is a List of objects,