-
Notifications
You must be signed in to change notification settings - Fork 10.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
.net 9 Blazor Server application pool recycle issue #60106
Comments
@wstaelens When the app pool recycles, any active Blazor Server circuits will be lost, so while the app is recycling there is nothing to handle the UI events. Blazor should detect that the connection to the server was lost, and once the server comes back up, Blazor should try to reconnect and then refresh the browser to establish a new circuit. Are the users not seeing this disconnected state? |
@danroth27 the users don't see the disconnected state. We never had this issue in versions <= .net 8. Only started happening in .net 9 in production. Yesterday it happened "luckily" with a colleague his account. He copied the url and tried different browsers, normal and incognito, tried F5, ctrl+F5, etc... but no success or no reconnection. Is there anything we can check/debug or do? Our solution has grown over the years we started with the first versions of Blazor Server / .net core and evoluated till today Blazor Server and .net 9. |
@danroth27 some extra:
has a button (based on DevExpress DXButton) with a Click event:
This calls:
which calls:
We can't verify but we think that this is the case or similar
This code never had issues in .net 8 but obviously seems to block in .net 9 somewhere related to recycles. in .net 6 or 7 we had an issue that a dialog was not appearing/rendering and we added in the past await Task.Yield() so that the loading dialog would aways be visible. That is why the Task.Yield() has been added. does that make any sense to you? |
@wstaelens thanks for the additional details. It makes sense in a very limited way, given that we don't have the context. The first thing we would suggest is turning logging to debug level both on the server and on the client to try and determine if there are exceptions or other types of errors happening. It's unclear what
We would suggest that you introduce some state change on the UI before
|
we'll give it a try with the await Task.Yield(); before the dialog. The dialog is from Blazored.Modal: https://github.com/Blazored/Modal |
In startup.cs we had this:
Today a customer was unable to log in. We've done some tests and after (temporarly) removing these 3 items:
The user was able to click and use the app.
where a it feels like it has something to do with cookies/https/samesite. Not sure if IIS recycle has to do with it or if that part was just accidentially occurring. |
@wstaelens from what you are describing, this is happening during prerendering. Your login is not interactive in any way, isn't it? |
Hi @wstaelens. We have added the "Needs: Author Feedback" label to this issue, which indicates that we have an open question for you before we can take further action. This issue will be closed automatically in 7 days if we do not hear back from you by then - please feel free to re-open it if you come back to this issue after that time. |
Since we've upgraded to .net 9 (coming from .net 8) we experience that some of our customers can't click on any buttons/links/.. being rendered in Blazor Server. The click events are not being accepted/processed.
Server 2019, Blazor Server, .net 9.0 in-process published, IIS.
We've seen that when we see an Event id 5074 WAS in that the application pool recycles that some users in production are affected by the "ignoring of click events". These are not always the same users.
These users are not being able to work in the applicaton as the click events are totally ignored.
We've never seen this in earlier versions of .net but since .net 9 we experience this sometimes in production.
Anyone experienced the same? Suggestions?
When a customer calls with the issue, the CPU (7%, 6%) and Memory (70%) are normal...
The text was updated successfully, but these errors were encountered: