Upgrading from 8.2 to 9

David Pearson asked on January 3, 2017 21:51

I upgraded the site via the site with Kentico Installation Manager 9.0. I went through the modified log file and merge those changes, and fix anything I saw in the Custom Code.

When I load the site after running the upgrade I get following error.
Method not found: 'Void CMS.DataEngine.Module..ctor(CMS.Core.ModuleMetadata)'.

at Line 25 InitApplication() in the Global.asax.cs

I am testing in IIS Express VS2015.

I see nothing in debug, and not sure which direction to go with this error. Someone point me the right direction...

more info:

[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.Activator.CreateInstance(Type type) +11

CMS.Core.<>c__DisplayClass2.

Correct Answer

Brenden Kehren answered on January 4, 2017 00:05

Did all of your files upgrade properly? Seems like maybe the Global.asax.cs didn't upgrade or some custom code? Did you build the site in Visual Studio after you made the changes? Could also be you need to clear out the temp files from IIS.

0 votesVote for this answer Unmark Correct answer

Recent Answers


David Pearson answered on January 10, 2017 19:17

Thanks Brenden. The site has a bunch of class libraries that is referencing on Kentico 8 DDL. I am updating each class library now, one at a time.

Will fix the custom libraries issues first to get the site running in version 9, than figure the best solution to decouple from the custom libraries.

0 votesVote for this answer Mark as a Correct answer

tib Dev answered on August 10, 2018 23:06

Hi, I have the same problem. Did you find the answer?... i have upgraded from 8.2 to 9. and also checked all custom code for errors. I have also cleared out the temporary iis files. rebuild without error. At this point i am quite lost on what to do.

0 votesVote for this answer Mark as a Correct answer

   Please, sign in to be able to submit a new answer.