I have recently run the upgrade tool on a Kentico 12 MVC site, to Kentico 13 MVC.
After installing the new libraries, removing the old libraries, clean and a build.
I am getting the following error:
Server Error in '/' Application.
Could not load type 'CMS.Routing.Web.RegisterHttpHandlerAttribute' from assembly 'CMS.Routing.Web, Version=13.0.13.0, Culture=neutral, PublicKeyToken=834b12a258f213f9'.
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: Could not load type 'CMS.Routing.Web.RegisterHttpHandlerAttribute' from assembly 'CMS.Routing.Web, Version=13.0.13.0, Culture=neutral, PublicKeyToken=834b12a258f213f9'.
Source Error:
An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.
Stack Trace:
[TypeLoadException: Could not load type 'CMS.Routing.Web.RegisterHttpHandlerAttribute' from assembly 'CMS.Routing.Web, Version=13.0.13.0, Culture=neutral, PublicKeyToken=834b12a258f213f9'.]
System.ModuleHandle.ResolveMethod(RuntimeModule module, Int32 methodToken, IntPtr* typeInstArgs, Int32 typeInstCount, IntPtr* methodInstArgs, Int32 methodInstCount) +0
System.ModuleHandle.ResolveMethodHandleInternalCore(RuntimeModule module, Int32 methodToken, IntPtr[] typeInstantiationContext, Int32 typeInstCount, IntPtr[] methodInstantiationContext, Int32 methodInstCount) +162
System.ModuleHandle.ResolveMethodHandleInternal(RuntimeModule module, Int32 methodToken, RuntimeTypeHandle[] typeInstantiationContext, RuntimeTypeHandle[] methodInstantiationContext) +96
System.Reflection.CustomAttributeData..ctor(RuntimeModule scope, CustomAttributeRecord caRecord) +79
System.Reflection.CustomAttributeData.GetCustomAttributes(RuntimeModule module, Int32 tkTarget) +119
System.Reflection.CustomAttributeData.GetCustomAttributesInternal(RuntimeAssembly target) +83
CMS.Core.AssemblyDiscovery.IsAssemblyDiscoverable(Assembly assembly) +19
CMS.Core.AssemblyDiscovery.AddOnlyDiscoverableAssembly(ICollection1 assemblies, Dictionary
2 preloadedAssemblies, AssemblyName assemblyName, String filePath) +72
CMS.Core.AssemblyDiscovery.ExecuteGetAssemblies(Boolean onlyDiscoverable) +1168
CMS.Core.AssemblyDiscovery.get_DiscoverableAssemblies() +31
CMS.Core.AssemblyDiscoveryHelper.GetAssemblies(Boolean discoverableOnly) +75
CMS.Core.ModuleDiscovery.GetModules() +99
CMS.Core.ModuleEntryManager.GetDiscoverableModules() +29
CMS.Core.ModuleEntryManager.ModuleCollectionsInitialization() +132
CMS.Core.ModuleEntryManager.PreInit() +21
CMS.Core.AppCore.PreInit() +133
CMS.DataEngine.CMSApplication.PreInit(Boolean initializeContainer) +127
Kentico.Web.Mvc.ApplicationBootstrapper.Run() +130
[InvalidOperationException: The pre-application start initialization method Run on type Kentico.Web.Mvc.ApplicationBootstrapper threw an exception with the following error message: Could not load type 'CMS.Routing.Web.RegisterHttpHandlerAttribute' from assembly 'CMS.Routing.Web, Version=13.0.13.0, Culture=neutral, PublicKeyToken=834b12a258f213f9'..]
System.Web.Compilation.BuildManager.InvokePreStartInitMethodsCore(ICollection1 methods, Func
1 setHostingEnvironmentCultures) +919
System.Web.Compilation.BuildManager.InvokePreStartInitMethods(ICollection`1 methods) +169
System.Web.Compilation.BuildManager.CallPreStartInitMethods(String preStartInitListPath, Boolean& isRefAssemblyLoaded) +172
System.Web.Compilation.BuildManager.ExecutePreAppStart() +172
System.Web.Hosting.HostingEnvironment.Initialize(ApplicationManager appManager, IApplicationHost appHost, IConfigMapPathFactory configMapPathFactory, HostingEnvironmentParameters hostingParameters, PolicyLevel policyLevel, Exception appDomainCreationException) +854
[HttpException (0x80004005): The pre-application start initialization method Run on type Kentico.Web.Mvc.ApplicationBootstrapper threw an exception with the following error message: Could not load type 'CMS.Routing.Web.RegisterHttpHandlerAttribute' from assembly 'CMS.Routing.Web, Version=13.0.13.0, Culture=neutral, PublicKeyToken=834b12a258f213f9'..]
System.Web.HttpRuntime.FirstRequestInit(HttpContext context) +532
System.Web.HttpRuntime.EnsureFirstRequestInit(HttpContext context) +111
Any insight here would be helpful