Gravatar for

Question by Hussain Shaik, Mar 18, 2017 1:47 PM

object reference error at Model.GetJavaScriptInitializationOptions()

Hi , i have added searchboxresource rendering and searchbox rendering to sitecore item presentaion details. Given required properties to searchbox rendering control.I am using coveo cloud with sitecore 8.2

when i trying to preview the item , i am getting object reference error at @Model.GetJavaScriptInitializaionOptions()

Gravatar for

Comment by François Lachance-Guillemette, Mar 18, 2017 2:08 PM

Could you give us all of the stack trace? This line doesn't give any information for debugging

2 Replies
Gravatar for

Answer by Simon, Mar 18, 2017 6:35 PM

Have you published your site after installing Coveo for Sitecore?
Also, I would suggest to reconnect to the cloud instance by using the Control Panel >> Configuration >> Cloud Configuration menu.

Gravatar for

Comment by Hussain Shaik, Mar 20, 2017 12:40 PM

Thanks Simon.. It works for me.. Did publishing and Indexing.

Gravatar for

Answer by deepakjg, Sep 16, 2017 1:31 PM

Hello, I run into this exception via a different scenario.

If by any chance, Sitecore is unable to access Coveo when it starts up (typically after an IIS Reset), then I see this exception in the Log. However, even after I fix the connection problems between Sitecore and Coveo, this exception continues to occur and the Coveo Search box or Search page do not come up. The only way to fix it is to restart Sitecore's App Pool in IIS again. Is there a way to prevent this exception from occurring without restarting Sitecore?


Ask a question