I'm hoping someone in the know might be able to point me in the right direction with this please.
I have a blazor web app which runs fine in Visual Studio.I publish it to FILE (SELF CONTAINED win-x86) and add it to IIS on the local machine. It works as expected.
I then upload it to a shared hosting platform - again on IIS - that I'm very familar with and it refuses to run. It generates "HTTP Error 500.30 - ASP.NET Core app failed to start".
So just out of interest I upload to a different hosting company (again a service familiar to me) - it generates exactly the same response.
So I also create an out-of-the-box blazor app and upload - same issue.
So I enable stdout and aspnetcore-debug logging in the WEB.CONFIG and both servers report the same issue, which I have no idea how to fix. It seems that for some reason, some assemblies are not being loaded, despite being in the uploaded files. It starts with assemblies referenced in the program.cs file in order of being used. If I comment out the first assembly (Serilog config related), it just fails on the next one (eg Radzen.Blazor but it could be anything).
So what am I missing? Why are assemblies not being found on the remote IIS server, that work perfectly well on the local IIS server?
On a possibly related note - in the error below - why do the built files have a reference to where I keep my projects ("D:\Repos\MyProject"), which should surely now be just the root of the project assembly i.e. ".\myassembly.exe"
example error from stdout log:
Unhandled exception. System.IO.FileNotFoundException: Could not load file or assembly 'Radzen.Blazor, Version=5.9.8.0, Culture=neutral, PublicKeyToken=null'. The system cannot find the file specified.File name: 'Radzen.Blazor, Version=5.9.8.0, Culture=neutral, PublicKeyToken=null' at MyProject.com.Extensions.AddThirdPartyComponentsToServerExtension.AddThirdPartyComponentsToServer(IServiceCollection services) at Program.<Main>$(String[] args) in D:\Repos\MyProject\Program.cs:line 42Thanks for any help/pointers