Upgrade to CMS 9.12

Vote:
 

Hi, Trying to upgrade from cms 9.6.1 to 9.12 and commerce 9.9.0 to 9.19.1

Upgrading with package Manager Console every package one by one with -IgnoreDependencies (to make it work)

EPiServer.Commerce 9.9.0 -> 9.19.1
EPiServer.Commerce.Core 9.9.0 -> 9.19.1
EPiServer.CMS 9.6.1 -> 9.12.0
EPiServer.CMS.Core 9.6.1 -> 9.12.0
EPiServer.CMS.UI.Core 9.4.0 -> 9.8.3
EPiServer.CMS.UI 9.4.0 -> 9.8.3
EPiServer.Framework 9.6.1 -> 9.12.0
EPiServer.Packaging 3.2.3 -> 3.2.4
EPiServer.Packaging.UI 3.2.3 -> 3.2.4
DotNetZip 1.9.1.8 -> 1.10.1
EntityFramework 6.0.0 -> 6.1.3
AuthorizeNet 1.8.2 -> 1.8.10
HtmlAgilityPack 1.4.9.4 -> 1.4.9.5
log4net 2.0.3 till 2.0.5
Newtonsoft.Json 6.0.8 -> 9.0.1
NuGet.Core 2.5.0 -> 2.12.0
OctoPack 3.0.53 -> 3.0.71
Strathweb.CacheOutput.WebApi2 0.9.0 -> 0.0.10
structuremap 2.6.4.1 -> 4.3.0
structuremap.web-signed 3.1.6.186 -> 3.1.6.191
structuremap-signed 3.1.6.186 -> 3.1.6.191
EPiBootstrapArea 3.3.4 -> 3.3.5

When running i get this run time error on initialization and in deed when reflecting there is no method 'ExtractContents' in type 'EPiServer.Packaging.Packages.VirtualPackage' from assembly 'EPiServer.Packaging, Version=3.2.4.0'

Any Idea?

