Cannot resolve dependencies for the following module(s) PageTypeBuilder.Initializer

 
After an upgrade from EPiServer 5 to EpiServer 6 R2 and adding PageTypeBuilder-dll's I get the following error:

Cannot resolve dependencies for the following module(s) PageTypeBuilder.Initializer 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.InvalidOperationException: Cannot resolve dependencies for the following module(s) PageTypeBuilder.Initializer Source Error: [No relevant source lines] Source File: c:\WINDOWS\Microsoft.NET\Framework\v4.0.30319\Temporary ASP.NET Files\root\87acb86c\7104e381\App_global.asax.ri5bc7qn.0.cs Line: 0 Stack Trace:

    

[InvalidOperationException: Cannot resolve dependencies for the following module(s) 
PageTypeBuilder.Initializer]
   EPiServer.Framework.Initialization.InitializationEngine.CreateDependencySortedModules(IEnumerable`1 modules) +312
   EPiServer.Framework.Initialization.InitializationEngine.Initialize(HostType hostType) +37
   EPiServer.Framework.Initialization.InitializationModule.Initialize(HostType hostType) +163
   EPiServer.Framework.Initialization.InitializationModule.FrameworkInitialization(HostType hostType) +68
   EPiServer.Global..ctor() +54
   ASP.global_asax..ctor() in c:\WINDOWS\Microsoft.NET\Framework\v4.0.30319\Temporary ASP.NET Files\root\87acb86c\7104e381\App_global.asax.ri5bc7qn.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) +98
   System.RuntimeType.CreateInstanceDefaultCtor(Boolean publicOnly, Boolean skipVisibilityChecks, Boolean skipCheckThis, Boolean fillCache) +241
   System.Activator.CreateInstance(Type type, Boolean nonPublic) +69
   System.RuntimeType.CreateInstanceImpl(BindingFlags bindingAttr, Binder binder, Object[] args, CultureInfo culture, Object[] activationAttributes) +1136
   System.Activator.CreateInstance(Type type, BindingFlags bindingAttr, Binder binder, Object[] args, CultureInfo culture, Object[] activationAttributes) +111
   System.Activator.CreateInstance(Type type, BindingFlags bindingAttr, Binder binder, Object[] args, CultureInfo culture) +23
   System.Web.HttpRuntime.CreateNonPublicInstance(Type type, Object[] args) +60
   System.Web.HttpApplicationFactory.GetNormalApplicationInstance(HttpContext context) +227
   System.Web.HttpApplicationFactory.GetApplicationInstance(HttpContext context) +107
   System.Web.HttpRuntime.ProcessRequestInternal(HttpWorkerRequest wr) +327
#65741 Feb 07, 2013 11:54
  • Andreas Nicolaisen
    Member since: 2006
     

    Could this be the same problem (It seems that you are using .net 4): http://world.episerver.com/Modules/Forum/Pages/thread.aspx?id=49933

    #65744 Feb 07, 2013 12:14
  • Daniel Ovaska
    Member since: 2005
     

    Check that you have the correct version of pagetypebuilder for EPi 6. If you upgraded EPi to v6 you will need to upgrade PTB as well if you haven't done that.

    #65770 Feb 08, 2013 10:02