question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Upgrading to 9.43.1 fails related to System.Web.Helpers

See original GitHub issue

I’m submitting a bug report about upgrading/general.

Current behavior When I upgrade a DNN 9.2.2 or 9.3.x with 2sxc 9.4x+ to 9.43.1 specifically, I soon get errors related to System.Web.Helpers.

In one case I got the classic, “DNN Error, Return to Site” and this was the URL (note the “AntiForgery” https://staging123.accuraty.ws/Default.aspx?tabid=59&error=The+type+initializer+for+‘System.Web.Helpers.AntiForgery’+threw+an+exception.&content=0

Other times I get an IIS Error 500

Then when I get on the server (local) I get a detailed IIS/.NET error explaining that System.Web.Helpers has a method being requested but if found the wrong version of the DLL in the bin (paraphrasing since I didn’t save that one, sorry).

ALSO NOTE THIS IS EASY TO FIX by just adding the following to web.config:

  <runtime>
<!-- other stuff -->
      <dependentAssembly>
        <assemblyIdentity name="System.Web.Helpers" publicKeyToken="31bf3856ad364e35" />
        <bindingRedirect oldVersion="1.0.0.0-3.0.0.0" newVersion="3.0.0.0" />
      </dependentAssembly>

In each case it was not there at all until I added it.

Expected behavior Upgrade should just work.

Minimal reproduction of the problem with instructions I think I covered this well above.

Windows Server 2016/IIS, all patches and updates, latest .NET but no install of .NET Core anything

2sxc version(s): 9.2+ upgrading to 9.43.1 Browser: all but probably not relevant DNN: 9.2+ and 9.3+ Language: any

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:6 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
iJungleboycommented, Sep 19, 2019

Found out that this is a DNN bug! See https://github.com/dnnsoftware/Dnn.Platform/issues/2971 It only happens if a DNN is updated from a 7 or 8.0.x. Otherwise this never happens.

0reactions
jeremy-farrancecommented, Jun 12, 2019

Oh, and again, easily fixed with the web.config addition mentioned above (bindingRedirect).

Read more comments on GitHub >

github_iconTop Results From Across the Web

System.Web.Helpers not found in VS2015
This question is a bit old but here's a simple solution - Microsoft seemed to just move this library to a Nuget package...
Read more >
IIS 7 can't run ASP.NET MVC application due to missing ...
Apparently I need to install MVC dependencies on the server. I found a recipe on winhost forums, which says to add the required...
Read more >
How to Upgrade an ASP.NET MVC 4 and Web API Project ...
In elements with the name attribute "System.Web.Helpers" and "System.Web. · Locate the <appSettings> section and update the webpages:version from ...
Read more >
yum fails for python-backports-ssl_match_hostname-3.4. ...
rpm as an update to python-backports-ssl_match_hostname-3.4.0.2-4.el7.noarch Resolving Dependencies --> Running transaction check ---> Package python-backports- ...
Read more >
upgrading to umbraco 735 error
I am trying to do a manual upgrade to 7.35. The backoffice is working just fine but the front end is not.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found