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?
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.
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.
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.
Researched a bit. That particular property is in System.Web.Extensions.dll, and it's introduced in 4.5. Particual property being LoadSuccessExpression.
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'.
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)
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:
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
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.
Lars,
Did you download and build html agility source or did you take a copy from older umbraco version say 4.7?
Regards
Ismail
It's in solution root\packages\htmlagilitypack\lib\net40 if you use the umbraco nuget package.
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
Good luck. :) Compare your bin folder to the reference list. If it's 4.5 it just isn't copied on build.
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
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)
Lars,
In my solution i am referencing 4.0 version from the gac so not sure why it thinks its 4.5?
Regards
Ismail
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. :)
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
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)
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
Great. :) I never dear cleaning the bin folder of Umbraco, but it sounds like it's been improved.
is working on a reply...