Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Daniel Cooper 6 posts 97 karma points
    Nov 14, 2018 @ 18:00
    Daniel Cooper
    0

    Error upgrading .NET from 4.6.1 to .NET 4.7.2 - Umbraco 7.10.5

    Hi,

    I'm trying to update my project .NET version from 4.6.1 to 4.7.2 and getting the following error when running:

    The type 'System.Object' is defined in an assembly that is not referenced. You must add a reference to assembly 'netstandard, Version=2.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51'.
    

    I'm not convinced I should have to add a reference to netstandard, especially when I didn't previously. The line in my view file that's throwing the error is this:

    @(Model.Content.GetPropertyValue<string>("content"));
    

    Also get the same error when trying to access Umbraco backoffice on this line

    var attempt = parsed["umbDebug"].TryConvertTo<bool>();
    

    anyone had this before?

Please Sign in or register to post replies

Write your reply to:

Draft