Try our conversational search powered by Generative AI!

Error after upgrade - Method 'get_PackageSaveMode' in type 'EPiServer.Packaging.Repositories.VirtualPackageRepository' does not have an implementation.

Vote:
 

After upgrading to 9.6.1 I got a problem. Anyone who bumped to same problem?

Server Error in '/' Application.

Method 'get_PackageSaveMode' in type 'EPiServer.Packaging.Repositories.VirtualPackageRepository' from assembly 'EPiServer.Packaging, Version=3.2.3.0, Culture=neutral, PublicKeyToken=8fe83dea738b45b7' does not have an implementation.

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: Method 'get_PackageSaveMode' in type 'EPiServer.Packaging.Repositories.VirtualPackageRepository' from assembly 'EPiServer.Packaging, Version=3.2.3.0, Culture=neutral, PublicKeyToken=8fe83dea738b45b7' does not have an implementation.

Source Error: 

[No relevant source lines]


Source File: c:\Users\username\AppData\Local\Temp\Temporary ASP.NET Files\vs\1c1140d3\bf279665\App_global.asax.0.cs    Line: 0 

Stack Trace: 

[TypeLoadException: Method 'get_PackageSaveMode' in type 'EPiServer.Packaging.Repositories.VirtualPackageRepository' from assembly 'EPiServer.Packaging, Version=3.2.3.0, Culture=neutral, PublicKeyToken=8fe83dea738b45b7' does not have an implementation.]
   EPiServer.Packaging.PackagingInitialization.b__0(ConfigurationExpression ce) +0
   StructureMap.PipelineGraph.Configure(Action`1 configure) in c:\BuildAgent\work\a395dbde6b793293\src\StructureMap\PipelineGraph.cs:153
   StructureMap.Container.Configure(Action`1 configure) in c:\BuildAgent\work\a395dbde6b793293\src\StructureMap\Container.cs:388
   EPiServer.Packaging.PackagingInitialization.ConfigureContainer(ServiceConfigurationContext context) +112
   EPiServer.Framework.Initialization.<>c__DisplayClass5_0.b__0() +30
   EPiServer.Framework.Initialization.ModuleNode.Execute(Action a, String key) +60
   EPiServer.Framework.Initialization.ModuleNode.ConfigureContainer(ServiceConfigurationContext context) +130
   EPiServer.Framework.Initialization.InitializationEngine.ConfigureContainer(HostType hostType) +210
   EPiServer.Framework.Initialization.InitializationEngine.ExecuteTransition(Boolean continueTransitions) +121
   EPiServer.Framework.Initialization.InitializationEngine.Initialize() +48
   EPiServer.Framework.Initialization.<>c.b__7_0(InitializationEngine e) +25
   EPiServer.Framework.Initialization.InitializationModule.EngineExecute(HostType hostType, Action`1 engineAction) +200
   EPiServer.Framework.Initialization.InitializationModule.FrameworkInitialization(HostType hostType) +144
   EPiServer.Global..ctor() +76
   SiteWeb.MvcApplication..ctor() +41
   ASP.global_asax..ctor() in c:\Users\username\AppData\Local\Temp\Temporary ASP.NET Files\vs\1c1140d3\bf279665\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) +113
   System.RuntimeType.CreateInstanceDefaultCtor(Boolean publicOnly, Boolean skipCheckThis, Boolean fillCache, StackCrawlMark& stackMark) +206
   System.Activator.CreateInstance(Type type, Boolean nonPublic) +83
   System.RuntimeType.CreateInstanceImpl(BindingFlags bindingAttr, Binder binder, Object[] args, CultureInfo culture, Object[] activationAttributes, StackCrawlMark& stackMark) +1065
   System.Activator.CreateInstance(Type type, BindingFlags bindingAttr, Binder binder, Object[] args, CultureInfo culture, Object[] activationAttributes) +124
   System.Activator.CreateInstance(Type type, BindingFlags bindingAttr, Binder binder, Object[] args, CultureInfo culture) +20
   System.Web.HttpRuntime.CreateNonPublicInstance(Type type, Object[] args) +60
   System.Web.HttpApplicationFactory.GetSpecialApplicationInstance(IntPtr appContext, HttpContext context) +276
   System.Web.Hosting.PipelineRuntime.InitializeApplication(IntPtr appContext) +296

[HttpException (0x80004005): Exception has been thrown by the target of an invocation.]
   System.Web.HttpRuntime.FirstRequestInit(HttpContext context) +9947380
   System.Web.HttpRuntime.EnsureFirstRequestInit(HttpContext context) +101
   System.Web.HttpRuntime.ProcessRequestNotificationPrivate(IIS7WorkerRequest wr, HttpContext context) +261


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

#143796
Feb 01, 2016 12:45
Vote:
 

Hello Sandin,

I had this issue as-well, I seems that when you force installation with –IgnoreDependencies for EpiServer 9 you run into problems after build.

I solved this with Nuget PM via: Install-Package Microsoft.AspNet.Mvc -Version 5.2.3

This allowed me to go back to previous versions of the Dependencies files.

Microsoft ASP.NET MVC
Microsoft.AspNet.Razor
NuGet.Core

Also check your Microsoft ASP.NET Web Optimization file. Any way the above fixed my issue.

Hope this helps. GreenGiantGraphics

#144866
Feb 19, 2016 21:40
* 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.