Gravatar for timsodhi@health.usf.edu

Question by timothevs, Aug 6, 2015 1:28 PM

Coveo for Sitecore REST Endpoint 500 Error -

One step forward two back. It is proving to be difficult configuring Coveo for Sitecore. Running Sitecore version 7 build 140120 I believe (january 2014).

After installing the wrong version of Coveo for Sitecore (from July 2014 instead of 2015 - why is 2014 even there), I finally ran through the configurations and have the admin service working on the Coveo server (remote server).

However, I am having a lot of trouble configuring the REST endpoint. I keep getting a 500 Error .

Sitecore's Configuration     Up and running
Coveo Pipeline Names Configuration         Up and running
Admin Service         Up and running
Coveo Entreprise Search         Up and running
Coveo Search REST Endpoint ()     The remote server returned an error: (500) Internal Server Error. (Show details)
Coveo Search Web Service     Could not establish trust relationship for the SSL/TLS secure channel with authority 'coveoback.hscnet.hsc.usf.edu:52810'. (Show details)
Coveo Security Service     Up and running
Coveo Security Provider     No security provider was found with name 'Sitecore Security Provider for <REMOTEINSTANCENAME>-localInstance' on instance default (Show details)
RabbitMQ         Up and running 

The error I get with the REST endpoint is as follows:-

System.Net.WebException: The remote server returned an error: (500) Internal Server Error.
   at System.Net.HttpWebRequest.GetResponse()
   at Coveo.SearchProvider.Applications.StateVerifier.<>c__DisplayClassd.<GetRestEndpointState>b__c()
   at Coveo.SearchProvider.Applications.BaseVerifier.VerifyComponent(Func`1 p_VerifyMethod, String p_ComponentName)

I tried accessing http://localinstance/coveo/rest to see what exact message I get, and here it is:-

Server Error in '/' Application.
Could not load type 'Sitecore.ContentSearch.ISearchIndexSummaryEx' from assembly 'Sitecore.ContentSearch, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null'.
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: System.TypeLoadException: Could not load type 'Sitecore.ContentSearch.ISearchIndexSummaryEx' from assembly 'Sitecore.ContentSearch, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null'.

Source Error:

An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.

[TypeLoadException: Could not load type 'Sitecore.ContentSearch.ISearchIndexSummaryEx' from assembly 'Sitecore.ContentSearch, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null'.]
   Coveo.SearchProvider.SearchIndexSummaryFactory.CreateSearchIndexSummaryEx(IProviderIndexBase p_Index) +0
   Coveo.SearchProvider.ProviderIndex.CreateIndexSummary(ISearchIndexSummaryFactory p_SearchIndexSummaryFactory) +63
   Coveo.SearchProvider.ProviderIndex..ctor(String p_Name) +580

[TargetInvocationException: Exception has been thrown by the target of an invocation.]
   System.RuntimeMethodHandle.InvokeMethod(Object target, Object[] arguments, Signature sig, Boolean constructor) +0
   System.Reflection.RuntimeConstructorInfo.Invoke(BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture) +281
   Sitecore.Reflection.ReflectionUtil.CreateObject(Type type, Object[] parameters) +135
   Sitecore.Configuration.Factory.CreateFromTypeName(XmlNode configNode, String[] parameters, Boolean assert) +120
   Sitecore.Configuration.Factory.CreateObject(XmlNode configNode, String[] parameters, Boolean assert, IFactoryHelper helper) +141
   Sitecore.Configuration.Factory.GetInnerObject(XmlNode paramNode, String[] parameters, Boolean assert) +1074
   Sitecore.Configuration.Factory.AssignProperties(XmlNode configNode, String[] parameters, Object obj, Boolean assert, Boolean deferred, IFactoryHelper helper) +577
   Sitecore.Configuration.Factory.CreateObject(XmlNode configNode, String[] parameters, Boolean assert, IFactoryHelper helper) +296
   Sitecore.Configuration.Factory.CreateObject(String configPath, String[] parameters, Boolean assert) +420
   Sitecore.ContentSearch.ContentSearchManager.get_SearchConfiguration() +70
   Sitecore.ContentSearch.Pipelines.GetContextIndex.FetchIndex.GetContextIndex(IIndexable indexable, GetContextIndexArgs args) +122
   Coveo.SearchProvider.Utils.FetchCoveoIndexUtilities.GetIndexName(IIndexable p_Indexable, GetContextIndexArgs p_Args, Func`3 p_GetContextIndexNameDelegate) +228
   Sitecore.ContentSearch.Pipelines.GetContextIndex.FetchIndex.Process(GetContextIndexArgs args) +40
   (Object , Object[] ) +83
   Sitecore.Pipelines.CorePipeline.Run(PipelineArgs args) +365
   Coveo.Framework.Pipelines.PipelineRunner.Run(String p_PipelineName, PipelineArgs p_Args) +779
   Coveo.SearchProvider.ContentSearch.CoveoIndexFetcher.GetCoveoSearchIndex(IIndexable p_Indexable) +63
   Coveo.UI.Helpers.SitecoreHelper.GetSearchIndex() +180
   Coveo.SearchProvider.Rest.SitecoreRestHttpHandler.GetSecurityProviderName() +70
   Coveo.SearchProvider.Rest.SitecoreRestHttpHandler.OnInitializeSettings() +365
   Coveo.Search.Api.Proxy.ProxyHttpHandler.OnInitialize() +58
   Coveo.Search.Api.Proxy.ProxyHttpHandler.EnsureInitialized() +140
   Coveo.Search.Api.Proxy.ProxyHttpHandler.ProcessRequest(HttpContext context) +78
   System.Web.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +913
   System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +165
Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.0.30319.17929 

