Quick tip when Search is not working
I had a search page that worked locally but not on my test server. The strange thing was that the when I access this path locally I got the result
but on the test server I got the 404 page. So after some checking I found out that the default handlers for webserver was different, and the solution was to change the web.config to something like this:
<location path="IndexingService/IndexingService.svc">
<system.web>
<httpRuntime maxQueryStringLength="65536" />
</system.web>
<system.webServer>
<handlers>
<clear/>
<add name="svc-Integrated-4.0" path="*.svc" verb="*" type="System.ServiceModel.Activation.ServiceHttpHandlerFactory, System.ServiceModel.Activation, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" preCondition="integratedMode,runtimeVersionv4.0" />
</handlers>
<security>
<requestFiltering>
<requestLimits maxQueryString="65536" />
</requestFiltering>
</security>
</system.webServer>
</location>
Comments