-
-
Notifications
You must be signed in to change notification settings - Fork 41
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
Server errors when updating DNN from 9.10.1 to 9.10.2 after 2sxc upgrade to v13 #2682
Comments
My files in bin\2sxc read version 1.1.1 [Edit] [Edit] |
Yes, that's the problem. And it's related to how Dnn doesn't keep track of it's own dependencies - so it never checks them on an upgrade. All other modules do. As of now, I don't see that we can fix this, Dnn should do something. So please open an issue there. |
Daniel, I am hoping you will reconsider this. Dnn is a compiled project with dependencies. One of those is Microsoft DependencyInjection and has been at v2.1.1 for quite a while now. Its a key, core dependency and I believe its even used by the installer. So 2sxc overwriting that DLL and adding a binding redirect that creates this situation is clearly a problem: will cause all future upgrades of Dnn Platform (after the install of 2sxc 13.03) to fail. You suggested, "Dnn doesn't keep track of it's own dependencies - so it never checks them on an upgrade" - given that you know this, it seems like the responsibility is on you to keep your module compatible and not create a situation that will definitely result in Dnn unable to startup the very next time its upgraded. Note that I am at best a power-user and a learn-as-you-go developer, not a high level full-time programmer. So please forgive any ignorance in my questions... Does your module need features in MS DI 2.2.x that are not available in 2.1.1?
Are you able or willing to contribute to Dnn Platform:
The Dnn Platform community has a lot of diverse members with widely varying skillsets. Is it possible there may be other solutions that could come about via an open discussion? Are you willing to work with Dnn Platform (the community or maybe somehow directly with the Technology group) to either improve the situation or find a solution or workaround? In closing, 2sxc is a module being installed in to Dnn Platform. I very humbly want you to realize, your comment above ("As of now..."), to me, comes across as frighteningly dismissive. Even if you don't (yet) know of a possible solution, please at least re-open this issue (its closed as I write this) and continue to discuss and hear suggestions, and answer questions. |
Thank you @jeremy-farrance for voicing some of what I was thinking. It seems this could have all been avoided by a simple conversation upfront. I am pretty confident no DNN Platform "approver" would object to bumping the DI version as long as it is not a breaking change. |
@jeremy-farrance & @david-poindexter - I agree that we should reopen this My answer above explain the situation as is. It's not a description of what we intended. I myself am frustrated by the status quo. When we used a newer DI version, we were ourselves not aware of this problem popping up. To be honest, I don't know exactly why we used a slightly newer version, My guess is that it was either because of Entity Framework - but it could also be a coincidence, as we didn't expect follow-up problems. It could also be that we used the newest one which is compatible with what DNN does, and simply didn't consider that DNN would replace these again. I believe we should review the options, but that's difficult for many reasons
Next steps
|
Created instructions how to fix until we have a solution: #2684 |
Thank you for the response above! I don't have details or a link, but I am aware that at least 1 effort is already underway to update Dnn Platform to use the 2.2x version of MS DI. I don't know whether that will be successful (seems likely) or when that might make it in to a release (weeks?). |
According to @tvatavuk the reason is because the ImageFlow resizer needs this as a minimum version. 2sxc wouldn't need this. We'll try to find a workaround. |
Thank you @iJungleboy - let me know if I can be of any help in bridging any gaps with DNN Platform. Like @jeremy-farrance mentioned, I know of a community member that was looking into a potential PR to DNN Platform to bump the version of DI in DNN to 2.2.0. Hopefully, that will help. |
I'm submitting a ...
[x] bug report
...about
[x] DNN parts
[x] other / unknown
Current behavior
I upgraded 2sxc to v13 a couple days ago. No issues.
I tried to upgrade DNN from 9.10.1 to 9.10.2 and I get these errors:
Could not load file or assembly 'Microsoft.Extensions.DependencyInjection.Abstractions' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)
My web.config:
See Fix Here: #2684
The text was updated successfully, but these errors were encountered: