nikkishri / dropthings

Automatically exported from code.google.com/p/dropthings
0 stars 0 forks source link

Service 'ProxyService' implements multiple ServiceContract types, and no endpoints are defined in the configuration file #219

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. folder path c:\website\project1. project1 is the virtual directoryname
2. I'm using dropthings in this project1
3. While running its woking fine. Able to do all the actions in dropthings but 
internally it is logging the below sepcified error.

What is the expected output? What do you see instead?
Expected output is : it should not log any errors.
But it is logging the below error
(this might be in /API/Proxy.svc)

Raw Url: /API/Proxy.svc/ajax/js
Error Message: Service 'ProxyService' implements multiple ServiceContract 
types, and no endpoints are defined in the configuration file. WebServiceHost 
can set up default endpoints, but only if the service implements only a single 
ServiceContract. Either change the service to only implement a single 
ServiceContract, or else define endpoints for the service explicitly in the 
configuration file.Error Source: System.ServiceModel.WebError Target Site: Void 
AddAutomaticWebHttpBindingEndpoints(System.ServiceModel.ServiceHost, 
System.Collections.Generic.IDictionary`2[System.String,System.ServiceModel.Descr
iption.ContractDescription], System.String, System.String)Session Data: 
 Exception Stack Trace:   at System.ServiceModel.Web.WebServiceHost.AddAutomaticWebHttpBindingEndpoints(ServiceHost host, IDictionary`2 implementedContracts, String multipleContractsErrorMessage, String standardEndpointKind)
   at System.ServiceModel.Web.WebServiceHost.OnOpening()
   at System.ServiceModel.Channels.CommunicationObject.Open(TimeSpan timeout)
   at System.ServiceModel.Channels.CommunicationObject.Open()
   at System.ServiceModel.ServiceHostingEnvironment.HostingManager.ActivateService(String normalizedVirtualPath)
   at System.ServiceModel.ServiceHostingEnvironment.HostingManager.EnsureServiceAvailable(String normalizedVirtualPath)

What version of the product are you using? On what operating system?
product version: dropthings 2.7
os: microsoft windows server 2003 R2 standard edition,servicepack2 .Net DotNet 
Framework:  .Net framework 4.0 for the current application
The system has already .NET 3.5 Service Pack 1 and WCF REST Starter kit preview 
2.

Please provide any additional information below.

Original issue reported on code.google.com by karunake...@gmail.com on 22 Jul 2011 at 10:39

GoogleCodeExporter commented 9 years ago
Does the web.config contain the service endpoints for  proxy service?

Original comment by omaralzabir@gmail.com on 1 Nov 2011 at 7:09

GoogleCodeExporter commented 9 years ago
my web.config settings for proxy and other services

    <behaviors>
      <endpointBehaviors>
        <behavior name="webHttpEnablingBehaviour">
          <webHttp/>
        </behavior>
        <behavior name="msAjaxBehavior">
          <enableWebScript/>
        </behavior>
      </endpointBehaviors>
      <serviceBehaviors>
        <behavior name="defaultServiceBehavior">
          <serviceThrottling maxConcurrentCalls="100" maxConcurrentInstances="100"/>
          <serviceTimeouts transactionTimeout="00:00:30"/>
          <serviceMetadata httpGetEnabled="true"/>
          <serviceDebug includeExceptionDetailInFaults="true"/>
        </behavior>
      </serviceBehaviors>
    </behaviors>
    <services>
      <service behaviorConfiguration="defaultServiceBehavior" name="Dropthings.RestApi.ProxyService">
        <endpoint address="mex" binding="mexHttpBinding" contract="IMetadataExchange"/>
        <endpoint address="" behaviorConfiguration="webHttpEnablingBehaviour" binding="webHttpBinding" bindingConfiguration="default" contract="Dropthings.RestApi.IProxyServiceRest"/>
        <endpoint address="ajax" behaviorConfiguration="msAjaxBehavior" binding="webHttpBinding" bindingConfiguration="default" contract="Dropthings.RestApi.IProxyService"/>
        <endpoint address="pox" binding="basicHttpBinding" bindingConfiguration="default" contract="Dropthings.RestApi.IProxyService"/>
      </service>
      <service name="Dropthings.RestApi.WidgetService" behaviorConfiguration="defaultServiceBehavior">
        <endpoint address="mex" binding="mexHttpBinding" contract="IMetadataExchange"/>
        <endpoint address="" behaviorConfiguration="webHttpEnablingBehaviour" binding="webHttpBinding" bindingConfiguration="default" contract="Dropthings.RestApi.IWidgetService"/>
        <endpoint address="ajax" behaviorConfiguration="msAjaxBehavior" binding="webHttpBinding" bindingConfiguration="default" contract="Dropthings.RestApi.IWidgetService"/>
        <endpoint address="pox" binding="basicHttpBinding" bindingConfiguration="default" contract="Dropthings.RestApi.IWidgetService"/>
      </service>
      <service behaviorConfiguration="defaultServiceBehavior" name="Dropthings.RestApi.PageService">
        <endpoint address="mex" binding="mexHttpBinding" contract="IMetadataExchange"/>
        <endpoint address="ajax" behaviorConfiguration="msAjaxBehavior" binding="webHttpBinding" bindingConfiguration="default" contract="Dropthings.RestApi.IPageService"/>
        <endpoint address="pox" binding="basicHttpBinding" bindingConfiguration="default" contract="Dropthings.RestApi.IPageService"/>
      </service>
    </services>
    <client/>
    <bindings>
      <webHttpBinding>
        <binding name="default" allowCookies="true"></binding>
      </webHttpBinding>
      <wsHttpBinding>
        <binding name="default" allowCookies="true"></binding>
      </wsHttpBinding>
      <basicHttpBinding>
        <binding name="default" allowCookies="true"></binding>
      </basicHttpBinding>
    </bindings>

Original comment by karunake...@gmail.com on 2 Nov 2011 at 5:08