The remote server returned an error: Not Found

Discussion in 'ASP.NET 4.0 RC Beta [Closed]' started by tux2006, Feb 22, 2010.

Thread Status:
Threads that have been inactive for 5 years or longer are closed to further replies. Please start a new thread.
  1. i'm deploying Visual Studio 2010 beta 2 app with SQL Server 2008 DB on DiscountASP and i'm getting the error: The remote server returned an error: Not Found, when trying to access my DomainService.
    It works fine on my local machine.

    When i browse to http://userxxx.netfxlab.discountasp.net/Services/MyDomainServece.svc,
    i get the following error:

    [ArgumentException: This collection already contains an address with scheme http. There can be at most one address per scheme in this collection. If your service is being hosted in IIS you can fix the problem by setting 'system.serviceModel/serviceHostingEnvironment/multipleSiteBindingsEnabled' to true or specifying 'system.serviceModel/serviceHostingEnvironment/baseAddressPrefixFilters'.
    Parameter name: item]
    System.ServiceModel.UriSchemeKeyedCollection.InsertItem(Int32 index, Uri item) +12078198
    System.Collections.Generic.SynchronizedCollection`1.Add(T item) +78
    System.ServiceModel.UriSchemeKeyedCollection..ctor(Uri[] addresses) +72
    System.Web.Ria.Services.DomainServiceHost..ctor(Type domainServiceType, Uri[] baseAddresses) +70
    System.Web.Ria.Services.DomainServiceHostFactory.CreateServiceHost(Type serviceType, Uri[] baseAddresses) +29
    System.ServiceModel.Activation.ServiceHostFactory.CreateServiceHost(String constructorString, Uri[] baseAddresses) +420
    System.ServiceModel.HostingManager.CreateService(String normalizedVirtualPath) +1440
    System.ServiceModel.HostingManager.ActivateService(String normalizedVirtualPath) +44
    System.ServiceModel.HostingManager.EnsureServiceAvailable(String normalizedVirtualPath) +615

    [ServiceActivationException: The service '/Services/SPCNAA_website-Web-Services-EventsDomainService.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. If your service is being hosted in IIS you can fix the problem by setting 'system.serviceModel/serviceHostingEnvironment/multipleSiteBindingsEnabled' to true or specifying 'system.serviceModel/serviceHostingEnvironment/baseAddressPrefixFilters'.
    Parameter name: item.]
    System.Runtime.AsyncResult.End(IAsyncResult result) +679242
    System.ServiceModel.Activation.HostedHttpRequestAsyncResult.End(IAsyncResult result) +190
    System.ServiceModel.Activation.ServiceHttpHandler.EndProcessRequest(IAsyncResult result) +6
    System.Web.CallHandlerExecutionStep.OnAsyncHandlerCompletion(IAsyncResult ar) +96


    So, how do i deploy the domain service? and how do i tell my app where is the service located? Do i need to create .svc file manually or something?

    Thank you!
     
  2. did you ever get a reply ?, i get the same message, i thought i may be the same issue as WCF that needs an entry in web config;

    <serviceHostingEnvironment aspNetCompatibilityEnabled="true">
    <baseAddressPrefixFilters>
    <add prefix="http://www.userxxx.netfx4lab.discountasp.net" />
    </baseAddressPrefixFilters>
    </serviceHostingEnvironment>

    but this did not work for me.
     
Thread Status:
Threads that have been inactive for 5 years or longer are closed to further replies. Please start a new thread.

Share This Page