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>
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...
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.
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>
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
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
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:
Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.0.30319.1022
Any ideas on this one? I'm kind of stuffed until I resolve it.
Thanks
Kev
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
Hi Patrik
Yes I think I did, remove the Umbraco.Forms.Core.Providers.V7.dll assembly, I think that was the issue.
Cheers
Kev
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
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
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.
exception
/Patrik
is working on a reply...