Gravatar for allison.bates@fisglobal.com

Question by abates100, Apr 24, 2015 4:32 PM

Sitecore search page (not MVC) has 404 error after installation.

How should we troubleshoot an issue we have with the OOB Coveo Search page? We have inserted, saved and published per instuctions here Customizing a Search Interface but can't pass go.

The page throws a 404 'File not found' error when either trying to Preview in CE or open in the website. This is on an upgraded install of Sitecore 8 and then added Coveo for Sitecore free edition with a trial enterprise license. The MVC page worked just fine and the indexing appears to be working however the Lucene indexes have not been disabled. I think originally the version was 7.0 with the Lucene package install. Pointers appreciated.

Thanks

IIS Logs

This is from IIS logs, first one works, 2nd one doesn’t although there is a 404 on one call

2015-04-27 14:36:30 127.0.0.1 GET /DemoSearchMVC - 80 - 127.0.0.1 Mozilla/4.0+(compatible;+MSIE+7.0;+Windows+NT+6.3;+WOW64;+Trident/7.0;+.NET4.0E;+.NET4.0C;+.NET+CLR+3.5.30729;+.NET+CLR+2.0.50727;+.NET+CLR+3.0.30729) - 200 0 0 93
2015-04-27 14:36:30 127.0.0.1 GET /Coveo/js/CoveoForSitecorePolyfills.js - 80 - 127.0.0.1 Mozilla/4.0+(compatible;+MSIE+7.0;+Windows+NT+6.3;+WOW64;+Trident/7.0;+.NET4.0E;+.NET4.0C;+.NET+CLR+3.5.30729;+.NET+CLR+2.0.50727;+.NET+CLR+3.0.30729) http://sitecoresandbox/DemoSearchMVC 304 0 0 15
2015-04-27 14:36:30 127.0.0.1 GET /Coveo/js/d3.min.js - 80 - 127.0.0.1 Mozilla/4.0+(compatible;+MSIE+7.0;+Windows+NT+6.3;+WOW64;+Trident/7.0;+.NET4.0E;+.NET4.0C;+.NET+CLR+3.5.30729;+.NET+CLR+2.0.50727;+.NET+CLR+3.0.30729) http://sitecoresandbox/DemoSearchMVC 304 0 0 15
2015-04-27 14:36:30 127.0.0.1 GET /layouts/system/VisitorIdentification.js - 80 - 127.0.0.1 Mozilla/4.0+(compatible;+MSIE+7.0;+Windows+NT+6.3;+WOW64;+Trident/7.0;+.NET4.0E;+.NET4.0C;+.NET+CLR+3.5.30729;+.NET+CLR+2.0.50727;+.NET+CLR+3.0.30729) http://sitecoresandbox/DemoSearchMVC 404 0 0 15
2015-04-27 14:36:30 127.0.0.1 GET /Coveo/css/CoveoFullSearch.css - 80 - 127.0.0.1 Mozilla/4.0+(compatible;+MSIE+7.0;+Windows+NT+6.3;+WOW64;+Trident/7.0;+.NET4.0E;+.NET4.0C;+.NET+CLR+3.5.30729;+.NET+CLR+2.0.50727;+.NET+CLR+3.0.30729) http://sitecoresandbox/DemoSearchMVC 304 0 0 15
2015-04-27 14:36:30 127.0.0.1 GET /Coveo/css/CoveoComponent.css - 80 - 127.0.0.1 Mozilla/4.0+(compatible;+MSIE+7.0;+Windows+NT+6.3;+WOW64;+Trident/7.0;+.NET4.0E;+.NET4.0C;+.NET+CLR+3.5.30729;+.NET+CLR+2.0.50727;+.NET+CLR+3.0.30729) http://sitecoresandbox/DemoSearchMVC 304 0 0 15
2015-04-27 14:36:30 127.0.0.1 GET /Coveo/js/CoveoForSitecore.js - 80 - 127.0.0.1 Mozilla/4.0+(compatible;+MSIE+7.0;+Windows+NT+6.3;+WOW64;+Trident/7.0;+.NET4.0E;+.NET4.0C;+.NET+CLR+3.5.30729;+.NET+CLR+2.0.50727;+.NET+CLR+3.0.30729) http://sitecoresandbox/DemoSearchMVC 304 0 0 15
2015-04-27 14:36:30 127.0.0.1 GET /Coveo/js/cultures/en.js - 80 - 127.0.0.1 Mozilla/4.0+(compatible;+MSIE+7.0;+Windows+NT+6.3;+WOW64;+Trident/7.0;+.NET4.0E;+.NET4.0C;+.NET+CLR+3.5.30729;+.NET+CLR+2.0.50727;+.NET+CLR+3.0.30729) http://sitecoresandbox/DemoSearchMVC 304 0 0 15
2015-04-27 14:36:30 127.0.0.1 GET /Coveo/js/CoveoJsSearch.WithDependencies.min.js - 80 - 127.0.0.1 Mozilla/4.0+(compatible;+MSIE+7.0;+Windows+NT+6.3;+WOW64;+Trident/7.0;+.NET4.0E;+.NET4.0C;+.NET+CLR+3.5.30729;+.NET+CLR+2.0.50727;+.NET+CLR+3.0.30729) http://sitecoresandbox/DemoSearchMVC 304 0 0 15
2015-04-27 14:36:30 127.0.0.1 GET /Coveo/fonts/Arimo_Normal.woff - 80 - 127.0.0.1 Mozilla/4.0+(compatible;+MSIE+7.0;+Windows+NT+6.3;+WOW64;+Trident/7.0;+.NET4.0E;+.NET4.0C;+.NET+CLR+3.5.30729;+.NET+CLR+2.0.50727;+.NET+CLR+3.0.30729) http://sitecoresandbox/DemoSearchMVC 304 0 0 15
2015-04-27 14:36:30 127.0.0.1 GET /Coveo/fonts/Arimo_Italic.woff - 80 - 127.0.0.1 Mozilla/4.0+(compatible;+MSIE+7.0;+Windows+NT+6.3;+WOW64;+Trident/7.0;+.NET4.0E;+.NET4.0C;+.NET+CLR+3.5.30729;+.NET+CLR+2.0.50727;+.NET+CLR+3.0.30729) http://sitecoresandbox/DemoSearchMVC 304 0 0 15
2015-04-27 14:36:30 127.0.0.1 GET /Coveo/fonts/Arimo_Bold.woff - 80 - 127.0.0.1 Mozilla/4.0
...
2015-04-27 14:37:13 127.0.0.1 GET /DemoSearch - 80 - 127.0.0.1 Mozilla/4.0+(compatible;+MSIE+7.0;+Windows+NT+6.3;+WOW64;+Trident/7.0;+.NET4.0E;+.NET4.0C;+.NET+CLR+3.5.30729;+.NET+CLR+2.0.50727;+.NET+CLR+3.0.30729) - 404 0 0 15
2015-04-27 14:39:08 127.0.0.1 GET /DemoSearch - 80 - 127.0.0.1 Mozilla/4.0+(compatible;+MSIE+7.0;+Windows+NT+6.3;+WOW64;+Trident/7.0;+.NET4.0E;+.NET4.0C;+.NET+CLR+3.5.30729;+.NET+CLR+2.0.50727;+.NET+CLR+3.0.30729) - 404 0 0 16
Gravatar for allison.bates@fisglobal.com

