ollih1980
ollih1980
@KristofferStrube its "Blazor Server" and inner exception is: InnerException | {"Deserialization of interface types is not supported. Type 'Microsoft.JSInterop.IJSInProcessObjectReference'. Path: $ \| LineNumber: 0 \| BytePositionInLine: 1."} | System.Exception {System.NotSupportedException}
Okay.. Thanks a lot!
yes, I've added ``` builder.Services.AddBlazorStaticService(opt => { opt.RazorPagesPaths.Clear(); opt.RazorPagesPaths.Add("Pages"); }); ``` And now it's proceeding. But getting an additional error ``` BlazorStatic.Services.BlazorStaticService: Warning: Failed to retrieve page at Redirect. StatusCode:(null)....
It's running in a local docker container (base mcr.microsoft.com/dotnet/aspnet:8.0). Docker in running on a windows host (VS 2022). IP Adresse will change depending on avalibility and docker config. Maybe could...
Port seems to be correct, as in the error message. But IP may also change during the lifecycle. It would be good to get the IP adress from the system......
With some code changes I got it to work. **(PR: https://github.com/tesar-tech/BlazorStatic/pull/25)** But now getting an additional error in the generated index.html `An unhandled exception has occurred. See browser dev tools...
- Can you run the app (not killing it after file generation)? Is the issue only in the generated file? - ---> Yes, only in the generated file - maybe...
Docker File: ``` #See https://aka.ms/customizecontainer to learn how to customize your debug container and how Visual Studio uses this Dockerfile to build your images for faster debugging. FROM mcr.microsoft.com/dotnet/aspnet:8.0 AS...
I think the problem is, that the with the use of httpclient a new "Webbrowser" instance gets created and I've a lot of models and dynamic data within my components....
The logs are looking the same: ``` info: BlazorStatic.Services.BlazorStaticService[0] Generating /Index into /Index/index.html BlazorStatic.Services.BlazorStaticService: Information: Generating /Index into /Index/index.html BlazorStatic.Services.BlazorStaticService: Information: Generating / into /index.html info: BlazorStatic.Services.BlazorStaticService[0] Generating / into...