SYMPTOMS
After changing the WebServerExtensions configuration as per the ""Preview not available" is displayed instead of the documents thumbnails when accessing the Web Client via HTTPS" Knowledgebase article, Search Suggestions still do not appear.
The following error occurs when browsing https://localhost/WebserverExtensions/SearchSuggestionService/SearchSuggestionService.svc.
[InvalidOperationException: The HttpGetEnabled property of ServiceMetadataBehavior is set to true and the HttpGetUrl property is a relative address, but there is no http base address. Either supply an http base address or set HttpGetUrl to an absolute address.]
System.ServiceModel.Description.ServiceMetadataBehavior.CreateHttpGetEndpoints(ServiceDescription description, ServiceHostBase host, ServiceMetadataExtension mex) +4902784
System.ServiceModel.Description.ServiceMetadataBehavior.ApplyBehavior(ServiceDescription description, ServiceHostBase host) +58
System.ServiceModel.Description.ServiceMetadataBehavior.System.ServiceModel.Description.IServiceBehavior.ApplyDispatchBehavior(ServiceDescription description, ServiceHostBase serviceHostBase) +30
System.ServiceModel.Description.DispatcherBuilder.InitializeServiceHost(ServiceDescription description, ServiceHostBase serviceHost) +2691
System.ServiceModel.ServiceHostBase.InitializeRuntime() +65
System.ServiceModel.ServiceHostBase.OnBeginOpen() +34
System.ServiceModel.ServiceHostBase.OnOpen(TimeSpan timeout) +49
System.ServiceModel.Channels.CommunicationObject.Open(TimeSpan timeout) +308
System.ServiceModel.Channels.CommunicationObject.Open() +36
System.ServiceModel.HostingManager.ActivateService(ServiceActivationInfo serviceActivationInfo, EventTraceActivity eventTraceActivity) +90
System.ServiceModel.HostingManager.EnsureServiceAvailable(String normalizedVirtualPath, EventTraceActivity eventTraceActivity) +598
[ServiceActivationException: The service '/WebserverExtensions/SearchSuggestionService/SearchSuggestionService.svc' cannot be activated due to an exception during compilation. The exception message is: The HttpGetEnabled property of ServiceMetadataBehavior is set to true and the HttpGetUrl property is a relative address, but there is no http base address. Either supply an http base address or set HttpGetUrl to an absolute address..]
System.Runtime.AsyncResult.End(IAsyncResult result) +485044
System.ServiceModel.Activation.HostedHttpRequestAsyncResult.End(IAsyncResult result) +174
System.ServiceModel.Activation.ServiceHttpModule.EndProcessRequest(IAsyncResult ar) +345998
System.Web.AsyncEventExecutionStep.OnAsyncEventCompletion(IAsyncResult ar) +9723621
CAUSE
Hypertext Transfer Protocol (HTTP) binding for this website has been removed from Microsoft Internet Information Services (IIS) configuration, effectively not serving any HTTP connection.
RESOLUTION
Disable HttpGetEnabled in the Service Behavior Configuration.
- Create a backup copy of the existing "C:\Program Files (x86)\ZyLAB\Information Management Platform\Webserverextensions.webservice\Web.config" configuration file.
- Open "C:\Program Files (x86)\ZyLAB\Information Management Platform\Webserverextensions.webservice\Web.config" in a text editor.
- Navigate to the configuration > system.serviceModel > behaviors > serviceBehaviors section.
- Find the searchBehavior key with httpGetEnabled property set to 'True'.
- Change the httpGetEnabled property to 'False'. There is no need to restart the service, just refresh the page in Internet Explorer.
The following is an example of how this configuration section should look like:
<serviceBehaviors>
<behavior name="imageBehavior">
<serviceMetadata httpGetEnabled="true" />
<serviceDebug includeExceptionDetailInFaults="false" />
</behavior>
<behavior name="searchBehavior">
<serviceMetadata httpGetEnabled="false" />
<serviceDebug includeExceptionDetailInFaults="false" />
</behavior>
</serviceBehaviors>
APPLIES TO
6.4 SP1
Comments
0 comments
Article is closed for comments.