U4-2473 - Installer throws examine exception: Unable to cast object of type 'System.Int32' to type 'System.String'

Created by Per Ploug 08 Jul 2013, 07:24:11 Updated by Claus Jensen 17 Jan 2017, 09:07:28

[InvalidCastException: Unable to cast object of type 'System.Int32' to type 'System.String'.] Umbraco.Core.ObjectExtensions.ToXmlString(Object value, Type type) +53 Umbraco.Core.ObjectExtensions.ToXmlString(Object value) +40 Umbraco.Core.Models.PropertyExtensions.ToXml(Property property) +358 Umbraco.Core.Services.PackagingService.Export(IContentBase contentBase, String nodeName) +1288 Umbraco.Core.Services.PackagingService.Export(IContent content, Boolean deep) +119 Umbraco.Core.Services.PackagingService.AddChildXml(IContent[] originalDescendants, IEnumerable1 currentChildren, XElement currentXml) +94 Umbraco.Core.Services.PackagingService.AddChildXml(IContent[] originalDescendants, IEnumerable1 currentChildren, XElement currentXml) +173 Umbraco.Core.Services.PackagingService.Export(IContent content, Boolean deep) +765 Umbraco.Core.Models.ContentExtensions.ToDeepXml(IContent content) +42 UmbracoExamine.DataServices.UmbracoContentService.GetLatestContentByXPath(String xpath) +134 UmbracoExamine.BaseUmbracoIndexer.GetXDocument(String xPath, String type) +57 UmbracoExamine.BaseUmbracoIndexer.AddNodesToIndex(String xPath, String type) +20 UmbracoExamine.BaseUmbracoIndexer.PerformIndexAll(String type) +755 Examine.LuceneEngine.Providers.LuceneIndexer.IndexAll(String type) +128 UmbracoExamine.BaseUmbracoIndexer.IndexAll(String type) +29 UmbracoExamine.BaseUmbracoIndexer.PerformIndexRebuild() +80 UmbracoExamine.UmbracoContentIndexer.RebuildIndex() +68 Examine.ExamineManager.LoadProviders() +483 Examine.ExamineManager..ctor() +28 Examine.ExamineManager..cctor() +30

[TypeInitializationException: The type initializer for 'Examine.ExamineManager' threw an exception.] Examine.ExamineManager.get_Instance() +14 Umbraco.Web.Search.ExamineEvents.ApplicationStarted(UmbracoApplicationBase httpApplication, ApplicationContext applicationContext) +61 Umbraco.Core.ApplicationEventHandler.OnApplicationStarted(UmbracoApplicationBase umbracoApplication, ApplicationContext applicationContext) +37 Umbraco.Core.CoreBootManager.b__6(IApplicationEventHandler x) +19 Umbraco.Core.EnumerableExtensions.ForEach(IEnumerable1 items, Action1 action) +141 Umbraco.Core.CoreBootManager.Complete(Action1 afterComplete) +119 Umbraco.Web.WebBootManager.Complete(Action1 afterComplete) +26 Umbraco.Core.UmbracoApplicationBase.StartApplication(Object sender, EventArgs e) +157 Umbraco.Core.UmbracoApplicationBase.Application_Start(Object sender, EventArgs e) +9

[HttpException (0x80004005): The type initializer for 'Examine.ExamineManager' threw an exception.] System.Web.HttpApplicationFactory.EnsureAppStartCalledForIntegratedMode(HttpContext context, HttpApplication app) +9859725 System.Web.HttpApplication.RegisterEventSubscriptionsWithIIS(IntPtr appContext, HttpContext context, MethodInfo[] handlers) +118 System.Web.HttpApplication.InitSpecial(HttpApplicationState state, MethodInfo[] handlers, IntPtr appContext, HttpContext context) +172 System.Web.HttpApplicationFactory.GetSpecialApplicationInstance(IntPtr appContext, HttpContext context) +336 System.Web.Hosting.PipelineRuntime.InitializeApplication(IntPtr appContext) +296

[HttpException (0x80004005): The type initializer for 'Examine.ExamineManager' threw an exception.] System.Web.HttpRuntime.FirstRequestInit(HttpContext context) +9873912 System.Web.HttpRuntime.EnsureFirstRequestInit(HttpContext context) +101 System.Web.HttpRuntime.ProcessRequestNotificationPrivate(IIS7WorkerRequest wr, HttpContext context) +254

Comments

Shannon Deminick 08 Jul 2013, 07:26:36

Examine mate, that is an issue with PackagingService.

Please provide steps to replicate? where in the installer?


Per Ploug 08 Jul 2013, 07:35:45

Ran the installer on sqlce and webmatrix, should throw exception at the very last step, if I refresh page, exception goes away and page shows as expected.


Shannon Deminick 15 Jul 2013, 13:32:34

Fixed in 556360143e9194b93a2eae18df92825525618a43


Priority: Normal

Type: Bug

State: Fixed

Assignee: Shannon Deminick

Difficulty: Normal

Category:

Backwards Compatible: True

Fix Submitted:

Affected versions: 7.0.0

Due in version: 7.0.0

Sprint:

Story Points:

Cycle: