Gravatar for jim.shea@alpa.org

Question by Jim Shea, Mar 9, 2015 7:26 PM

Could not find property restEndpointConfiguration

I am getting the following error in my Sitecore Logs after installing Coveo for Sitecore 72 3.0 (974):

Exception: System.InvalidOperationException
Message: Could not find property 'restEndpointConfiguration' on object of type: Sitecore.ContentSearch.ContentSearchConfiguration
Source: Sitecore.Kernel
   at Sitecore.Diagnostics.Assert.IsTrue(Boolean condition, String message)
   at Sitecore.Configuration.Factory.AssignProperties(Object obj, Object[] properties)
   at Sitecore.Configuration.Factory.AssignProperties(XmlNode configNode, String[] parameters, Object obj, Boolean assert, Boolean deferred, IFactoryHelper helper)
   at Sitecore.Configuration.Factory.CreateObject(XmlNode configNode, String[] parameters, Boolean assert, IFactoryHelper helper)
   at Sitecore.Configuration.Factory.CreateObject(String configPath, String[] parameters, Boolean assert)
   at Sitecore.ContentSearch.ContentSearchManager.get_SearchConfiguration()
   at Coveo.SearchProvider.Applications.CoveoDiagnosticPage.GetIndexNamesList()
   at Coveo.SearchProvider.Applications.CoveoDiagnosticPage.OnInit(EventArgs p_Event)
   at System.Web.UI.Control.InitRecursive(Control namingContainer)
   at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)

I have Coveo Enterprise Search 7.0 x64 (7433) and Coveo Search API 8.0.457 installed on a separate server from my Sitecore Instance.

I followed the installation steps for Installing CES on the Master Server and Installing Coveo for Sitecore on a Single Host. I also verified that my Coveo.SearchProvider.config.example and Coveo.SearchProvider.Rest.config.example files were renamed and that the necessary changes were made for setting up Coveo for Sitecore in a remote server configuration.

Can you advise me on where I should start troubleshooting this issue? Thanks!

2 Replies
Gravatar for slangevin@coveo.com

Answer by Simon, Mar 9, 2015 7:37 PM

Hi,

You said the following:
" I have Coveo Enterprise Search 7.0 x64 (7433) and Coveo Search API 8.0.457 installed on a separate server from my Sitecore Instance. "

But you used this documentation:

"I followed the installation steps for Installing CES on the Master Server and Installing Coveo for Sitecore on a Single Host."

So I believe most of your settings in the search provider.config are pointing to localhost. But you have to make sure everything is pointing at the remote server.

Cheers,
Simon

Gravatar for jim.shea@alpa.org

Comment by Jim Shea, Mar 9, 2015 8:21 PM

Hi Simon,

I followed the additional configuration steps for setting up Coveo for Sitecore in a Remote Server Configuration: https://developers.coveo.com/display/public/SC201503/Setting+Up+Coveo+for+Sitecore+in+a+Remote+Server+Configuration

I verified that the following elements in the searchprovider.config are pointing to the remote server:

adminServiceConfiguration/AdminServiceUri defaultIndexConfiguration/SearchServiceUri defaultIndexConfiguration/QueueUri

Do you have any other suggestions? Thanks!

Gravatar for lbergeron@coveo.com

Answer by Luc Bergeron, Mar 10, 2015 8:22 AM

Hi,

Did you upgrade Coveo for Sitecore? The "restEndpointConfiguration" was moved from the "Coveo.SearchProvider.config" file to the "Coveo.SearchProvider.Rest.config" file. I think the "restEndpointConfiguration" is still present in your "Coveo.SearchProvider.config" file. You should remove it.

Here is the upgrade procedure for the november 2014 release, where this change appeared: https://developers.coveo.com/display/public/SC201411/Upgrading+Coveo+for+Sitecore

I hope this helps

Gravatar for jim.shea@alpa.org

Comment by Jim Shea, Mar 10, 2015 9:03 AM

This was a new install. I checked the Coveo.SearchProvider.config and verified that the restEndpointConfiguration is not present. Thanks.

Gravatar for lbergeron@coveo.com

Comment by Luc Bergeron, Mar 10, 2015 9:48 AM

Thanks for your reply. I just noticed the error was thrown by the "Sitecore.ContentSearch.ContentSearchConfiguration" type. When enabled, Coveo should override the type of the "/sitecore/contentSearch/configuration" element.

Just to make sure, did you rename the "Coveo.SearchProvider.config.example" file to remove the ".example" at the end?

You can also call the "showconfig.aspx" page (http://yourSitecoreInstance/sitecore/admin/showconfig.aspx) and see from which configuration file the "/sitecore/contentSearch/configuration" element is loaded.

Thanks

Ask a question