Welcome Guest Search | Active Topics | Sign In | Register

Load Type error Options
Alex Fleming
Posted: Monday, January 14, 2008 2:59:06 AM
Rank: Newbie
Groups: Member

Joined: 8/8/2007
Posts: 9
Hi,

I get the following error when I copy my project files form my delvelopment pc to my live server. The project works fine on my development pc. Thanks.

Could not load type 'System.Runtime.CompilerServices.RuntimeCompatibilityAttribute' from assembly 'mscorlib, Version=2.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.RuntimeCompatibilityAttribute' from assembly 'mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089'.

Source Error:


Line 5: Sub Application_Start(ByVal sender As Object, ByVal e As EventArgs)
Line 6: ' Code that runs on application startup
Line 7: EO.Web.Runtime.AddLicense( _
Line 8: "yLPyF+uo7sKetZ9Zl6TNHuig5eUFIPGetfXo7tSfub0I+M194+vSFbaNwcjJ" + _
Line 9: "HfZ2tMDAHuig5eUFIPGetZGb566l4Of2GfKetZGbdePt9BDtrNzCnrWfWZek" + _


Source File: C:\Inetpub\wwwroot\MCC_Agenda_Test\global.asax Line: 7

Stack Trace:


[TypeLoadException: Could not load type 'System.Runtime.CompilerServices.RuntimeCompatibilityAttribute' from assembly 'mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089'.]
System.ModuleHandle.ResolveType(Int32 typeToken, RuntimeTypeHandle* typeInstArgs, Int32 typeInstCount, RuntimeTypeHandle* methodInstArgs, Int32 methodInstCount) +0
System.ModuleHandle.ResolveTypeHandle(Int32 typeToken, RuntimeTypeHandle[] typeInstantiationContext, RuntimeTypeHandle[] methodInstantiationContext) +86
System.Reflection.Module.ResolveType(Int32 metadataToken, Type[] genericTypeArguments, Type[] genericMethodArguments) +208
System.Reflection.CustomAttribute.FilterCustomAttributeRecord(CustomAttributeRecord caRecord, MetadataImport scope, Assembly& lastAptcaOkAssembly, Module decoratedModule, MetadataToken decoratedToken, RuntimeType attributeFilterType, Boolean mustBeInheritable, Object[] attributes, IList derivedAttributes, RuntimeType& attributeType, RuntimeMethodHandle& ctor, Boolean& ctorHasParameters, Boolean& isVarArg) +122
System.Reflection.CustomAttribute.GetCustomAttributes(Module decoratedModule, Int32 decoratedMetadataToken, Int32 pcaCount, RuntimeType attributeFilterType, Boolean mustBeInheritable, IList derivedAttributes) +413
System.Reflection.CustomAttribute.GetCustomAttributes(Assembly assembly, RuntimeType caType) +90
System.Reflection.Assembly.GetCustomAttributes(Type attributeType, Boolean inherit) +50
e.a(String A_0, Byte[] A_1, String A_2) +39
d..ctor(Type A_0, String A_1, String A_2, String A_3) +389
c.Invoke(Delegate A_0, Object[] A_1) +511
EO.Web.Internal.aq.a(a A_0, Boolean A_1) +473
EO.Web.Internal.aq.a(String A_0, Boolean A_1) +98
EO.Web.Internal.ha.a(Type A_0) +34
EO.Web.Internal.ha..cctor() +146

[TypeInitializationException: The type initializer for 'EO.Web.Internal.ha' threw an exception.]
EO.Web.Runtime.AddLicense(String license) +17
ASP.Global_asax.Application_Start(Object sender, EventArgs e) in C:\Inetpub\wwwroot\MCC_Agenda_Test\global.asax:7
EO.Web.WebControlBase..ctor(HtmlTextWriterTag tag, Type implType) +111
EO.Web.BaseNavigator..ctor() +44
EO.Web.TabStrip..ctor() +10
ASP.MasterPage_master.__BuildControlTabStrip1() in C:\Inetpub\wwwroot\MCC_Agenda_Test\MasterPage.master:18
ASP.MasterPage_master.__BuildControlform1() in C:\Inetpub\wwwroot\MCC_Agenda_Test\MasterPage.master:12
ASP.MasterPage_master.__BuildControlTree(MasterPage_master __ctrl) in C:\Inetpub\wwwroot\MCC_Agenda_Test\MasterPage.master:1
ASP.MasterPage_master.FrameworkInitialize() +37
System.Web.UI.UserControl.InitializeAsUserControlInternal() +31
System.Web.UI.MasterPage.CreateMaster(TemplateControl owner, HttpContext context, String masterPageFile, IDictionary contentTemplateCollection) +1958825
System.Web.UI.Page.get_Master() +48
System.Web.UI.Page.ApplyMasterPage() +15
System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +549





Version Information: Microsoft .NET Framework Version:2.0.50215.44; ASP.NET Version:2.0.50215.44
eo_support
Posted: Monday, January 14, 2008 5:27:53 AM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 24,217
Your server is running .NET 2.0 Beta 2, please update it to final .NET release version.
Alex Fleming
Posted: Wednesday, January 16, 2008 3:00:32 AM
Rank: Newbie
Groups: Member

Joined: 8/8/2007
Posts: 9
That worked. Thanks a million. Great support by the way!


You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.