Is the DNN Persona Bar reliant specifically on System.Net.Formatting version 5.2.3?

0

I am building a module that has a dependency on System.Net.Formatting greater than version 5.2.3 which is currently included in the bin folder of a fresh install of DNN 9.3.2 (24). When I update it to System.Net.Formatting version 5.2.61128.0 and update my web.config bindings, I notice that it makes some of the items in the left-sided Persona bar disappear. The bar and DNN logo still appear, but I lose the ability to access the "Content", "Manage", and "Settings" as well as the pencil at the bottom of the bar that allows you to put the page in edit view. They have completely disappeared.

Is there another workaround for this? Is the Persona Bar tied specifically to System.Net.Formatting version 5.2.301208.0? I would assume updating to a later version, then updating the bindingRedirect in the web.config would not cause an issue with the Persona Bar. Site loads fine, and everything else works, just can't get the Persona Bar to work properly. After loading the updated System.Net.Formatting.dll (version 5.2.6) I updated the web.config as shown below.

<dependentAssembly>
 <assemblyIdentity name="System.Net.Http.Formatting" publicKeyToken="31bf3856ad364e35" />
 <bindingRedirect oldVersion="0.0.0.0-5.2.3.0" newVersion="5.2.6.0" />

I also tried the following, but it did not fix the Persona Bar issue:

<dependentAssembly>
 <assemblyIdentity name="System.Net.Http.Formatting" publicKeyToken="31bf3856ad364e35" />
 <bindingRedirect oldVersion="0.0.0.0-5.2.6.0" newVersion="5.2.6.0" />

I am looking for a way to update to the later version of System.Net.Formatting, while not breaking the DNN Persona Bar.

Log file shows - [ERROR] DotNetNuke.Common.Internal.ServicesRoutingManager - Unable to register service routes System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.IO.FileLoadException: Could not load file or assembly 'System.Net.Http.Formatting, Version=5.2.6.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040) ---> System.IO.FileLoadException: Could not load file or assembly 'System.Net.Http.Formatting, Version=5.2.3.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)

c#
dotnetnuke
asked on Stack Overflow Aug 17, 2019 by Joseph Caracci • edited Aug 17, 2019 by Joseph Caracci

0 Answers

Nobody has answered this question yet.


User contributions licensed under CC BY-SA 3.0