On the Coveo server, http://localhost:8080/search/rest gives me a pretty JSON view of my indexed data.

I tried to build my indexes in sitecore, but the error above is the page i get when I try ot open the index page on Sitecore. Any information or help would be highly appreciated.

1 Reply
Gravatar for lbergeron@coveo.com

Answer by Luc Bergeron, Aug 6, 2015 1:42 PM

Hi,

The interface ISearchIndexSummaryEx existed in Sitecore 7.0 and 7.1. It was removed when Sitecore released version 7.2.

Which Sitecore version are you using?

Which Coveo for Sitecore package did you installed?

My guess is that you have a Coveo for Sitecore package that does not match the Sitecore version.

Are you able to open Coveo's diagnostic page (Control Panel > Coveo Search > Diagnostic Page)? It can provide some hints regarding assembly conflicts between Coveo and Sitecore.

I hope this helps

Gravatar for timsodhi@health.usf.edu

Comment by timothevs, Aug 6, 2015 1:55 PM

Yep, we are on Sitecore.NET 7.0. (rev. 140120), which if I understand correctly is 7.0.4.

The diagnostic page throws this error

 This section is disabled because an unexpected error occurred (The version '7.0..140120' has an invalid format.). Resolve this error and hit the Refresh button to re-enable this section. 

I installed the version from this page - https://developers.coveo.com/display/public/SC201507/Installing+Coveo+for+Sitecore+on+a+Single+Host

The version I installed was Coveo for Sitecore 70 3.0 (1081).zip

Gravatar for lbergeron@coveo.com

Comment by Luc Bergeron, Aug 6, 2015 2:36 PM

The package versions seem correct. Can you, please, double check the file version for these assemblies?

  • Sitecore.ContentSearch.dll
  • Coveo.SearchProviderBase.dll
  • Coveo.SearchProvider.dll

For the Coveo.SearchProvider.dll file, when you look at the file details, the File Description should be Coveo Search Provider for Sitecore 7.0 and 7.1.

Thanks

Gravatar for timsodhi@health.usf.edu

Comment by timothevs, Aug 6, 2015 4:32 PM

Thank you for your reply

Sitecore.ContentSearch.dll is at version 1.0.0.4511 (File version) Coveo.SearchProviderBase.dll is at version 3.0.1081.0 and the File Description is empty Coveo.SearchProvider.dll is at version 3.0.1081.0 and the File Description says Coveo Search Provider for Sitecore 7.0 and 7.1.

Hope that helps! Thank you. -Some very anxious people in our department.

Gravatar for lbergeron@coveo.com

Comment by Luc Bergeron, Aug 6, 2015 4:51 PM

This is weird. On my own Sitecore 7.0 update 4 instance, I have a different file version for the Sitecore.ContentSearch assembly. File version is 1.1.4664 and the product version is 1.0.0 rev. 140108.

I would suggest to take the manual install package of Sitecore 7.0 update 4 and extract the assembly from there.

Did you upgraded the Sitecore instance? It looks like some Sitecore DLLs are outdated.

I hope that helps

Gravatar for timsodhi@health.usf.edu

Comment by timothevs, Aug 14, 2015 10:07 AM

Thank you for that. It seems that our Sitecore installation wasn't upgraded properly. As a result, Sitecore.ContentSearch.dll was at an older version than what was required. Once I copied the correct version from our Production Sitecore install, the 500 error has been erased. Now I Have a 503 error, which is a lot more manageable.

One step closer.

Ask a question