Quantcast
Channel: Active questions tagged blazor - Stack Overflow
Viewing all articles
Browse latest Browse all 4017

Blazor website work well on localhost but not so well on the server

$
0
0

I have this bit of code in my Home.razor file in my Blazor website:

protected override async Task OnAfterRenderAsync(bool firstRender){    if (!firstRender)        return;    Console.WriteLine("Got here");}

I get the "Got here" output in the console when running it on Localhost but the output doesn't appear when I push it to the server.I used dotpeek to look at the dll 'projectServer.Client.dll' and I see that the code is there. It's just not executing it for some reason when it's deployed to production.

My render mode is InteractiveAuto: <HeadOutlet @rendermode="@InteractiveAuto" />

Can you please tell me what I'm doing wrong?


Viewing all articles
Browse latest Browse all 4017

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>