Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Dan Brown 2 posts 22 karma points
    Mar 08, 2013 @ 17:34
    Dan Brown
    0

    UmbracoExamine Object reference not set to an instance of an object

    Hi, all... Long-time lurker, first-time poster...

    I've been developing my first Umbraco site (v. 6.0.2) locally and everything has been working fine. However, after publishing the site to my production server (Windows 2008 R2) I get the following error when I try to pull up the home page:

    Configuration Error

    Description: An error occurred during the processing of a configuration file required to service this request. Please review the specific error details below and modify your configuration file appropriately.

    Parser Error Message: Object reference not set to an instance of an object.

    Source Error:

    Line 10:   <ExamineIndexProviders>
    Line 11:     <providers>
    Line 12:       <add name="InternalIndexer" type="UmbracoExamine.UmbracoContentIndexer, UmbracoExamine"
    Line 13:            supportUnpublished="true"
    Line 14:            supportProtected="true"


    Source File: C:\inetpub\wwwroot\config\ExamineSettings.config    Line: 12


    Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.0.30319.272

    I've checked and UnbracoExamine.dll is in the ~/bin directory. Any other ideas?

    Thanks!

  • Dan Brown 2 posts 22 karma points
    Mar 11, 2013 @ 00:47
    Dan Brown
    0

    Follow up...

    On my development site, Web.config contains the following line:

    <add name="umbracoDbDSN" connectionString="Data source=|DataDirectory|\Umbraco.sdf" providerName="System.Data.SqlServerCe.4.0" />

    However, when I publish the site using WebMatrix's Publish feature, the line gets changed to:

    <add name="umbracoDbDSN" connectionString="Data 
    source=|DataDirectory|\Umbraco.sdf;{Parameter 4692072256264577415}" 
    providerName="System.Data.SqlServerCe.4.0" />

    If I remove ";{Parameter 4692072256264577415}" from the line everything works fine on production just like on development.

    Any idea where that additional string comes from and if there is any way to stop WebMatrix from inserting it every time it publishes the Web.config file?

Please Sign in or register to post replies

Write your reply to:

Draft