EPiServer.ChangeApproval 1.0.1
EPiServer.ChangeApproval 1.0.2
Mar 20, 2018
Oct 19, 2018
Closed, Fixed and tested
Steps to reproduce
Precondition: EPiServer.ChangeApproval 1.0.1 package has dependency range on EPiServer.CMS.UI version up to 12.0.0
1. Create an Alloy (MVC/WF) site of CMS 11x.
2. Install EPiServer.ChangeApproval (or upgrade Alloy site of EPiServer.ChangeApproval + CMS 10x to CMS 11x)
--> no error at installing packages.
3. Rebuild the project --> no compilation error.
4. Restart the site.
Expected:
Prevent exception by having a limited package dependency range of EPiServer.ChangeApproval to EPiServer.CMS.Core/UI <11.0.0.
Actual:
Server error below.
Observed: No dependency conflicts when installing EPiServer.ChangeApproval that has dependency range to EPiServer.CMS.UI <11.0.0.
Server error:
[InitializationException: While loading .NET types from "EPiServer.ChangeApproval.UI" the following error(s) was reported: - System.TypeLoadException: Could not load type 'EPiServer.Framework.IInitializableHttpModule' from assembly 'EPiServer.Framework, Version=11.5.0.0, Culture=neutral, PublicKeyToken=8fe83dea738b45b7'. - System.TypeLoadException: Could not load type 'EPiServer.Web.Hosting.VirtualPathMappedProvider' from assembly 'EPiServer.Framework, Version=11.5.0.0, Culture=neutral, PublicKeyToken=8fe83dea738b45b7'. ] EPiServer.Framework.Initialization.Internal.InitializationExceptionHelper.ThrowFriendlyTypeScannerException(IEnumerable`1 reflectionExceptions, IEnumerable`1 addonsWithErrors) +95 EPiServer.Framework.Initialization.InitializationModule.EngineExecute(HostType hostType, Action`1 engineAction) +794 EPiServer.Framework.Initialization.InitializationModule.FrameworkInitialization(HostType hostType) +170 EPiServer.Global..ctor() +76 mvc3451.EPiServerApplication..ctor() +42 ASP.global_asax..ctor() in c:\Windows\Microsoft.NET\Framework\v4.0.30319\Temporary ASP.NET Files\vs\aa306e02\19c8004\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) +119 System.RuntimeType.CreateInstanceDefaultCtor(Boolean publicOnly, Boolean skipCheckThis, Boolean fillCache, StackCrawlMark& stackMark) +247 System.Activator.CreateInstance(Type type, Boolean nonPublic) +83 System.RuntimeType.CreateInstanceImpl(BindingFlags bindingAttr, Binder binder, Object[] args, CultureInfo culture, Object[] activationAttributes, StackCrawlMark& stackMark) +1127 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) +260 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) +10042604 System.Web.HttpRuntime.EnsureFirstRequestInit(HttpContext context) +95 System.Web.HttpRuntime.ProcessRequestNotificationPrivate(IIS7WorkerRequest wr, HttpContext context) +254