-
Notifications
You must be signed in to change notification settings - Fork 754
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
DNN 9.7.0-RC2 Upgrade Causes 2sxc Streams to Fail #4003
Comments
@iJungleboy have y'all done any 9.7.0 testing yet? Any thoughts on what could cause an error like this? |
@ahoefling can you do a repair install of 2sxc and see if you still get the error? |
I just ran a repair and it did not fix the problem |
@bdukes nope, haven't done any testing yet. My guess is something with dependency injection. Did you change anything there? or modify web.config DLL pointers? because 2sxc still uses the old 1.1 DI of .net core, which is placed in a subfolder of .bin. |
There are a couple of small DI changes, but nothing that I would expect to disrupt your setup. |
The 2 DI engines are isolated from each other, the changes in DI for DNN shouldn't cause problems in 2sxc. I agree with @iJungleboy that the web.config would be the first place to look. @bdukes you mentioned you did a file compare on the web.config and didn't notice anything on 3rd party libs. Did we update any binding redirects for microsoft dlls? |
I just ran a quick test with the same using 2sxc 11.4 - same problem. My message says this BTW:
Now the lines of the latest code won't match these numbers as I've been working on these files. My guess
Could it be that this changed? It would be a likely thing to get reworked as DI matures. |
Update: 2sxc leverages the DNN token replace to inject various parameters incl. ModuleId into deeper layers. For that it creates a It seems that now in 9.7 RC2 the Module is now an Any ideas? |
This token provider change is probably at least near where your issue is coming from: https://github.com/dnnsoftware/Dnn.Platform/pull/3820/files#diff-abf4e4ef8e94a1825c5e0e1050a83f51R132-R150 |
I can verify that this error is also present for fresh DNN 9.7.0 installs not just for installs that were upgraded from earlier versions of DNN and it is present in the final release of v9.7.0 not just in RC2. I encountered the error with the 2SXC Events and Courses module. |
@iJungleboy So far Token replace has been working fine with Form&List, Newsletter, Html Module, etc. We did run testing on this and so far 2sxc is the only report we had about this problem. 2sxc being so popular it would be nice to have more eyes from you guys in our RCs testing and maybe get involved in figuring out the issue and submitting a PR ? Since we could not reproduce the issue with any other module, we thought this might be an isolated case and did not hold on 9.7.0 for this. That being said we are now setup for very quick releases and if a solution comes quick we are ready to fire up a 9.7.1 very quickly. |
@valadas I simply don't even know how to get a basic DNN 9.x Dev up and running on my system to do a deeper debugging :(. I'm afraid that will take hours - or is there a quick setup or container or VM or something which is just for kicking it off? That said, all we're doing is initializing a |
I would like to ask that this is solved before we release - I expect that 2sxc and DNN would get over 300+ requests of early adopters running into the same bug, which always is very bad for trust in the platform. So if you can fix it awesome, if you can guide me to a very fast setup-dnn-as-dev that's ok too. |
As an open-source project, the maintainers of DNN Platform have done more than I feel we should be obligated to do so, by checking more than 10 different implementations/usage of TokenReplace within the platform itself and external modules. We cannot hold a release for a single third-party vendor. This isn't meant as any sort of disrespect to 2sxc, or any users of 2sxc, or any other vendor for that matter, but the platform maintainers can ONLY be responsible for the platform. We have verified the platform is performing. Local development environment is well documented in the documentation of this repo. If there is something found that requires a change on DNN Platform we can roll a 9.7.1 RC quickly after a PR is received. |
Also, if anyone has a publicly available extension, it's up to each individual vendor to test their respective extensions when RC's are out. I admit that I didn't do much testing for Hotcakes for the last two releases myself. :( |
@iJungleboy A lot of effort went in to improve the build process and make it easier than it was, we documented the process at https://github.com/dnnsoftware/Dnn.Platform/blob/develop/.github/BUILD.md for many popular use case scenarios. If you follow that process and hit an issue, then we need to improve docs or the build process. Please give it a try and ping me up if you encounter problems I will be glad to help on that. Once that works, it should be as simple as building in debug mode and putting a breakpoint to figure out what is happening. |
@valadas I'll give it a try, thx. |
I think I found it - there is a funny mechanism in the
Then in the GetModule this happens
The bug happens on these two lines because of the upper-case
|
Closing per #4018 - thanks again @iJungleboy for the fix and to @ahoefling for reporting - all around great teamwork! |
Tested DNN 9.7.1 RC1 with 2SXC Events and Courses. Appears that the problem is fixed. |
That is great news @skarpik - thanks for testing and reporting back your findings! |
Description of bug
I was testing 9.7.0-RC2 on one of my sites that uses 2sxc Streams in one of it's templates. This was working without issue in 9.6.2 and when I upgraded to 9.7.0-RC2 any 2sxc app that uses Streams are failing to load.
Steps to reproduce
Current behavior
The module crashes and fails to load.
Expected behavior
The module should run as expected when it was using DNN 9.6.2
Screenshots
N/A
Error information
Additional context
The stacktrace doesn't display any DNN specific code, but this exact same module and app were working fine on DNN 9.6.2. After I performed the upgrade it failed to load correctly. I wonder if there is some ASP.NET setting that has changed between the 2 versions or if it corrupted the 2sxc install when copying assemblies.
This was identified during research from #3986
Affected version
Affected browser
N/A
The text was updated successfully, but these errors were encountered: