Gravatar for hussaindotnet@gmail.com

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()

Model.GetJavaScriptInitializationOptions()
Gravatar for flguillemette@coveo.com

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 slangevin@coveo.com

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 hussaindotnet@gmail.com

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

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

Gravatar for gupta@rdacorp.com

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?

Thanks.

Ask a question