Server Disconnect after one minute RRS feed

  • Question

  • User-1395768221 posted

    Experimenting with Blazor.  I create the (server) example "counter" web page.  Everything works fine in the development mode.  

    Then I publish the application to my web hosting service (ASPNIX).  Homepage comes up as expected.  Then after 60 seconds of non-activity, everything is grayed out and I get the following message:

    "Could not reconnect to the server. Reload the page to restore functionality."

    Is this normal expected behavior?  Anyway to keep the server connection alive?

    Friday, April 17, 2020 4:28 PM

All replies

  • User932909087 posted

    Hi wgcampbell,

    Are you using Session? It seems from your explanation above, you are using session. On shared hosting, you can't use session as it hosting provider won't permit you to use it. As an alternative, you can use Asp.net Session State. 

    Monday, April 27, 2020 7:14 AM
  • User-1395768221 posted

    I simply created a server project - no special options - just the standard "counter" app.  Didn't make any changes that have to do with Sessions unless that's part of the standard blazor server template.

    Monday, April 27, 2020 12:24 PM