Comment by abates100, Apr 27, 2015 1:43 PM

There are not any errors found in the Sitecore logs when opening the page. Only thing I can find is in the IIS logs. I believe you are correct on the redirect.

1 Reply
Gravatar for jflheureux@coveo.com

Answer by Jean-François L'Heureux, Apr 24, 2015 5:52 PM

I would first analyze the Sitecore logs (typically located in the [Sitecore instance]\Data\logs folder) to find any error that can be the cause of the problem.

I think that an exception is thrown when the page is rendered and Sitecore is configured to redirect to an error page when it encounters an unhanded exception. I bet that the 404 is for the "error" page. In that case, the exception should be logged in the log file before the redirection occurs.

Please post the exceptions you find in this answer comments. If it is too large, edit your original post to include the exceptions and leave an update comment here. Thanks.

Gravatar for jflheureux@coveo.com

Comment by Jean-François L'Heureux, Apr 27, 2015 3:17 PM

The 404 error seems to be on the /DemoSearch URL which should be your search page item. Can you try to republish it to all the targets? Can you try an iisreset? If you try to create another non-MVC search page item named "DemoSearch2", does this one works?

Gravatar for allison.bates@fisglobal.com

Comment by abates100, Apr 29, 2015 4:57 PM

Yes I have tried all those things and multiple copies of the page.

Gravatar for jflheureux@coveo.com

Comment by Jean-François L'Heureux, Apr 29, 2015 5:06 PM

Do you have ASP.Net MVC 3.0 installed? Do you have at least one of ASP.Net MVC 4.0 or 5.0 installed? They are prerequisites to Coveo for Sitecore. You really need ASP.Net 3.0 even if you have 4.0 or 5.0 installed.

The ASP.Net MVC 3.0 prerequisite will drop in the next months as we did an improvement to our code. Only Coveo for Sitecore on Sitecore 7.0 will require it in the future.

Gravatar for allison.bates@fisglobal.com

Comment by abates100, Apr 29, 2015 5:11 PM

My developer is telling me 'we are using an MVC code implementation of sitecore, so we may have to use the MVC specific layouts and renderings' . Does that mean the other search page just will not work regardless?

Gravatar for jflheureux@coveo.com

Comment by Jean-François L'Heureux, Apr 29, 2015 5:45 PM

Standalone search pages (not embedded in your actual site layout) should both (Web Forms and MVC) work out of the box. But embedding the Web Forms "Coveo Search" component in an MVC layout and vice-versa will probably not work well.

I think that your Sitecore instance has some problems due to the upgrade from Sitecore 7 to Sitecore 8.

On the same computer, can you install a new Sitecore 8 instance with the SIM Tool, install Coveo for Sitecore on it and try to create the same demo search pages? It will give you hints whether the problem is the upgraded instance or the computer configuration.

Gravatar for allison.bates@fisglobal.com

Comment by abates100, Apr 30, 2015 10:05 AM

We do have ASP.Net MVC 3 & 4 as well as ASP.Net 3.0 , 3.5 and 4.0.3 installed. We will try to get another instance created. Thanks!

Ask a question