one possible cause is that the app isn't started, and infact i've discovered (watching the logs) that the app isn't started because this error:
Unhandled exception. System.IO.FileNotFoundException: The configuration file 'AppSettings.json' was not found and is not optional. The physical path is '/var/app/current/AppSettings.json'.
the copy to output directory
property in visualustudio is set to "Copy if newer" but opening the .csproj with a text editor there isn't any reference of appsettings.json
so like this answer suggest (dotnet publish doesn´t publish correct appsettings.{env.EnvironmentName}.json) i added this in .csproj
as well but nothing is changed
<ItemGroup>
<Content Update="appsettings.json">
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
</Content>
</ItemGroup>
but i cant make the app work
aside note: i'm publishing with the visualstudio publish wizard