Virtual Happy Hour this month, Jun 28, we'll be getting a sneak preview at our soon to launch SaaS CMS!

Try our conversational search powered by Generative AI!

Upgrade error from 6R2 to 7.0

Vote:
 

Server Error in '/' Application.Could not load type 'EPiServer.Shell.InitializationModule' from assembly 'EPiServer.Shell, Version=6.2.267.1, Culture=neutral, PublicKeyToken=8fe83dea738b45b7'.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 'EPiServer.Shell.InitializationModule' from assembly 'EPiServer.Shell, Version=6.2.267.1, Culture=neutral, PublicKeyToken=8fe83dea738b45b7'.

Source Error: 

[No relevant source lines]


Source File: c:\Windows\Microsoft.NET\Framework64\v4.0.30319\Temporary ASP.NET Files\root\0a09daa4\2d581c07\App_global.asax.0.cs    Line: 0 

Stack Trace: 

[TypeLoadException: Could not load type 'EPiServer.Shell.InitializationModule' from assembly 'EPiServer.Shell, Version=6.2.267.1, Culture=neutral, PublicKeyToken=8fe83dea738b45b7'.]
   EPiServer.Framework.Initialization.InitializationEngine.SetupAssemblyTypeScanner() +948
   EPiServer.Framework.Initialization.InitializationEngine.ScanAssemblies() +21
   EPiServer.Framework.Initialization.InitializationModule.Initialize(HostType hostType) +291
   EPiServer.Framework.Initialization.InitializationModule.FrameworkInitialization(HostType hostType) +93
   EPiServer.Global..ctor() +102
   EPiServer.Templates.Global..ctor() +40
   ASP.global_asax..ctor() in c:\Windows\Microsoft.NET\Framework64\v4.0.30319\Temporary ASP.NET Files\root\0a09daa4\2d581c07\App_global.asax.0.cs:0

[TargetInvocationException: Exception has been thrown by the target of an invocation.]
   System.RuntimeTypeHandle.CreateInstance(RuntimeType type, Boolean publicOnly, Boolean noCheck, Boolean& canBeCached, RuntimeMethodHandleInternal& ctor, Boolean& bNeedSecurityCheck) +0
   System.RuntimeType.CreateInstanceSlow(Boolean publicOnly, Boolean skipCheckThis, Boolean fillCache, StackCrawlMark& stackMark) +159
   System.RuntimeType.CreateInstanceDefaultCtor(Boolean publicOnly, Boolean skipCheckThis, Boolean fillCache, StackCrawlMark& stackMark) +256
   System.Activator.CreateInstance(Type type, Boolean nonPublic) +127
   System.RuntimeType.CreateInstanceImpl(BindingFlags bindingAttr, Binder binder, Object[] args, CultureInfo culture, Object[] activationAttributes, StackCrawlMark& stackMark) +14259449
   System.Activator.CreateInstance(Type type, BindingFlags bindingAttr, Binder binder, Object[] args, CultureInfo culture, Object[] activationAttributes) +200
   System.Activator.CreateInstance(Type type, BindingFlags bindingAttr, Binder binder, Object[] args, CultureInfo culture) +28
   System.Web.HttpRuntime.CreateNonPublicInstance(Type type, Object[] args) +83
   System.Web.HttpApplicationFactory.GetSpecialApplicationInstance(IntPtr appContext, HttpContext context) +312
   System.Web.Hosting.PipelineRuntime.InitializeApplication(IntPtr appContext) +475

[HttpException (0x80004005): Exception has been thrown by the target of an invocation.]
   System.Web.HttpRuntime.FirstRequestInit(HttpContext context) +12968244
   System.Web.HttpRuntime.EnsureFirstRequestInit(HttpContext context) +159
   System.Web.HttpRuntime.ProcessRequestNotificationPrivate(IIS7WorkerRequest wr, HttpContext context) +12807949
#87521
Jun 16, 2014 13:07
Vote:
 

Quite tricky to give a reply without having access to your solution but I would start investigating the following:

Are all your EPiServer assemblies in the bin-folder correct version?

Does your Visual Studio solution refer to the correct versions? (adding EPiServer through Nuget use to be the simplest way to keep track on versions)

Does your web.config have any assembly bindings that lead to the wrong versions?

#87609
Jun 18, 2014 9:12
Vote:
 

Thanks for your reply.I have upgraded to 7 when upgrading to 7.5 in the step Install EPiServer.CMS.Core i am getting error saying that Install failed. Rolling back
Failed to add reference to System.core. Please make sure that it is the GAC. Any idea how could i resolve this.

#87628
Jun 18, 2014 13:25
Vote:
 

System.Core is a .NET assembly so make sure you have installed the correct version of .NET framework on you dev machine. Check under project properties which version the EPiServer solution uses (or in web.config)

Also turn on full log4net logging for EPiServer to give you more information about what fails...

#87633
Jun 18, 2014 13:57
This thread is locked and should be used for reference only. Please use the Episerver CMS 7 and earlier versions forum to open new discussions.
* You are NOT allowed to include any hyperlinks in the post because your account hasn't associated to your company. User profile should be updated.