[InitializationException: While loading .NET types from "EPiServer.Packaging" the following error(s) was reported (limited to first 10 errors):

     - System.TypeLoadException: Method 'ExtractContents' in type 'EPiServer.Packaging.Packages.VirtualPackage' from assembly 'EPiServer.Packaging, Version=3.2.4.0, Culture=neutral, PublicKeyToken=8fe83dea738b45b7' does not have an implementation.
     - System.TypeLoadException: Method 'ExtractContents' in type 'EPiServer.Packaging.Packages.VirtualPackage' from assembly 'EPiServer.Packaging, Version=3.2.4.0, Culture=neutral, PublicKeyToken=8fe83dea738b45b7' does not have an implementation.
     - System.TypeLoadException: Method 'DeleteFiles' in type 'EPiServer.Packaging.ProjectSystem.SitePhysicalFileSystem' from assembly 'EPiServer.Packaging, Version=3.2.4.0, Culture=neutral, PublicKeyToken=8fe83dea738b45b7' does not have an implementation.
     - System.TypeLoadException: Method 'GetUpdates' in type 'EPiServer.Packaging.Repositories.DataServiceProxyRepository' from assembly 'EPiServer.Packaging, Version=3.2.4.0, Culture=neutral, PublicKeyToken=8fe83dea738b45b7' does not have an implementation.
     - System.TypeLoadException: Method 'OpenPackage' on type 'EPiServer.Packaging.Repositories.SafeSharedPackageRepository' from assembly 'EPiServer.Packaging, Version=3.2.4.0, Culture=neutral, PublicKeyToken=8fe83dea738b45b7' is overriding a method that is not visible from that assembly.
     - System.TypeLoadException: Method 'get_PackageSaveMode' in type 'EPiServer.Packaging.Repositories.VirtualPackageRepository' from assembly 'EPiServer.Packaging, Version=3.2.4.0, Culture=neutral, PublicKeyToken=8fe83dea738b45b7' does not have an implementation.
     - System.TypeLoadException: Method 'ExtractContents' in type 'EPiServer.Packaging.Packages.MetadataOnlyPackage' from assembly 'EPiServer.Packaging, Version=3.2.4.0, Culture=neutral, PublicKeyToken=8fe83dea738b45b7' does not have an implementation.
     - System.TypeLoadException: Method 'ExtractContents' in type 'EPiServer.Packaging.Packages.ModulePackage' from assembly 'EPiServer.Packaging, Version=3.2.4.0, Culture=neutral, PublicKeyToken=8fe83dea738b45b7' does not have an implementation.
     - System.TypeLoadException: Method 'ExtractContents' in type 'EPiServer.Packaging.Packages.MetadataOnlyPackage' from assembly 'EPiServer.Packaging, Version=3.2.4.0, Culture=neutral, PublicKeyToken=8fe83dea738b45b7' does not have an implementation.
     - System.TypeLoadException: Method 'get_PackageSaveMode' in type 'EPiServer.Packaging.Repositories.CachingRepository' from assembly 'EPiServer.Packaging, Version=3.2.4.0, Culture=neutral, PublicKeyToken=8fe83dea738b45b7' does not have an implementation.

]
   EPiServer.Framework.Initialization.Internal.InitializationExceptionHelper.ThrowFriendlyTypeScannerException(IEnumerable`1 reflectionExceptions, IEnumerable`1 addonsWithErrors) +114
   EPiServer.Framework.Initialization.InitializationModule.EngineExecute(HostType hostType, Action`1 engineAction) +1266
   EPiServer.Framework.Initialization.InitializationModule.FrameworkInitialization(HostType hostType) +230
   EPiServer.Global..ctor() +104
   Holmen.Externweb.Web.Global..ctor() +43
   ASP.global_asax..ctor() in c:\Windows\Microsoft.NET\Framework64\v4.0.30319\Temporary ASP.NET Files\root\429c8973\733d7f5d\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) +138
   System.Activator.CreateInstance(Type type, Boolean nonPublic) +105
   System.RuntimeType.CreateInstanceImpl(BindingFlags bindingAttr, Binder binder, Object[] args, CultureInfo culture, Object[] activationAttributes, StackCrawlMark& stackMark) +1481
   System.Activator.CreateInstance(Type type, BindingFlags bindingAttr, Binder binder, Object[] args, CultureInfo culture, Object[] activationAttributes) +191
   System.Activator.CreateInstance(Type type, BindingFlags bindingAttr, Binder binder, Object[] args, CultureInfo culture) +27
   System.Web.HttpRuntime.CreateNonPublicInstance(Type type, Object[] args) +82
   System.Web.HttpApplicationFactory.GetSpecialApplicationInstance(IntPtr appContext, HttpContext context) +300
   System.Web.Hosting.PipelineRuntime.InitializeApplication(IntPtr appContext) +343

[HttpException (0x80004005): Exception has been thrown by the target of an invocation.]
   System.Web.HttpRuntime.FirstRequestInit(HttpContext context) +579
   System.Web.HttpRuntime.EnsureFirstRequestInit(HttpContext context) +112
   System.Web.HttpRuntime.ProcessRequestNotificationPrivate(IIS7WorkerRequest wr, HttpContext context) +712
#151820
Aug 08, 2016 9:28
Vote:
 

Lowering the version av Nuget.Core seemed to do the trick for me.

update-package NuGet.Core -version 2.5.0 -ignoredependencies

EPiServer.Packaging.UI is dependent on NuGet.Core version 2.5.0 and nothing else.

#151857
Edited, Aug 09, 2016 9:34
Vote:
 

Thanks! Saved me lots of time probably :)

#158300
Sep 27, 2016 8:19
This topic was created over six months ago and has been resolved. If you have a similar question, please create a new topic and refer to this one.
* 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.