Copied to clipboard

Flag this post as spam?

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


  • Kevin Lawrence 183 posts 350 karma points
    Apr 04, 2014 @ 10:53
    Kevin Lawrence
    0

    Does v3.0.20 require .Net 4.5?

    Unfortunatley we are still on XP, and therefore dont' have 4.5 installed.

    I'm getting some compiler runtime errors and I was wondering if 3.0.20 requires .Net 4.5?

    Thanks

  • Jan Skovgaard 11280 posts 23678 karma points MVP 10x admin c-trib
    Apr 04, 2014 @ 11:04
    Jan Skovgaard
    0

    Hi Kevin

    From the package page it says .NET 4.0

    Could you post the errors you get?

    And what version of Umbraco are you using?

    /Jan

  • Kevin Lawrence 183 posts 350 karma points
    Apr 04, 2014 @ 11:10
    Kevin Lawrence
    0

    Hi Jan, here is the error (it's on Umbraco 6.1.6), I can't help but think Contour has been compiled against 4.5 instead of 4.0...:

    Server Error in '/' Application.


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

    Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

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

    Source Error:

    Line 60: <body id="umbracoMainPageBody">
    Line 61:     <form id="Form1" method="post" runat="server" style="margin: 0px; padding: 0px">
    Line 62: <asp:ScriptManager runat="server" ID="umbracoScriptManager" ScriptMode="Release"> Line 63:         <CompositeScript ScriptMode="Release">
    Line 64:             <Scripts>


    Source File: c:\dev\cornwall-web\code\Cornwall.Web\umbraco\umbraco.aspx    Line: 62

    Stack Trace:

    [TypeLoadException: Could not load type 'System.Runtime.CompilerServices.ExtensionAttribute' from assembly 'mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089'.]
       System.ModuleHandle.ResolveType(RuntimeModule module, Int32 typeToken, IntPtr* typeInstArgs, Int32 typeInstCount, IntPtr* methodInstArgs, Int32 methodInstCount, ObjectHandleOnStack type) +0
       System.ModuleHandle.ResolveTypeHandleInternal(RuntimeModule module, Int32 typeToken, RuntimeTypeHandle[] typeInstantiationContext, RuntimeTypeHandle[] methodInstantiationContext) +180
       System.Reflection.RuntimeModule.ResolveType(Int32 metadataToken, Type[] genericTypeArguments, Type[] genericMethodArguments) +192
       System.Reflection.CustomAttribute.FilterCustomAttributeRecord(CustomAttributeRecord caRecord, MetadataImport scope, Assembly& lastAptcaOkAssembly, RuntimeModule decoratedModule, MetadataToken decoratedToken, RuntimeType attributeFilterType, Boolean mustBeInheritable, Object[] attributes, IList derivedAttributes, RuntimeType& attributeType, IRuntimeMethodInfo& ctor, Boolean& ctorHasParameters, Boolean& isVarArg) +115
       System.Reflection.CustomAttribute.GetCustomAttributes(RuntimeModule decoratedModule, Int32 decoratedMetadataToken, Int32 pcaCount, RuntimeType attributeFilterType, Boolean mustBeInheritable, IList derivedAttributes, Boolean isDecoratedTargetSecurityTransparent) +426
       System.Reflection.CustomAttribute.GetCustomAttributes(RuntimeAssembly assembly, RuntimeType caType) +103
       System.Reflection.RuntimeAssembly.GetCustomAttributes(Boolean inherit) +33
       System.Web.UI.AssemblyCache.GetAjaxFrameworkAssemblyAttribute(Assembly assembly) +76
       System.Web.UI.ScriptManager.get_DefaultAjaxFrameworkAssembly() +399
       System.Web.UI.ScriptManager..ctor() +26
       ASP.umbraco_umbraco_aspx.__BuildControlumbracoScriptManager() in c:\dev\cornwall-web\code\Cornwall.Web\umbraco\umbraco.aspx:62
       ASP.umbraco_umbraco_aspx.__BuildControlForm1() in c:\dev\cornwall-web\code\Cornwall.Web\umbraco\umbraco.aspx:61
       ASP.umbraco_umbraco_aspx.__BuildControlTree(umbraco_umbraco_aspx __ctrl) in c:\dev\cornwall-web\code\Cornwall.Web\umbraco\umbraco.aspx:1
       ASP.umbraco_umbraco_aspx.FrameworkInitialize() in c:\Documents and Settings\klawrence\Local Settings\Temp\Temporary ASP.NET Files\root\0eb21594\cb0e4bcf\App_Web_umbraco.aspx.5f2dec3.357kwg5e.0.cs:0
       System.Web.UI.Page.ProcessRequest(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +54
       System.Web.UI.Page.ProcessRequest() +78
       System.Web.UI.Page.ProcessRequestWithNoAssert(HttpContext context) +21
       System.Web.UI.Page.ProcessRequest(HttpContext context) +49
       ASP.umbraco_umbraco_aspx.ProcessRequest(HttpContext context) in c:\Documents and Settings\klawrence\Local Settings\Temp\Temporary ASP.NET Files\root\0eb21594\cb0e4bcf\App_Web_umbraco.aspx.5f2dec3.357kwg5e.0.cs:0
       System.Web.HttpServerUtility.ExecuteInternal(IHttpHandler handler, TextWriter writer, Boolean preserveForm, Boolean setPreviousPage, VirtualPath path, VirtualPath filePath, String physPath, Exception error, String queryStringOverride) +1222
    
    [HttpException (0x80004005): Error executing child request for umbraco.aspx.]
       System.Web.HttpServerUtility.ExecuteInternal(IHttpHandler handler, TextWriter writer, Boolean preserveForm, Boolean setPreviousPage, VirtualPath path, VirtualPath filePath, String physPath, Exception error, String queryStringOverride) +3094962
       System.Web.HttpServerUtility.Execute(String path, TextWriter writer, Boolean preserveForm) +851
       System.Web.HttpServerUtility.Transfer(String path, Boolean preserveForm) +57
       System.Web.HttpServerUtility.Transfer(String path) +32
       umbraco._Default.Page_Load(Object sender, EventArgs e) +52
       System.Web.Util.CalliHelper.EventArgFunctionCaller(IntPtr fp, Object o, Object t, EventArgs e) +14
       System.Web.Util.CalliEventHandlerDelegateProxy.Callback(Object sender, EventArgs e) +35
       System.Web.UI.Control.OnLoad(EventArgs e) +91
       System.Web.UI.Control.LoadRecursive() +74
       System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +2207
    



    Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.0.30319.1022

  • Kevin Lawrence 183 posts 350 karma points
    Apr 08, 2014 @ 11:32
    Kevin Lawrence
    0

    Any ideas on this one? I'm kind of stuffed until I resolve it.

    Thanks

    Kev

  • Patrik Wanche 11 posts 51 karma points
    Oct 01, 2014 @ 07:15
    Patrik Wanche
    0

    Hi Kevin,

    Did you solve this? I've got the same problem after upgrading to Umbraco 6.2.1 and Contour 3.0.21. My hosting provider only allows .Net 4.0. When running on my local laptop with .Net 4.5 installed it works fine...

    /Patrik

  • Kevin Lawrence 183 posts 350 karma points
    Oct 02, 2014 @ 16:48
    Kevin Lawrence
    0

    Hi Patrik

    Yes I think I did, remove the Umbraco.Forms.Core.Providers.V7.dll assembly, I think that was the issue.

    Cheers

    Kev

  • Patrik Wanche 11 posts 51 karma points
    Oct 03, 2014 @ 09:50
    Patrik Wanche
    0

    Thank you Kev,

    Unfortunately I've already removed the V7.dll assemblies. I need to investigate if there is other dll's causing this, but kind of stuck right now...

    /Patrik

  • Kevin Lawrence 183 posts 350 karma points
    Oct 03, 2014 @ 12:15
    Kevin Lawrence
    0

    Patrik

    Do you get the same exception?  Might be worth removing the Contour dll's completely to see if you still get it, keep removing the dlls until the error subsides.

    Cheers

    Kev

  • Patrik Wanche 11 posts 51 karma points
    Oct 06, 2014 @ 07:21
    Patrik Wanche
    0

    Kev,

    Yes, it's the same exception, see below. I followed your suggestion (thank's!) and found out that it is Umbraco.Forms.References.dll causing the exception. As soon as I remove it, the exception is gone.

    Line 38: <body id="umbracoMainPageBody">
    Line 39:     <form id="Form1" method="post" runat="server" style="margin: 0px; padding: 0px">
    Line 40:     <asp:ScriptManager runat="server" ID="umbracoScriptManager" ScriptMode="Release">
    Line 41:         <CompositeScript ScriptMode="Release">
    Line 42:             <Scripts>
    

    exception

    [TypeLoadException: Could not load type 'System.Runtime.CompilerServices.ExtensionAttribute' from assembly 'mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089'.]
           System.ModuleHandle.ResolveType(RuntimeModule module, Int32 typeToken, IntPtr* typeInstArgs, Int32 typeInstCount, IntPtr* methodInstArgs, Int32 methodInstCount, ObjectHandleOnStack type) +0
           System.ModuleHandle.ResolveTypeHandleInternal(RuntimeModule module, Int32 typeToken, RuntimeTypeHandle[] typeInstantiationContext, RuntimeTypeHandle[] methodInstantiationContext) +180
           System.Reflection.RuntimeModule.ResolveType(Int32 metadataToken, Type[] genericTypeArguments, Type[] genericMethodArguments) +192
           System.Reflection.CustomAttribute.FilterCustomAttributeRecord(CustomAttributeRecord caRecord, MetadataImport scope, Assembly& lastAptcaOkAssembly, RuntimeModule decoratedModule, MetadataToken decoratedToken, RuntimeType attributeFilterType, Boolean mustBeInheritable, Object[] attributes, IList derivedAttributes, RuntimeType& attributeType, IRuntimeMethodInfo& ctor, Boolean& ctorHasParameters, Boolean& isVarArg) +115
           System.Reflection.CustomAttribute.GetCustomAttributes(RuntimeModule decoratedModule, Int32 decoratedMetadataToken, Int32 pcaCount, RuntimeType attributeFilterType, Boolean mustBeInheritable, IList derivedAttributes, Boolean isDecoratedTargetSecurityTransparent) +426
           System.Reflection.CustomAttribute.GetCustomAttributes(RuntimeAssembly assembly, RuntimeType caType) +103
           System.Reflection.RuntimeAssembly.GetCustomAttributes(Boolean inherit) +33
           System.Web.UI.AssemblyCache.GetAjaxFrameworkAssemblyAttribute(Assembly assembly) +76
           System.Web.UI.ScriptManager.get_DefaultAjaxFrameworkAssembly() +399
           System.Web.UI.ScriptManager..ctor() +26
           ASP.umbraco_umbraco_aspx.__BuildControlumbracoScriptManager() in d:\hshome\imk15\testumb.immanuelskyrkan.net\umbraco\umbraco.aspx:40
           ASP.umbraco_umbraco_aspx.__BuildControlForm1() in d:\hshome\imk15\testumb.immanuelskyrkan.net\umbraco\umbraco.aspx:39
           ASP.umbraco_umbraco_aspx.__BuildControlTree(umbraco_umbraco_aspx __ctrl) in d:\hshome\imk15\testumb.immanuelskyrkan.net\umbraco\umbraco.aspx:1
           ASP.umbraco_umbraco_aspx.FrameworkInitialize() in c:\Windows\Microsoft.NET\Framework\v4.0.30319\Temporary ASP.NET Files\root\ff8e5ab2\628a80b\App_Web_umbraco.aspx.5f2dec3.hxbmhzlg.0.cs:0
           System.Web.UI.Page.ProcessRequest(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +54
           System.Web.UI.Page.ProcessRequest() +78
           System.Web.UI.Page.ProcessRequestWithNoAssert(HttpContext context) +21
           System.Web.UI.Page.ProcessRequest(HttpContext context) +49
           ASP.umbraco_umbraco_aspx.ProcessRequest(HttpContext context) in c:\Windows\Microsoft.NET\Framework\v4.0.30319\Temporary ASP.NET Files\root\ff8e5ab2\628a80b\App_Web_umbraco.aspx.5f2dec3.hxbmhzlg.0.cs:0
           System.Web.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +100
           System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +75
    

    /Patrik

Please Sign in or register to post replies

Write your reply to:

Draft