Loading...

All project content is available for reading, but you need to be a member of the project for Subversion checkout of source code, or to create/modify any information.
Login if you are a member. Apply here to request membership (open to all).

Ticket #123 (closed defect: fixed)

Opened 9 years ago

Last modified 9 years ago

Getting errormessage when browsing /QuickSearchExtender/WebService/QuickSearchExtenderService.svc/js

Reported by: rannveig.aarnes@… Owned by: fredrik@…
Priority: major Component: QuickSearchExtender
Keywords: Cc:

Description

Hi,

I have installed the QuickSearchExtender, and I can't browse the js file:
/QuickSearchExtender/WebService/QuickSearchExtenderService.svc/js

We use Episerver CMS 5 R2 with Windows Server 2003.

The errormessage is:
This collection already contains an address with scheme http. There can be at most one address per scheme in this collection.
Parameter name: item
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

Exception Details: System.ArgumentException: This collection already contains an address with scheme http. There can be at most one address per scheme in this collection.
Parameter name: item

Source Error:

An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.

Stack Trace:

[ArgumentException: This collection already contains an address with scheme http. There can be at most one address per scheme in this collection.
Parameter name: item]

System.ServiceModel.UriSchemeKeyedCollection.InsertItem(Int32 index, Uri item) +11520590
System.Collections.Generic.SynchronizedCollection`1.Add(T item) +67
System.ServiceModel.UriSchemeKeyedCollection..ctor(Uri[] addresses) +49
System.ServiceModel.ServiceHost..ctor(Type serviceType, Uri[] baseAddresses) +129
System.ServiceModel.Activation.WebScriptServiceHostFactory.CreateServiceHost(Type serviceType, Uri[] baseAddresses) +29
System.ServiceModel.Activation.ServiceHostFactory.CreateServiceHost(String constructorString, Uri[] baseAddresses) +331
System.ServiceModel.HostingManager.CreateService(String normalizedVirtualPath) +11659932
System.ServiceModel.HostingManager.ActivateService(String normalizedVirtualPath) +42
System.ServiceModel.HostingManager.EnsureServiceAvailable(String normalizedVirtualPath) +479

[ServiceActivationException: The service '/PlugIns/QuickSearchExtender/WebService/QuickSearchExtenderService.svc' cannot be activated due to an exception during compilation. The exception message is: This collection already contains an address with scheme http. There can be at most one address per scheme in this collection.
Parameter name: item.]

System.ServiceModel.AsyncResult.End(IAsyncResult result) +11531006
System.ServiceModel.Activation.HostedHttpRequestAsyncResult.End(IAsyncResult result) +194
System.ServiceModel.Activation.HostedHttpRequestAsyncResult.ExecuteSynchronous(HttpApplication context, Boolean flowContext) +176
System.ServiceModel.Activation.HttpHandler.ProcessRequest(HttpContext context) +23
System.Web.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +181
System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +75


Change History

comment:1 Changed 9 years ago by rannveig.aarnes@…

  • Status changed from new to closed
  • Resolution set to fixed

The problem was the hostheader in the application. I added the following to web.config and the problem was solved:

<serviceHostingEnvironment>
<baseAddressPrefixFilters>

<add prefix="http://YourWebsiteHostHeader" />

</baseAddressPrefixFilters>
</serviceHostingEnvironment>

Note: See HelpUser/Tickets for help on using tickets.