AI OnAI Off
Hi
which version are you trying to upgrade to 7.19.1? From the error message, it seems ContentTypeRepository is not available in your IOC container. Try to set breakpoint during applications start, and inspect dependencies registered in structuremap in Visual Studio intermediate windows using something like "container.WhatDoIHave()"
Hi
Getting bellow error while upgarding the site to CMS 7.19.1. Note : The below Line 254 to 258 are equivalent to "PageTypeResolver.Instance.GetPageTypeID(typeof(PIMProductRangePageType))"
----- Error Message ----
StructureMap Exception Code: 202
No Default Instance defined for PluginFamily EPiServer.DataAbstraction.ContentTypeRepository, EPiServer, Version=7.19.1.0, Culture=neutral, PublicKeyToken=8fe83dea738b45b7
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: StructureMap.StructureMapException: StructureMap Exception Code: 202
No Default Instance defined for PluginFamily EPiServer.DataAbstraction.ContentTypeRepository, EPiServer, Version=7.19.1.0, Culture=neutral, PublicKeyToken=8fe83dea738b45b7
Source Error:
Line 254: ProductRangePage = productRangePage;
Line 255:
Line 256: int? PIMProductRangePageTypeId = ServiceLocator.Current.GetInstance<ContentTypeRepository>().Load<PIMProductRangePageType>().ID;
//--------
Thanks
Abhishek