We're trying to upgrade an EPiServer 7 CMS instance to patch 1, but are running into some assembly binding problems.
I've installed the new NuGet packages for EPiServer.Core, EPiServer.CommonFramework, EPiServer.Framework and EPiServer.Mail, and followed the find/replace instructions here.
When I rebuild and start a clean Alloy test site I get some assembly loading problems from NHibernate and/or Castle, long stack trace below. I tried installing newer NHibernate and Castle via NuGet, but that just caused more problems as they are the wrong versions for the rest of the code.
We're at the start of a project, so could easily reinstall the whole EPiServer instance with a patched installer if that is the best approach. Thanks!
[ReflectionTypeLoadException: Unable to load one or more of the requested types. The following information may be a subset of the Type/LoaderException information present - inspect with debugger for complete view. Check assemblies [NHibernate, Version=1.2.0.4000, Culture=neutral, PublicKeyToken=aa95f207798dfdb4] and/or types [NHibernate.Util.AssemblyQualifiedTypeName, NHibernate.Tuple.Property, NHibernate.Persister.Entity.IUniqueKeyLoadable, NHibernate.Persister.Entity.IEntityPersister, NHibernate.Persister.Entity.ILoadable, NHibernate.Persister.Entity.ISqlLoadable, NHibernate.Persister.Entity.IPropertyMapping, NHibernate.Persister.Entity.IJoinable, NHibernate.Persister.Collection.ICollectionPersister, NHibernate.Persister.Collection.IQueryableCollection, NHibernate.Persister.Collection.ISqlLoadableCollection, NHibernate.Loader.IEntityAliases, NHibernate.Loader.DefaultEntityAliases, NHibernate.HibernateException, NHibernate.MappingException, NHibernate.InvalidProxyTypeException, NHibernate.Hql.Util.SessionFactoryHelper, NHibernate.Hql.IQueryTranslator, NHibernate.Expression.ICriterion, NHibernate.Expression.AbstractCriterion]. Information from LoaderExceptions property [Could not load file or assembly 'Castle.DynamicProxy, Version=1.1.5.0, Culture=neutral, PublicKeyToken=407dd0808d44fbdc' or one of its dependencies. The system cannot find the file specified.].] EPiServer.Framework.Initialization.InitializationModule.Initialize(HostType hostType) +792 EPiServer.Framework.Initialization.InitializationModule.FrameworkInitialization(HostType hostType) +104 EPiServer.Global..ctor() +110 EPiServer.Templates.Alloy.Global..ctor() +40 ASP.global_asax..ctor() in c:\Windows\Microsoft.NET\Framework64\v4.0.30319\Temporary ASP.NET Files\root\b3630d7c\9cd5fe62\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) +14426381 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) +12880068 System.Web.HttpRuntime.EnsureFirstRequestInit(HttpContext context) +159 System.Web.HttpRuntime.ProcessRequestNotificationPrivate(IIS7WorkerRequest wr, HttpContext context) +12721257
Hi,
We're trying to upgrade an EPiServer 7 CMS instance to patch 1, but are running into some assembly binding problems.
I've installed the new NuGet packages for EPiServer.Core, EPiServer.CommonFramework, EPiServer.Framework and EPiServer.Mail, and followed the find/replace instructions here.
When I rebuild and start a clean Alloy test site I get some assembly loading problems from NHibernate and/or Castle, long stack trace below. I tried installing newer NHibernate and Castle via NuGet, but that just caused more problems as they are the wrong versions for the rest of the code.
We're at the start of a project, so could easily reinstall the whole EPiServer instance with a patched installer if that is the best approach. Thanks!
[ReflectionTypeLoadException: Unable to load one or more of the requested types. The following information may be a subset of the Type/LoaderException information present - inspect with debugger for complete view. Check assemblies [NHibernate, Version=1.2.0.4000, Culture=neutral, PublicKeyToken=aa95f207798dfdb4] and/or types [NHibernate.Util.AssemblyQualifiedTypeName, NHibernate.Tuple.Property, NHibernate.Persister.Entity.IUniqueKeyLoadable, NHibernate.Persister.Entity.IEntityPersister, NHibernate.Persister.Entity.ILoadable, NHibernate.Persister.Entity.ISqlLoadable, NHibernate.Persister.Entity.IPropertyMapping, NHibernate.Persister.Entity.IJoinable, NHibernate.Persister.Collection.ICollectionPersister, NHibernate.Persister.Collection.IQueryableCollection, NHibernate.Persister.Collection.ISqlLoadableCollection, NHibernate.Loader.IEntityAliases, NHibernate.Loader.DefaultEntityAliases, NHibernate.HibernateException, NHibernate.MappingException, NHibernate.InvalidProxyTypeException, NHibernate.Hql.Util.SessionFactoryHelper, NHibernate.Hql.IQueryTranslator, NHibernate.Expression.ICriterion, NHibernate.Expression.AbstractCriterion]. Information from LoaderExceptions property [Could not load file or assembly 'Castle.DynamicProxy, Version=1.1.5.0, Culture=neutral, PublicKeyToken=407dd0808d44fbdc' or one of its dependencies. The system cannot find the file specified.].] EPiServer.Framework.Initialization.InitializationModule.Initialize(HostType hostType) +792 EPiServer.Framework.Initialization.InitializationModule.FrameworkInitialization(HostType hostType) +104 EPiServer.Global..ctor() +110 EPiServer.Templates.Alloy.Global..ctor() +40 ASP.global_asax..ctor() in c:\Windows\Microsoft.NET\Framework64\v4.0.30319\Temporary ASP.NET Files\root\b3630d7c\9cd5fe62\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) +14426381 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) +12880068 System.Web.HttpRuntime.EnsureFirstRequestInit(HttpContext context) +159 System.Web.HttpRuntime.ProcessRequestNotificationPrivate(IIS7WorkerRequest wr, HttpContext context) +12721257