-
Notifications
You must be signed in to change notification settings - Fork 547
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
[BUG] Upgrading Oqtane version 5 => 6 leaves old libraries behind #4848
Comments
In #4755 there was a discussion about .NET assemblies changing locations in .NET 9. The following report provides a comparison of assemblies in .NET 8 vs .NET 9: |
Sorry. Not sure what to do with this info. |
Sorry... I should have provided more context. Basically the report shows that there are a LOT of assemblies which changed locations in .NET 9. However I have upgraded ~10 installations to Oqtane 6.0 at this point and I have not encountered any difficulties. These installations do include custom modules - and I have not experienced any issues with any of them. Now, 2SXC is a very large, sophisticated module - and likely has more dependencies than even the Oqtane framework itself, so this may be why it is having some upgrade challenges. But I am not sure what the Oqtane framework can realistically do to prevent these types of upgrade issues in custom modules? |
When Oqtane 5.0 was released on .NET 8 there was a problem with some legacy Oqtane assemblies which were not removed and some upgrade logic was added to remove them:
This seemed to address the problem for some people. It works as long as the framework is actually able to start up and reach the upgrade code to execute it. The user experience is still not great as an error is still displayed to the user in the browser, but when they manually restart the app it will no longer encounter the error. |
Sorry, but I don't see how this is related to 2sxc... |
List of files moved from /bin to /bin/refs in .NET 9: Microsoft.AspNetCore.Authorization.dll List of files removed completely in .NET 9: System.Runtime.Caching.dll Anomalies: Microsoft.Extensions.Options.dll assembly existed in multiple locations in .NET 8 assembly exists in only 1 location in .NET 9 |
My install refuses to start without System.Runtime.Caching.dll Everything else was deleted with no issues. |
Does your Oqtane install have any 3rd party modules? If so, then it is likely that it is a 3rd party module which has a dependency on System.Runtime.Caching.dll - which is causing the ASP.NET Core exception (as Oqtane itself has no dependency on that assembly) |
Oqtane Info
Version - 6
Render Mode - Static
Interactivity - Server
Database - SQL Server
Describe the bug
Oqtane had a System.Text.Json.dll in the root folder.
Upgrading to Oqtane 6.0 places a new one in /refs/, but leaves the old one behind, causing issues such as 2sic/2sxc#3510
The update needs to remove these old libraries to prevent this issues.
The text was updated successfully, but these errors were encountered: