Forum Discussion
Updating .NET 8 affects applications currently running on the server?
Will updating .NET 8 from an earlier version to the latest release affect applications currently running on the server?
Could they cause errors or failures in the services running on that version of .NET on the server?
Thank you guys.
1 Reply
- AmezingtechsataraIron Contributor
Short answer: if you're staying inside .NET 8 — moving from one 8.0 patch release to a newer one — your apps should keep running as they are. You don't need to rebuild anything.
That's because of how the runtime picks versions. A framework-dependent app asks for .NET 8, and the machine gives it the newest 8.0 patch installed — that's the default roll-forward behaviour in Microsoft's .NET docs. Patches are fixes only, not new features, so the APIs your apps call don't change underneath them. Different major versions, meanwhile, sit side by side on the same machine, so updating .NET 8 doesn't touch anything running on .NET 7 or 6.
Two things worth knowing before you click update, though. First, an app that's already running keeps using the runtime it started with — the new patch only applies when the process restarts, so for an IIS site that means recycling the app pool or restarting the service. Second, this only applies to apps that use the shared runtime on the server. If an app was published self-contained, it carries its own copy of the runtime and won't see the update at all until you republish it.
So the practical order I'd follow: update the runtime, restart the services one at a time, and check the logs after each one. If something did break, the fix is usually to roll the runtime back or pin the app to the previous patch rather than rebuild anything.