Copied to clipboard

Flag this post as spam?

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


  • Ismail Mayat 4511 posts 10092 karma points MVP 2x admin c-trib
    Nov 14, 2013 @ 12:06
    Ismail Mayat
    0

    Method not found Void System.Web.UI.ScriptResourceDefinition

    I have a site that I am trying to make live. Its umbraco v6.1.2 running as mvc works fine on dev box win2k8. When trying to run on live win2k3 I get the following ysod:

    Method not found: 'Void System.Web.UI.ScriptResourceDefinition.set_LoadSuccessExpression(System.String)'.
    

    I did some digging around on google and you usually get it when site is built as .net45 but server does not have .net45. In this instance the site is definately built as .net4, the server does not have 45 and I cannot install 4.5 becuase its win2k3 and that is not supported. I have installed asp.netmvc4 which was missing and was giving me some other ysods. However this current error still persists. Anyone else seen this before?

    Regards

    Ismail

  • Lars-Erik Aabech 350 posts 1102 karma points MVP 8x c-trib
    Nov 14, 2013 @ 12:21
    Lars-Erik Aabech
    0

    Shot in the dark: I've had some issues with the 4.5 version of HtmlAgilityPack being referenced by the nuget package. Have to manually set reference path to 4.0.

    Might be that one. Try copying the 4.0 version to the bin folder and see if it helps.

  • Ismail Mayat 4511 posts 10092 karma points MVP 2x admin c-trib
    Nov 14, 2013 @ 12:24
    Ismail Mayat
    0

    Lars,

    Did you download and build html agility source or did you take a copy from older umbraco version say 4.7?

    Regards

    Ismail

  • Lars-Erik Aabech 350 posts 1102 karma points MVP 8x c-trib
    Nov 14, 2013 @ 12:25
    Lars-Erik Aabech
    0

    It's in solution root\packages\htmlagilitypack\lib\net40 if you use the umbraco nuget package.

  • Ismail Mayat 4511 posts 10092 karma points MVP 2x admin c-trib
    Nov 14, 2013 @ 12:26
    Ismail Mayat
    0

    Lars,

    Ignore last question. I just double checked solution it is definately referening the .net4 version, however I will specifically upload the vesrion to the site see if it fixes the issue. If not I will also look at some of other packages see if one of those is causing the issue.

    Cheers

    Ismail

  • Lars-Erik Aabech 350 posts 1102 karma points MVP 8x c-trib
    Nov 14, 2013 @ 12:28
    Lars-Erik Aabech
    0

    Good luck. :) Compare your bin folder to the reference list. If it's 4.5 it just isn't copied on build.

  • Ismail Mayat 4511 posts 10092 karma points MVP 2x admin c-trib
    Nov 14, 2013 @ 12:36
    Ismail Mayat
    0

    No joy, it looks call is being from AspNet.ScriptManager.jQuery.UI.Combined I have no idea which assembly that is so if i can find it then replace it with 4.0 version that should fix the issue.

    Regards

    Ismail

  • Lars-Erik Aabech 350 posts 1102 karma points MVP 8x c-trib
    Nov 14, 2013 @ 12:46
    Lars-Erik Aabech
    0

    Researched a bit. That particular property is in System.Web.Extensions.dll, and it's introduced in 4.5.
    Particual property being LoadSuccessExpression.

    (Guess who's got both 4.0 and 4.5 solutions open)

     

  • Ismail Mayat 4511 posts 10092 karma points MVP 2x admin c-trib
    Nov 14, 2013 @ 12:51
    Ismail Mayat
    0

    Lars,

    In my solution i am referencing 4.0 version from the gac so not sure why it thinks its 4.5?

    Regards

    Ismail

  • Lars-Erik Aabech 350 posts 1102 karma points MVP 8x c-trib
    Nov 14, 2013 @ 12:54
    Lars-Erik Aabech
    0

    web.config

    compilation\assemblies\add assembly system.web.extensions version 4.0?

    runtime\assemblybinding\dependentassembly\assemblyidentity system.web.extensions .. newVersion 4.0?

    You could always just set copy local = true too. :)

  • Ismail Mayat 4511 posts 10092 karma points MVP 2x admin c-trib
    Nov 14, 2013 @ 13:03
    Ismail Mayat
    0

    Lars,

    I have set to local=true and uploaded the dll i now get

    Could not load type 'System.Runtime.CompilerServices.ExtensionAttribute' from assembly 'mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089'.

    Arghgghhghgh!!!

    Cheers

    Isamil

  • Lars-Erik Aabech 350 posts 1102 karma points MVP 8x c-trib
    Nov 14, 2013 @ 13:07
    Lars-Erik Aabech
    1

    Hehe, no wonder, since that too was introduced in 4.5. :)

    What I do to find out is to have one 4.0 solution and one 4.5 solution open, use Object Browser to search for and look at the classes you get exceptions from. 
    If you step up the hierarchy from the class, you'll find the assembly messing with you.

    But it seems like you've got the project set up wrong or did one-too-many copy.
    Maybe just remove all nuget packages, make sure to have 4.0 set on (all) project(s) and then reinstall packages?
    (Just leave the Umbraco config stuff alone)

  • Ismail Mayat 4511 posts 10092 karma points MVP 2x admin c-trib
    Nov 14, 2013 @ 14:15
    Ismail Mayat
    0

    Lars,

    Ok fixed. So i cleared out the bin on live. Next cleaned out the bin locally, then did full rebuild and then pushed that up. Its now working woohoo!!1

    Many thanks for you help.

    Regards

    Ismail

  • Lars-Erik Aabech 350 posts 1102 karma points MVP 8x c-trib
    Nov 14, 2013 @ 14:16
    Lars-Erik Aabech
    0

    Great. :) I never dear cleaning the bin folder of Umbraco, but it sounds like it's been improved.

Please Sign in or register to post replies

Write your reply to:

Draft