locked
Server Throw Not found error RRS feed

  • Question

  • User1730680328 posted

    Web.Config

    <system.serviceModel>
        <services>
          <service name="StoreScanImages.ScanImages" behaviorConfiguration="wsBehavior">
            <endpoint address="" binding="basicHttpBinding" bindingConfiguration="BndConfigure" contract="StoreScanImages.IScanImages"></endpoint>
          </service>
        </services>
        <serviceHostingEnvironment aspNetCompatibilityEnabled="true" multipleSiteBindingsEnabled="true" minFreeMemoryPercentageToActivateService="1"></serviceHostingEnvironment>
        <behaviors>
          <serviceBehaviors>
            <behavior name="wsBehavior">
              <dataContractSerializer maxItemsInObjectGraph="2147483647"/>
              <serviceTimeouts transactionTimeout="00:30"/>
              <serviceMetadata httpGetEnabled="true" httpsGetEnabled="true" />
              <serviceDebug includeExceptionDetailInFaults="true" />
            </behavior>
          </serviceBehaviors>
        </behaviors>
        <bindings>
          <basicHttpBinding>
            <binding closeTimeout="00:30" maxBufferSize="2147483647" transferMode="Buffered"
                     maxBufferPoolSize="2147483647" maxReceivedMessageSize="2147483647" messageEncoding="Mtom" name="BndConfigure" openTimeout="00:30"
                     receiveTimeout="00:30" sendTimeout="00:30"></binding>
            <binding name="BasicHttpBinding_IScanImages" messageEncoding="Mtom" />
          </basicHttpBinding>
        </bindings>
        <client>
          <endpoint address="http://xxx.com/Service1.svc"
              binding="basicHttpBinding" bindingConfiguration="BasicHttpBinding_IScanImages"
              contract="IScanImages" name="BasicHttpBinding_IScanImages" />
        </client>
      </system.serviceModel>

    ServiceReference.Clientconfig

    <configuration>
        <system.serviceModel>
            <bindings>
                <basicHttpBinding>
                    <binding name="BasicHttpBinding_IScanImages" maxBufferSize="2147483647"
                        maxReceivedMessageSize="2147483647">
                        <security mode="None" />
                    </binding>
                </basicHttpBinding>
            </bindings>
            <client>
                <endpoint address="http://xx.com/Service1.svc"
                    binding="basicHttpBinding" bindingConfiguration="BasicHttpBinding_IScanImages"
                    contract="ServiceReference2.IScanImages" name="BasicHttpBinding_IScanImages" />
            </client>
        </system.serviceModel>
    </configuration>
    
    i am consuming this WCF from silverlight and silverlight throws following error.

    "The remote server returned an error: NotFound."

    Please help me where is the error......

    Monday, July 15, 2013 2:22 AM

Answers