Changing from WSDualHttpBinding to NetTcpBinding doesn't seem to work - wcf

I have a client-server application. I have been using WsDualHttpBinding for callbacks and all is well. The WCF service uses x509Certificates. The app will be hosted within the org's intranet. I have opted to configure NetTcpBinding on a dedicated port. The WCF Service runs on NetworkService and accesses MSSQL Server DB on login NetworkService.
The Wcf services are hosted on a website in IIS.
The app.config for the client looks like this
<configuration>
<system.net>
<connectionManagement>
<remove address="*" />
<add address="*" maxconnection="200" />
</connectionManagement>
</system.net>
<system.serviceModel>
<behaviors>
<endpointBehaviors>
<behavior name="certForClient">
<CustomBehaviorExtension />
<clientCredentials>
<serviceCertificate>
<authentication certificateValidationMode="None" revocationMode="NoCheck" />
</serviceCertificate>
<clientCertificate findValue="localhost" x509FindType="FindBySubjectName" storeLocation="CurrentUser" storeName="My" />
</clientCredentials>
<dataContractSerializer maxItemsInObjectGraph="2147483647" />
</behavior>
</endpointBehaviors>
</behaviors>
<bindings>
<netTcpBinding>
<binding closeTimeout="00:01:00" openTimeout="00:01:00" receiveTimeout="00:10:00" sendTimeout="00:01:00"
transactionFlow="true" transferMode="Buffered" transactionProtocol="OleTransactions"
hostNameComparisonMode="StrongWildcard" listenBacklog="3000" maxBufferPoolSize="2147483647"
maxBufferSize="2147483647" maxConnections="1500" maxReceivedMessageSize="2147483647">
<readerQuotas maxDepth="32" maxStringContentLength="2147483647" maxArrayLength="2147483647"
maxBytesPerRead="2147483647" maxNameTableCharCount="16384" />
<reliableSession ordered="true" inactivityTimeout="20:00:10" enabled="true" />
<security mode="Message">
<transport clientCredentialType="Windows" protectionLevel="EncryptAndSign" />
<message clientCredentialType="UserName" algorithmSuite="Default" />
</security>
</binding>
</netTcpBinding>
</bindings>
<client>
<endpoint address="net.tcp://localhost/Service1.svc"
binding="netTcpBinding"
contract="SampleWCFProxy.IService1"
behaviorConfiguration="certForClient">
<identity>
<dns value="localhost" />
</identity>
</endpoint>
<endpoint address="net.tcp://localhost/Service2.svc"
binding="netTcpBinding"
contract="SampleWCFProxy.IService2"
behaviorConfiguration="certForClient">
<identity>
<dns value="localhost" />
</identity>
</endpoint>
</client>
</system.serviceModel>
</configuration>
The web.config looks like this
<configuration>
<system.net>
<connectionManagement>
<remove address="*" />
<add address="*" maxconnection="200" />
</connectionManagement>
</system.net>
<system.serviceModel>
<bindings>
<netTcpBinding>
<binding closeTimeout="00:01:00" openTimeout="00:01:00" receiveTimeout="00:10:00" sendTimeout="00:01:00"
transactionFlow="true" transferMode="Buffered" transactionProtocol="OleTransactions"
hostNameComparisonMode="StrongWildcard" listenBacklog="3000" maxBufferPoolSize="2147483647"
maxBufferSize="2147483647" maxConnections="1500" maxReceivedMessageSize="2147483647">
<readerQuotas maxDepth="32" maxStringContentLength="2147483647" maxArrayLength="2147483647"
maxBytesPerRead="2147483647" maxNameTableCharCount="16384" />
<reliableSession ordered="true" inactivityTimeout="20:00:10" enabled="true" />
<security mode="Message">
<transport clientCredentialType="Windows" protectionLevel="EncryptAndSign" />
<message clientCredentialType="UserName" algorithmSuite="Default" />
</security>
</binding>
</netTcpBinding>
</bindings>
<behaviors>
<behavior name="ApplicationFaults">
<ApplicationBehaviorExtension />
<CustomBehaviorExtension />
</behavior>
</endpointBehaviors>
<serviceBehaviors>
<behavior name="MyServiceBehavior">
<serviceCredentials>
<serviceCertificate findValue="localhost" storeLocation="LocalMachine" storeName="My" x509FindType="FindBySubjectName" />
</serviceCredentials>
<serviceSecurityAudit auditLogLocation="Application" serviceAuthorizationAuditLevel="Failure" messageAuthenticationAuditLevel="SuccessOrFailure" />
<dataContractSerializer maxItemsInObjectGraph="2147483647" />
<serviceThrottling maxConcurrentCalls="1500" maxConcurrentSessions="1500" maxConcurrentInstances="1500" />
</behavior>
<behavior name="">
<serviceMetadata httpGetEnabled="false" />
<serviceDebug includeExceptionDetailInFaults="true" />
</behavior>
</serviceBehaviors>
</behaviors>
<services>
<service behaviorConfiguration="MyServiceBehavior" name="SampleWCF.Services.Service1">
<endpoint address=""
binding="netTcpBinding"
contract="SampleWCF.Services.Contracts.IService1">
<identity>
<dns value="localhost" />
</identity>
</endpoint>
<endpoint address="mex" binding="mexTcpBinding" contract="IMetadataExchange" />
<host>
<baseAddresses>
<add baseAddress="net.tcp://localhost:7860/Service1" />
</baseAddresses>
</host>
</service>
<service behaviorConfiguration="MyServiceBehavior" name="SampleWCF.Services.Service2">
<endpoint address=""
binding="netTcpBinding"
contract="SampleWCF.Services.Contracts.IService2">
<identity>
<dns value="localhost" />
</identity>
</endpoint>
<endpoint address="mex" binding="mexTcpBinding" contract="IMetadataExchange" />
<host>
<baseAddresses>
<add baseAddress="net.tcp://localhost:7860/Service2" />
</baseAddresses>
</host>
</service>
</services>
</system.serviceModel>
</configuration>
The IIS end looks like this
I have looked at related posts for configurations but none seem to work.
From this situation, these questions arise:
What am I doing wrong?
Which user should be used to access the database by the application pool?

Related

HTTPS enablement for WCF service hosted as windows service

We have a WCF service hosted as windows service. Now we are trying to enable https for the URL exposed by this service. We are getting an error as follows "Could not find a base address that matches scheme http for the endpoint with binding WSHttpBinding. Registered base address schemes are [https]." Below is my config:
<?xml version="1.0"?>
<configuration>
<appSettings>
<add key="ApplicationName" value="WCFService"/>
<add key="MassiveServiceURL" value="http://ausuwcdmcctrl01.aus.amer.dell.com:9000/MassiveService/" />
<add key="StartODMService" value="true"/>
<add key="MassivePackageDescription" value="AFP Sync"/>
<add key="MassiveCustomerGroup" value="BTOA"/>
<add key="MassivePriority" value="HIGH"/>
<add key="MassiveAccount" value="americas\ServiceMassiveTest"/>
<add key="AFPWcfServiceURL" value="https://kuliwafpweb01.kul.apac.dell.com:8900/AfpWcfService/"/>
<add key="MassiveWebServiceBinding" value="BasicHttpBinding_IMassiveService"/>
<add key="ArchiveGAFPFolder" value="GAFP"/>
</appSettings>
<connectionStrings>
<add name="AFPDBConnString" connectionString="Data Source=PENDWCDDB01.pen.apac.dell.com;Initial Catalog=AFPSIT;Integrated Security=True" providerName="System.Data.SqlClient"/>
<add name="GlobalAfp4Log" connectionString="data source=PENDWCDDB01.pen.apac.dell.com;initial catalog=AFPSITLOG;integrated security=true" providerName="System.Data.SqlClient"/>
<add name="AgileDBConnString" connectionString="6923977bd9a34ce291c775ca531efe7f64c2cf1422100eb1408676deb90a878c9de0fe037305b00724e522e7387851f197446de48beb12ec6848189ce7f28ee8b4648559d951b888e7f0a4fe4595b47462bb0d420cf1e893f18b6b5e4e14c35c75d8f09481f6761d648ce08d8b1fd51ba7c749bb8e5d4a4dd4cde96841e94f3a3c735fe2a641ce655b875c1fb1d1043f3d848ffe197cd73ab6b4e268ce9df815f395d1f2cadef247698d770c20102aeb" providerName="System.Data.OracleClient"/>
</connectionStrings>
<system.serviceModel>
<services>
<service name="AFPWcfServiceLibrary.AfpWcfService" behaviorConfiguration="AFPWCFService">
<host>
<baseAddresses>
<add baseAddress="https://kuliwafpweb01.kul.apac.dell.com:8900/AfpWcfService/"/>
</baseAddresses>
</host>
<endpoint address="" binding="basicHttpBinding" contract="AFPWcfServiceLibrary.IAfpWcfService" bindingConfiguration="BasicHttpBinding_IGAFPPartsInformationService" />
<endpoint address="" binding="basicHttpBinding" contract="AFPWcfServiceLibrary.IGAFPPartsInformationService" bindingConfiguration="BasicHttpBinding_IGAFPPartsInformationService"/>
<endpoint address="mex" binding="mexHttpsBinding" contract="IMetadataExchange"/>
</service>
<service name="AFPWcfServiceLibrary.OdmWcfService" behaviorConfiguration="AFPWCFService" >
<endpoint address="" binding="wsHttpBinding" contract="AFPWcfServiceLibrary.IOdmWcfService" bindingConfiguration="MyBinding">
<identity>
<dns value="localhost" />
</identity>
</endpoint>
<endpoint address="mex" binding="mexHttpsBinding" contract="IMetadataExchange" />
<host>
<baseAddresses>
<add baseAddress="https://kuliwafpweb01.kul.apac.dell.com:8900/OdmWcfService/" />
</baseAddresses>
</host>
</service>
</services>
<behaviors>
<serviceBehaviors>
<behavior name="AFPWCFService">
<dataContractSerializer maxItemsInObjectGraph="65536000" />
<serviceMetadata httpGetEnabled="True"/>
<serviceThrottling maxConcurrentCalls="400" maxConcurrentInstances="400" maxConcurrentSessions="100"/>
<serviceDebug includeExceptionDetailInFaults="True"/>
</behavior>
</serviceBehaviors>
</behaviors>
<bindings>
<basicHttpBinding>
<binding name="BasicHttpBinding_IAfpWcfService" closeTimeout="00:01:00"
openTimeout="00:01:00" receiveTimeout="00:15:00" sendTimeout="00:15:00"
allowCookies="false" bypassProxyOnLocal="false" hostNameComparisonMode="StrongWildcard"
maxBufferSize="2147483647" maxBufferPoolSize="524288"
maxReceivedMessageSize="2147483647" messageEncoding="Text"
textEncoding="utf-8" transferMode="Buffered" useDefaultWebProxy="true">
<readerQuotas maxDepth="32" maxStringContentLength="8192" maxArrayLength="16384"
maxBytesPerRead="4096" maxNameTableCharCount="16384" />
<security mode="Transport">
<transport clientCredentialType="None" proxyCredentialType="None" realm="" />
<message clientCredentialType="UserName" algorithmSuite="Default" />
</security>
</binding>
<binding name="BasicHttpBinding_IGAFPPartsInformationService" closeTimeout="00:01:00"
openTimeout="00:01:00" receiveTimeout="00:15:00" sendTimeout="00:15:00"
allowCookies="false" bypassProxyOnLocal="false" hostNameComparisonMode="StrongWildcard"
maxBufferSize="2147483647" maxBufferPoolSize="524288"
maxReceivedMessageSize="2147483647" messageEncoding="Text"
textEncoding="utf-8" transferMode="Buffered" useDefaultWebProxy="true">
<readerQuotas maxDepth="32" maxStringContentLength="8192" maxArrayLength="16384"
maxBytesPerRead="4096" maxNameTableCharCount="16384" />
<security mode="Transport">
<transport clientCredentialType="None" proxyCredentialType="None" realm="" />
<message clientCredentialType="UserName" algorithmSuite="Default" />
</security>
</binding>
<binding name="BasicHttpBinding_IMassiveService" closeTimeout="00:10:00"
openTimeout="00:10:00" receiveTimeout="00:10:00" sendTimeout="00:10:00"
allowCookies="false" bypassProxyOnLocal="false" hostNameComparisonMode="StrongWildcard"
maxBufferSize="6553600" maxBufferPoolSize="524288" maxReceivedMessageSize="6553600"
messageEncoding="Text" textEncoding="utf-8" transferMode="Buffered"
useDefaultWebProxy="true">
<readerQuotas maxDepth="32" maxStringContentLength="8192" maxArrayLength="1638400"
maxBytesPerRead="4096" maxNameTableCharCount="1638400" />
<security mode="Transport">
<transport clientCredentialType="None" proxyCredentialType="None"
realm="">
<extendedProtectionPolicy policyEnforcement="Never" />
</transport>
<message clientCredentialType="UserName" algorithmSuite="Default" />
</security>
</binding>
<binding name="BasicHttpBinding_IArchiveService" closeTimeout="00:01:00"
openTimeout="00:01:00" receiveTimeout="00:10:00" sendTimeout="00:10:00"
allowCookies="false" bypassProxyOnLocal="false" hostNameComparisonMode="StrongWildcard"
maxBufferSize="6553600" maxBufferPoolSize="524288" maxReceivedMessageSize="6553600"
messageEncoding="Text" textEncoding="utf-8" transferMode="Buffered"
useDefaultWebProxy="true">
<readerQuotas maxDepth="32" maxStringContentLength="8192" maxArrayLength="1638400"
maxBytesPerRead="4096" maxNameTableCharCount="1638400" />
<security mode="Transport">
<transport clientCredentialType="None" proxyCredentialType="None" realm="" />
<message clientCredentialType="UserName" algorithmSuite="Default" />
</security>
</binding>
</basicHttpBinding>
<wsHttpBinding>
<binding name="MyBinding" closeTimeout="00:10:00"
openTimeout="00:10:00" receiveTimeout="00:10:00" sendTimeout="00:15:00"
bypassProxyOnLocal="false" transactionFlow="false" hostNameComparisonMode="StrongWildcard"
maxBufferPoolSize="52428800" maxReceivedMessageSize="6553600"
messageEncoding="Text" textEncoding="utf-8" useDefaultWebProxy="true"
allowCookies="false">
<readerQuotas maxDepth="320000" maxStringContentLength="8192000" maxArrayLength="50384000"
maxBytesPerRead="4096000" maxNameTableCharCount="1638400" />
<reliableSession ordered="true" inactivityTimeout="00:10:00" enabled="true" />
<security mode="None">
<transport clientCredentialType="Windows" proxyCredentialType="None" realm="" />
<message clientCredentialType="Windows" negotiateServiceCredential="true"
algorithmSuite="Default" />
</security>
</binding>
</wsHttpBinding>
</bindings>
<client>
<endpoint address="http://ausuwcdmcctrl01.aus.amer.dell.com:9000/MassiveService/"
binding="basicHttpBinding" bindingConfiguration="BasicHttpBinding_IMassiveService"
contract="IMassiveService"
name="BasicHttpBinding_IMassiveService" />
<endpoint address="http://kuliwafparc01.kul.apac.dell.com:8732/AFPArchiveServiceLibrary/ArchiveService/"
binding="basicHttpBinding" bindingConfiguration="BasicHttpBinding_IArchiveService"
contract="Dell.AFP.Common.ServiceClient.ArchiveService.IArchiveService"
name="BasicHttpBinding_IArchiveService" />
</client>
</system.serviceModel>
</configuration>

add service reference failed in WCF

My solution is having 3 projects , 1 for linq and .dbml , 1 website and 1 WCF services . WCF services project has many WCF services in it, each WCF is having separate Interface and class file. I added one more WCF in in as per the project requirement. the WCF build and deployed successfully, I set the WCF project as the start-up project the run the solution then it says that service is started.
I tried to add the reference of this WCF service in the WebSite, the discover button shows the newly added WCF in the list of services available within the solution.
I found my service, gave a suitable name and added, then the error message appeared on the bottom left corner of the window "Add Service reference failed"
No other error or detailed message is shown.
Please help!
This is the App.Config of service project
<service behaviorConfiguration="WCFSrv.ServiceBehavior"
name="WCFSrv.SalesMIReportService">
<endpoint address="" binding="wsHttpBinding" contract="WCFSrv.IReportDataProvider">
<identity>
<dns value="localhost" />
</identity>
</endpoint>
<endpoint address="mex" binding="mexHttpBinding" contract="IMetadataExchange" />
<host>
<baseAddresses>
<add baseAddress="http://localhost:8731/Design_Time_Addresses/WCFSrv/SalesMIReportService/" />
</baseAddresses>
</host>
</service>
<behaviors>
<serviceBehaviors>
<behavior name="WCFSrv.ServiceBehavior">
<serviceMetadata httpGetEnabled="true" />
<serviceDebug includeExceptionDetailInFaults="false" />
</behavior>
</serviceBehaviors>
</behaviors>
<bindings>
<wsHttpBinding>
<binding name="WSHttpBinding_IDriverSalesService" closeTimeout="00:01:00"
openTimeout="00:01:00" receiveTimeout="00:10:00" sendTimeout="00:01:00"
bypassProxyOnLocal="false" transactionFlow="true" hostNameComparisonMode="StrongWildcard"
maxBufferPoolSize="524288" maxReceivedMessageSize="65536"
messageEncoding="Text" textEncoding="utf-8" useDefaultWebProxy="true"
allowCookies="false">
<readerQuotas maxDepth="32" maxStringContentLength="8192" maxArrayLength="16384"
maxBytesPerRead="4096" maxNameTableCharCount="16384" />
<reliableSession ordered="true" inactivityTimeout="00:10:00"
enabled="false" />
<security mode="None">
<transport clientCredentialType="Windows" proxyCredentialType="None"
realm="" />
<message clientCredentialType="Windows" negotiateServiceCredential="true" />
</security>
</binding>
</wsHttpBinding>
</bindings>
Below is the complete App.config
<?xml version="1.0"?>
<configuration>
<configSections>
<sectionGroup name="applicationSettings" type="System.Configuration.ApplicationSettingsGroup, System, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<section name=Global.Diagnostics.Properties.Settings" type="System.Configuration.ClientSettingsSection="", System="", Version="2.0.0.0", Culture="neutral", PublicKeyToken=b77a5c561934e089" requirePermission="false="""/>
</sectionGroup>
</configSections>
<appSettings>
<add key="databaseServer" value="DBSERVER\DEV1P1"/>
<add key="EventLogSource" value=""/>
<add key="EventLogName" value=""/>
<add key="ClientSettingsProvider.ServiceUri" value=""/>
<add key="DocumentLocation" value="X:\\\Client\Web\Site\pdf"/>
<add key="Proxy" value="172.22.53.35"/>
<add key="COMServiceLocatorUrl" value="http://iisdbhxv04/COMServiceLocator/COMServiceLocator.asmx"/>
<!--***********************************************
The AppSetting Keys used to EPYX CodeVehicleService
***************************************************-->
<!--Move properties to LIA-->
<!--Ids for the service booking components-->
<add key="1LinkServiceId" value="1" />
<add key="connectServiceId" value="2" />
<!--Proxy Server Settings (outbound security credentials)-->
<add key="liveServer" value="false" />
<add key="proxyServer" value="http://172.22.55.35:80" />
<!--The type of Code booking that will be done. The value of this setting can be either "Connect" or "Downtime"-->
<!--<add key="CodeBooking" value="Connect"/>-->
<add key="CodeBooking" value="Downtime" />
<!--Test credentials for Code Booking -->
<add key="CodeOriginatorId" value="8" />
<add key="CodePassword" value="XMLTEST" />
<!--Test Components -->
<add key="CodeNetworkBookingService" value="https://www.1link.com/uk/test-hn/site/OperatorIntegration.asmx" />
</appSettings>
<system.diagnostics>
<sources>
<source name="System.ServiceModel" switchValue="Warning, Error" propagateActivity="true">
<listeners>
<add name="xml"/>
</listeners>
</source>
</sources>
<sharedListeners>
<add name="xml" type="System.Diagnostics.XmlWriterTraceListener" initializeData="c:\temp\Traces_.svclog"/>
</sharedListeners>
</system.diagnostics>
<system.web>
<compilation debug="true"/>
<membership defaultProvider="ClientAuthenticationMembershipProvider">
<providers>
<add name="ClientAuthenticationMembershipProvider" type="System.Web.ClientServices.Providers.ClientFormsAuthenticationMembershipProvider, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" serviceUri=""/>
</providers>
</membership>
<roleManager defaultProvider="ClientRoleProvider" enabled="true">
<providers>
<add name="ClientRoleProvider" type="System.Web.ClientServices.Providers.ClientRoleProvider, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" serviceUri="" cacheTimeout="86400"/>
</providers>
</roleManager>
</system.web>
<!-- When deploying the service library project, the content of the config file must be added to the host's
app.config file. System.Configuration does not support config files for libraries. -->
<system.serviceModel>
<diagnostics>
<messageLogging logMalformedMessages="true" logMessagesAtServiceLevel="true" logMessagesAtTransportLevel="true"/>
</diagnostics>
<extensions>
<behaviorExtensions>
<add name="ServiceErrorHandler" type="Global.ServiceModel.ServiceErrorHandlerBehaviorExtensionElement", Temp.Global.ServiceModel="", Version="1.0.0.0", Culture="neutral", PublicKeyToken=null"/>
</behaviorExtensions>
</extensions>
<services>
<service behaviorConfiguration="WCFSrv.ServiceBehavior"
name="WCFSrv.Service">
<endpoint address="" binding="wsHttpBinding" contract="WCFSrv.ICommon">
<identity>
<dns value="localhost" />
</identity>
</endpoint>
<endpoint address="mex" binding="mexHttpBinding" contract="IMetadataExchange" />
<host>
<baseAddresses>
<add baseAddress="http://localhost:8731/Design_Time_Addresses/WCFSrv/Service/" />
</baseAddresses>
</host>
</service>
<service behaviorConfiguration="WCFSrv.ServiceBehavior"
name="WCFSrv.SalesMIPublicationService">
<endpoint address="" binding="wsHttpBinding" contract="WCFSrv.IPublicationDataProvider">
<identity>
<dns value="localhost" />
</identity>
</endpoint>
<endpoint address="mex" binding="mexHttpBinding" contract="IMetadataExchange" />
<host>
<baseAddresses>
<add baseAddress="http://localhost:8731/Design_Time_Addresses/WCFSrv/SalesMIPublicationService/" />
</baseAddresses>
</host>
</service>
<service behaviorConfiguration="WCFSrv.ServiceBehavior"
name="WCFSrv.CodeBookingService">
<endpoint address="" binding="wsHttpBinding" contract="WCFSrv.ICodeBooking">
<identity>
<dns value="localhost" />
</identity>
</endpoint>
<endpoint address="mex" binding="mexHttpBinding" contract="IMetadataExchange" />
<host>
<baseAddresses>
<add baseAddress="http://localhost:8731/Design_Time_Addresses/WCFSrv/CodeBookingService/" />
</baseAddresses>
</host>
</service>
<service behaviorConfiguration="LargeMessageBehavior" name="WCFSrv.QuoteService">
<endpoint address="" binding="wsHttpBinding" contract="WCFSrv.IQuote">
<identity>
<dns value="localhost" />
</identity>
</endpoint>
<endpoint address="mex" behaviorConfiguration="" binding="mexHttpBinding"
contract="IMetadataExchange" />
<host>
<baseAddresses>
<add baseAddress="http://localhost:8731/Design_Time_Addresses/WCFSrv/QuoteService/" />
</baseAddresses>
</host>
</service>
<service behaviorConfiguration="WCFSrv.ServiceBehavior"
name="WCFSrv.LcvRateService">
<endpoint address="" behaviorConfiguration="QuoteEndpointBehaviour"
binding="wsHttpBinding" contract="WCFSrv.ILcvRate">
<identity>
<dns value="localhost" />
</identity>
</endpoint>
<endpoint address="mex" behaviorConfiguration="" binding="mexHttpBinding"
contract="IMetadataExchange" />
<host>
<baseAddresses>
<add baseAddress="http://localhost:8731/Design_Time_Addresses/WCFSrv/LcvRateService/" />
</baseAddresses>
</host>
</service>
<service behaviorConfiguration="LargeMessageBehavior" name="WCFSrv.AlertsService">
<endpoint address="" binding="wsHttpBinding" contract="WCFSrv.IAlerts">
<identity>
<dns value="localhost" />
</identity>
</endpoint>
<endpoint address="mex" behaviorConfiguration="" binding="mexHttpBinding"
contract="IMetadataExchange" />
<host>
<baseAddresses>
<add baseAddress="http://localhost:8731/Design_Time_Addresses/WCFSrv/AlertsService/" />
</baseAddresses>
</host>
</service>
<service behaviorConfiguration="WCFSrv.ServiceBehavior"
name="WCFSrv.PlacementService">
<endpoint address="" binding="wsHttpBinding" contract="WCFSrv.IPlacement">
<identity>
<dns value="localhost" />
</identity>
</endpoint>
<endpoint address="mex" binding="mexHttpBinding" contract="IMetadataExchange" />
<host>
<baseAddresses>
<add baseAddress="http://localhost:8731/Design_Time_Addresses/WCFSrv/PlacementService/" />
</baseAddresses>
</host>
</service>
<service behaviorConfiguration="WCFSrv.ServiceBehavior"
name="WCFSrv.PublicationService">
<endpoint address="" binding="wsHttpBinding" contract="WCFSrv.IPublication">
<identity>
<dns value="localhost" />
</identity>
</endpoint>
<endpoint address="mex" binding="mexHttpBinding" contract="IMetadataExchange" />
<host>
<baseAddresses>
<add baseAddress="http://localhost:8731/Design_Time_Addresses/WCFSrv/PublicationService/" />
</baseAddresses>
</host>
</service>
<service behaviorConfiguration="WCFSrv.ServiceBehavior"
name="WCFSrv.AccessService">
<endpoint address="" binding="wsHttpBinding" contract="WCFSrv.IAccess">
<identity>
<dns value="localhost" />
</identity>
</endpoint>
<endpoint address="mex" binding="mexHttpBinding" contract="IMetadataExchange" />
<host>
<baseAddresses>
<add baseAddress="http://localhost:8731/Design_Time_Addresses/WCFSrv/AccessService/" />
</baseAddresses>
</host>
</service>
<service behaviorConfiguration="WCFSrv.ServiceBehavior"
name="WCFSrv.ServicesService">
<endpoint address="" binding="wsHttpBinding" contract="WCFSrv.IServices">
<identity>
<dns value="localhost" />
</identity>
</endpoint>
<endpoint address="mex" binding="mexHttpBinding" contract="IMetadataExchange" />
<host>
<baseAddresses>
<add baseAddress="http://localhost:8731/Design_Time_Addresses/WCFSrv/ServicesService/" />
</baseAddresses>
</host>
</service>
<service behaviorConfiguration="WCFSrv.ServiceBehavior"
name="WCFSrv.RoadService">
<endpoint address="" binding="wsHttpBinding" contract="WCFSrv.IRoadServices">
<identity>
<dns value="localhost" />
</identity>
</endpoint>
<endpoint address="mex" binding="mexHttpBinding" contract="IMetadataExchange" />
<host>
<baseAddresses>
<add baseAddress="http://localhost:8731/Design_Time_Addresses/WCFSrv/RoadService/" />
</baseAddresses>
</host>
</service>
<service behaviorConfiguration="WCFSrv.ServiceBehavior"
name="WCFSrv.AverageLoggerService">
<endpoint address="" binding="wsHttpBinding" contract="WCFSrv.IAverageLogger" />
<endpoint address="mex" binding="mexHttpBinding" contract="IMetadataExchange" />
<host>
<baseAddresses>
<add baseAddress="http://localhost:8731/Design_Time_Addresses/WCFSrv/AverageLoggerService/" />
</baseAddresses>
</host>
</service>
<service behaviorConfiguration="WCFSrv.ServiceBehavior"
name="WCFSrv.DriverCertificationService">
<endpoint address="" binding="wsHttpBinding" contract="WCFSrv.IDriverCertification" />
<endpoint address="mex" binding="mexHttpBinding" contract="IMetadataExchange" />
<host>
<baseAddresses>
<add baseAddress="http://localhost:8731/Design_Time_Addresses/WCFSrv/DriverCertificationService/" />
</baseAddresses>
</host>
</service>
<service behaviorConfiguration="WCFSrv.ServiceBehavior"
name="WCFSrv.ImscanService">
<endpoint address="" binding="wsHttpBinding" contract="WCFSrv.IImscanServices" />
<endpoint address="mex" binding="mexHttpBinding" contract="IMetadataExchange" />
<host>
<baseAddresses>
<add baseAddress="http://localhost:8731/Design_Time_Addresses/WCFSrv/ImscanService/" />
</baseAddresses>
</host>
</service>
<service behaviorConfiguration="WCFSrv.ServiceBehavior"
name="WCFSrv.NominationService">
<endpoint address="" binding="wsHttpBinding" contract="WCFSrv.INomination" />
<endpoint address="mex" binding="mexHttpBinding" contract="IMetadataExchange" />
<host>
<baseAddresses>
<add baseAddress="http://localhost:8731/Design_Time_Addresses/WCFSrv/NominationService/" />
</baseAddresses>
</host>
</service>
<service behaviorConfiguration="WCFSrv.ServiceBehavior"
name="WCFSrv.UserRegistrationService">
<endpoint address="" binding="wsHttpBinding" contract="WCFSrv.IUserRegistration" />
<endpoint address="mex" binding="mexHttpBinding" contract="IMetadataExchange" />
<host>
<baseAddresses>
<add baseAddress="http://localhost:8731/Design_Time_Addresses/WCFSrv/UserRegistrationService/" />
</baseAddresses>
</host>
</service>
<service name="WCFSrv.Service1">
<endpoint address="" binding="wsHttpBinding" contract="WCFSrv.IService1">
<identity>
<dns value="localhost" />
</identity>
</endpoint>
<endpoint address="mex" binding="mexHttpBinding" contract="IMetadataExchange" />
<host>
<baseAddresses>
<add baseAddress="http://localhost:8732/Design_Time_Addresses/WCFSrv/Service1/" />
</baseAddresses>
</host>
</service>
<service behaviorConfiguration="LargeMessageBehavior" name="WCFSrv.CvAccessoryService">
<endpoint address="" binding="wsHttpBinding" contract="WCFSrv.ICvAccessory">
<identity>
<dns value="localhost" />
</identity>
</endpoint>
<endpoint address="mex" binding="mexHttpBinding" contract="IMetadataExchange" />
<host>
<baseAddresses>
<add baseAddress="http://localhost:8731/Design_Time_Addresses/WCFSrv/CvAccessoryService/" />
</baseAddresses>
</host>
</service>
<service name="WCFSrv.PoolFleetManagementService">
<endpoint address="" binding="wsHttpBinding" contract="WCFSrv.IPoolFleetManagementService">
<identity>
<dns value="localhost" />
</identity>
</endpoint>
<endpoint address="mex" binding="mexHttpBinding" contract="IMetadataExchange" />
<host>
<baseAddresses>
<add baseAddress="http://localhost:8731/Design_Time_Addresses/WCFSrv/PoolFleetManagementService/" />
</baseAddresses>
</host>
</service>
<service behaviorConfiguration="WCFSrv.ServiceBehavior"
name="WCFSrv.ServiceFormsService">
<endpoint address="" binding="wsHttpBinding" contract="WCFSrv.IServiceFormService">
<identity>
<dns value="localhost" />
</identity>
</endpoint>
<endpoint address="mex" binding="mexHttpBinding" contract="IMetadataExchange" />
<host>
<baseAddresses>
<add baseAddress="http://localhost:8731/Design_Time_Addresses/WCFSrv/ServiceFormsService/" />
</baseAddresses>
</host>
</service>
<service behaviorConfiguration="WCFSrv.ServiceBehavior"
name="WCFSrv.DriverSalesService">
<endpoint address="" binding="wsHttpBinding" contract="WCFSrv.IDriverSalesService">
<identity>
<dns value="localhost" />
</identity>
</endpoint>
<endpoint address="mex" binding="mexHttpBinding" contract="IMetadataExchange" />
<host>
<baseAddresses>
<add baseAddress="http://localhost:8731/Design_Time_Addresses/WCFSrv/DriverSalesService/" />
</baseAddresses>
</host>
</service>
</services>
<behaviors>
<endpointBehaviors>
<behavior name="QuoteEndpointBehaviour">
<dataContractSerializer maxItemsInObjectGraph="655360" />
</behavior>
</endpointBehaviors>
<serviceBehaviors>
<behavior name="WCFSrv.ServiceBehavior">
<serviceMetadata httpGetEnabled="true" />
<serviceDebug includeExceptionDetailInFaults="false" />
</behavior>
<behavior name="LargeMessageBehavior">
<dataContractSerializer maxItemsInObjectGraph="2147483647" />
<serviceMetadata httpGetEnabled="true" />
<serviceDebug includeExceptionDetailInFaults="true" />
</behavior>
<behavior name="">
<serviceMetadata httpGetEnabled="true" />
<serviceDebug includeExceptionDetailInFaults="false" />
</behavior>
</serviceBehaviors>
</behaviors>
<bindings>
<basicHttpBinding>
<binding name="MotorServiceSoap" closeTimeout="00:01:00" openTimeout="00:01:00"
receiveTimeout="00:10:00" sendTimeout="00:01:00" allowCookies="false"
bypassProxyOnLocal="false" hostNameComparisonMode="StrongWildMotord"
maxBufferSize="655366" maxBufferPoolSize="524288" maxReceivedMessageSize="655366"
messageEncoding="Text" textEncoding="utf-8" transferMode="Buffered"
useDefaultWebProxy="true">
<readerQuotas maxDepth="32" maxStringContentLength="8192" maxArrayLength="16384"
maxBytesPerRead="4096" maxNameTableCharCount="16384" />
<security mode="None">
<transport clientCredentialType="None" proxyCredentialType="None"
realm="" />
<message clientCredentialType="UserName" algorithmSuite="Default" />
</security>
</binding>
</basicHttpBinding>
<wsHttpBinding>
<binding name="WSHttpBinding_IDriverSalesService" closeTimeout="00:01:00"
openTimeout="00:01:00" receiveTimeout="00:10:00" sendTimeout="00:01:00"
bypassProxyOnLocal="false" transactionFlow="true" hostNameComparisonMode="StrongWildMotord"
maxBufferPoolSize="524288" maxReceivedMessageSize="65536"
messageEncoding="Text" textEncoding="utf-8" useDefaultWebProxy="true"
allowCookies="false">
<readerQuotas maxDepth="32" maxStringContentLength="8192" maxArrayLength="16384"
maxBytesPerRead="4096" maxNameTableCharCount="16384" />
<reliableSession Placemented="true" inactivityTimeout="00:10:00"
enabled="false" />
<security mode="None">
<transport clientCredentialType="Windows" proxyCredentialType="None"
realm="" />
<message clientCredentialType="Windows" negotiateServiceCredential="true" />
</security>
</binding>
</wsHttpBinding>
</bindings>
<client>
<endpoint address="http://172.22.191.44/MotorService/MotorService.asmx" binding="basicHttpBinding" bindingConfiguration="MotorServiceSoap" contract="Motor.MotorServiceSoap" name="MotorServiceSoap"/>
<endpoint address="http://iisdbhxv02.prod.ltsbafd.net//CONNECT/LIVECONTRACTS/DRIVERSALES/DriverSalesService.svc"
binding="wsHttpBinding" bindingConfiguration="WSHttpBinding_IDriverSalesService"
contract="DriverSalesSrv.IDriverSalesService" name="WSHttpBinding_IDriverSalesService" />
</client>
</system.serviceModel>
<applicationSettings>
<Temp.Global.Diagnostics.Properties.Settings>
<setting name="Folder" serializeAs="String">
<value>C:\WebServices\WebServiceUsageLogs</value>
</setting>
</Temp.Global.Diagnostics.Properties.Settings>
</applicationSettings>
<startup>
<supportedRuntime version="v4.0" sku=""NETFramework,Version=v4.0"/>
</startup>
</configuration>

Issue with https with webHttpBinding

I am facing problem while implementing https with webHttpBinding. I am getting below error
Could not find a base address that matches scheme https for the endpoint with binding WebHttpBinding. Registered base address schemes are [http]
Below is my web.config code. Please help
<system.serviceModel>
<bindings>
<webHttpBinding>
<binding name="webHttpMobile" maxReceivedMessageSize="2147483647">
<security mode="Transport">
<transport clientCredentialType="None" />
</security>
<readerQuotas maxStringContentLength="2147483647" />
</binding>
</webHttpBinding>
</bindings>
<services>
<service behaviorConfiguration="mybehavior" name="SoIn.Services.MobileWebRole.Command">
<endpoint address="mobile" behaviorConfiguration="web" binding="webHttpBinding" bindingConfiguration="webHttpMobile" contract="SoIn.Services.MobileWebRole.ICommand" />
<endpoint address="mex" binding="mexHttpBinding" contract="IMetadataExchange" />
</service>
<service behaviorConfiguration="mybehavior" name="SoIn.Services.MobileWebRole.Query">
<endpoint address="mobile" behaviorConfiguration="web" binding="webHttpBinding" bindingConfiguration="webHttpMobile" contract="SoIn.Services.MobileWebRole.IQuery" />
<endpoint address="mex" binding="mexHttpBinding" contract="IMetadataExchange" />
</service>
<service behaviorConfiguration="mybehavior" name="SoIn.Services.MobileWebRole.Configuration">
<endpoint address="mobile" behaviorConfiguration="web" binding="webHttpBinding" bindingConfiguration="webHttpMobile" contract="SoIn.Services.MobileWebRole.IConfiguration" />
<endpoint address="mex" binding="mexHttpBinding" contract="IMetadataExchange" />
</service>
</services>
<behaviors>
<endpointBehaviors>
<behavior name="web">
<webHttp />
</behavior>
</endpointBehaviors>
<serviceBehaviors>
<behavior name="mybehavior">
<serviceMetadata httpsGetEnabled="true" />
<serviceDebug includeExceptionDetailInFaults="true" />
</behavior>
<behavior name="">
<serviceMetadata httpGetEnabled="true" />
<serviceDebug includeExceptionDetailInFaults="false" />
</behavior>
</serviceBehaviors>
</behaviors>
<serviceHostingEnvironment multipleSiteBindingsEnabled="true" />
Try below mentioned configuration.
<system.serviceModel>
<bindings>
<webHttpBinding>
<binding name="webHttpMobile" maxReceivedMessageSize="2147483647">
<security mode="Transport">
<transport clientCredentialType="None" proxyCredentialType="None" realm="" />
<message clientCredentialType="UserName" algorithmSuite="Default" />
</security>
<readerQuotas maxStringContentLength="2147483647" />
</binding>
</webHttpBinding>
</bindings>
<services>
<service behaviorConfiguration="mybehavior" name="SoIn.Services.MobileWebRole.Command">
<endpoint address="mobile" behaviorConfiguration="web" binding="webHttpBinding" bindingConfiguration="webHttpMobile" contract="SoIn.Services.MobileWebRole.ICommand" />
<endpoint address="mex" binding="mexHttpBinding" contract="IMetadataExchange" />
</service>
<service behaviorConfiguration="mybehavior" name="SoIn.Services.MobileWebRole.Query">
<endpoint address="mobile" behaviorConfiguration="web" binding="webHttpBinding" bindingConfiguration="webHttpMobile" contract="SoIn.Services.MobileWebRole.IQuery" />
<endpoint address="mex" binding="mexHttpBinding" contract="IMetadataExchange" />
</service>
<service behaviorConfiguration="mybehavior" name="SoIn.Services.MobileWebRole.Configuration">
<endpoint address="mobile" behaviorConfiguration="web" binding="webHttpBinding" bindingConfiguration="webHttpMobile" contract="SoIn.Services.MobileWebRole.IConfiguration" />
<endpoint address="mex" binding="mexHttpBinding" contract="IMetadataExchange" />
</service>
</services>
<behaviors>
<endpointBehaviors>
<behavior name="web">
<webHttp />
</behavior>
</endpointBehaviors>
<serviceBehaviors>
<behavior name="mybehavior">
<serviceMetadata httpsGetEnabled="true" />
<serviceDebug includeExceptionDetailInFaults="true" />
</behavior>
<behavior name="">
<serviceMetadata httpGetEnabled="true" />
<serviceDebug includeExceptionDetailInFaults="false" />
</behavior>
</serviceBehaviors>
</behaviors>
<serviceHostingEnvironment multipleSiteBindingsEnabled="true" />

The request Timed Out Error

I am getting the below mentioned error while using WCF.
The request channel timed out while waiting for a reply after 00:00:59.9843750. Increase the timeout value passed to the call to Request or increase the SendTimeout value on the Binding. The time allotted to this operation may have been a portion of a longer timeout.
I have been using below mentioned Web.Config file for WCF.
<configSections>
<sectionGroup name="system.web.extensions" type="System.Web.Configuration.SystemWebExtensionsSectionGroup, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35">
<sectionGroup name="scripting" type="System.Web.Configuration.ScriptingSectionGroup, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35">
<section name="scriptResourceHandler" type="System.Web.Configuration.ScriptingScriptResourceHandlerSection, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" requirePermission="false" allowDefinition="MachineToApplication"/>
<sectionGroup name="webServices" type="System.Web.Configuration.ScriptingWebServicesSectionGroup, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35">
<section name="jsonSerialization" type="System.Web.Configuration.ScriptingJsonSerializationSection, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" requirePermission="false" allowDefinition="Everywhere" />
<section name="profileService" type="System.Web.Configuration.ScriptingProfileServiceSection, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" requirePermission="false" allowDefinition="MachineToApplication" />
<section name="authenticationService" type="System.Web.Configuration.ScriptingAuthenticationServiceSection, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" requirePermission="false" allowDefinition="MachineToApplication" />
<section name="roleService" type="System.Web.Configuration.ScriptingRoleServiceSection, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" requirePermission="false" allowDefinition="MachineToApplication" />
</sectionGroup>
</sectionGroup>
</sectionGroup>
</configSections>
<system.diagnostics>
<sources>
<source name="System.ServiceModel.MessageLogging" switchValue="Error,ActivityTracing">
<listeners>
<add type="System.Diagnostics.DefaultTraceListener" name="Default">
<filter type="" />
</add>
</listeners>
</source>
<source name="System.ServiceModel" switchValue="Warning,ActivityTracing"
propagateActivity="true">
<listeners>
<add type="System.Diagnostics.DefaultTraceListener" name="Default">
<filter type="" />
</add>
<add name="ServiceModelTraceListener">
<filter type="" />
</add>
</listeners>
</source>
</sources>
<sharedListeners>
<add initializeData="E:\DB_Syncronization\DATABASESYNCHRONIZATION\DBSyncWcfService\web_tracelog.svclog"
type="System.Diagnostics.XmlWriterTraceListener, System, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"
name="ServiceModelTraceListener" traceOutputOptions="Timestamp">
<filter type="" />
</add>
</sharedListeners>
<trace autoflush="true" />
</system.diagnostics>
<appSettings/>
<connectionStrings/>
<system.web>
<!--
Set compilation debug="true" to insert debugging
symbols into the compiled page. Because this
affects performance, set this value to true only
during development.
-->
<compilation debug="true">
<assemblies>
<add assembly="System.Core, Version=3.5.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089"/>
<add assembly="System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
</assemblies>
</compilation>
<!--
The <authentication> section enables configuration
of the security authentication mode used by
ASP.NET to identify an incoming user.
-->
<authentication mode="Windows" />
<!--
The <customErrors> section enables configuration
of what to do if/when an unhandled error occurs
during the execution of a request. Specifically,
it enables developers to configure html error pages
to be displayed in place of a error stack trace.
<customErrors mode="RemoteOnly" defaultRedirect="GenericErrorPage.htm">
<error statusCode="403" redirect="NoAccess.htm" />
<error statusCode="404" redirect="FileNotFound.htm" />
</customErrors>
-->
<customErrors mode="Off"></customErrors>
<pages>
<controls>
<add tagPrefix="asp" namespace="System.Web.UI" assembly="System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
</controls>
</pages>
<httpHandlers>
<remove verb="*" path="*.asmx"/>
<add verb="*" path="*.asmx" validate="false" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
<add verb="*" path="*_AppService.axd" validate="false" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
<add verb="GET,HEAD" path="ScriptResource.axd" type="System.Web.Handlers.ScriptResourceHandler, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" validate="false"/>
</httpHandlers>
<httpModules>
<add name="ScriptModule" type="System.Web.Handlers.ScriptModule, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
</httpModules>
</system.web>
<system.codedom>
<compilers>
<compiler language="c#;cs;csharp" extension=".cs" warningLevel="4"
type="Microsoft.CSharp.CSharpCodeProvider, System, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<providerOption name="CompilerVersion" value="v3.5"/>
<providerOption name="WarnAsError" value="false"/>
</compiler>
</compilers>
</system.codedom>
<!--
The system.webServer section is required for running ASP.NET AJAX under Internet
Information Services 7.0. It is not necessary for previous version of IIS.
-->
<system.webServer>
<validation validateIntegratedModeConfiguration="false"/>
<modules>
<add name="ScriptModule" preCondition="integratedMode" type="System.Web.Handlers.ScriptModule, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
</modules>
<handlers>
<remove name="WebServiceHandlerFactory-Integrated"/>
<add name="ScriptHandlerFactory" verb="*" path="*.asmx" preCondition="integratedMode"
type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
<add name="ScriptHandlerFactoryAppServices" verb="*" path="*_AppService.axd" preCondition="integratedMode"
type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
<add name="ScriptResource" preCondition="integratedMode" verb="GET,HEAD" path="ScriptResource.axd" type="System.Web.Handlers.ScriptResourceHandler, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" />
</handlers>
</system.webServer>
<client />
<bindings>
<wsHttpBinding>
<binding name="NewBinding0" closeTimeout="00:10:00" openTimeout="00:10:00" receiveTimeout="00:10:00"
sendTimeout="00:10:00">
<readerQuotas maxDepth="2147483647" maxStringContentLength="2147483647"
maxArrayLength="2147483647" maxBytesPerRead="2147483647" maxNameTableCharCount="2147483647" />
<reliableSession enabled="true" />
<security mode="None">
<transport clientCredentialType="None" />
<message clientCredentialType="Windows" negotiateServiceCredential="true"
establishSecurityContext="false" />
</security>
</binding>
</wsHttpBinding>
</bindings>
<diagnostics wmiProviderEnabled="true">
<messageLogging logEntireMessage="true" logMalformedMessages="true"
logMessagesAtServiceLevel="true" logMessagesAtTransportLevel="true" />
</diagnostics>
<services>
<service behaviorConfiguration="DBSyncWcfService.Service1Behavior"
name="DBSyncWcfService.DBSyncService">
<endpoint binding="wsHttpBinding" bindingConfiguration="NewBinding0"
name="ABC" contract="DBSyncWcfService.IDBSyncContract" />
<host>
<baseAddresses>
<add baseAddress="http://192.168.5.161/DBSyncWcfService" />
</baseAddresses>
</host>
</service>
</services>
<behaviors>
<serviceBehaviors>
<behavior name="DBSyncWcfService.Service1Behavior">
<serviceCredentials>
<windowsAuthentication allowAnonymousLogons="true"/>
</serviceCredentials>
<serviceMetadata httpGetEnabled="true" />
<serviceDebug includeExceptionDetailInFaults="true" />
</behavior>
</serviceBehaviors>
</behaviors>
This looks like the binding configuration for the service, did you ammend the timeout values for the client likewise?

WCF: The Caller was not authenticated by the service

I have just configured my first service application and i am getting this error:
"The Caller was not authenticated by the service."
The service is being hosted on my server via IIS 6.0 and I have created a desktop application on another pc which consumes this service. The strange thing is when the two applications are on the same PC the service works. I have anonymous user access enabled on IIS. Iv been looking at this for some time now and I still have no idea how to configure my service and my client application correctly in order for them to interact.
Please Help!!
Regards
James
Server web config:
Clint App Config file:
<system.serviceModel>
<bindings>
<basicHttpBinding>
<binding name="BasicHttpBinding_ICOPITSERVICE" closeTimeout="00:01:00"
openTimeout="00:01:00" receiveTimeout="00:10:00" sendTimeout="00:01:00"
allowCookies="false" bypassProxyOnLocal="false" hostNameComparisonMode="StrongWildcard"
maxBufferSize="65536" maxBufferPoolSize="524288" maxReceivedMessageSize="65536"
messageEncoding="Text" textEncoding="utf-8" transferMode="Buffered"
useDefaultWebProxy="true">
<readerQuotas maxDepth="32" maxStringContentLength="8192" maxArrayLength="16384"
maxBytesPerRead="4096" maxNameTableCharCount="16384" />
<security mode="None">
<transport clientCredentialType="None" proxyCredentialType="None"
realm="" />
<message clientCredentialType="UserName" algorithmSuite="Default" />
</security>
</binding>
</basicHttpBinding>
<netNamedPipeBinding>
<binding name="NetNamedPipeBinding_ICOPITSERVICE" closeTimeout="00:01:00"
openTimeout="00:01:00" receiveTimeout="00:10:00" sendTimeout="00:01:00"
transactionFlow="false" transferMode="Buffered" transactionProtocol="OleTransactions"
hostNameComparisonMode="StrongWildcard" maxBufferPoolSize="524288"
maxBufferSize="65536" maxConnections="10" maxReceivedMessageSize="65536">
<readerQuotas maxDepth="32" maxStringContentLength="8192" maxArrayLength="16384"
maxBytesPerRead="4096" maxNameTableCharCount="16384" />
<security mode="Transport">
<transport protectionLevel="EncryptAndSign" />
</security>
</binding>
</netNamedPipeBinding>
<netTcpBinding>
<binding name="NetTcpBinding_ICOPITSERVICE" closeTimeout="00:01:00"
openTimeout="00:01:00" receiveTimeout="00:10:00" sendTimeout="00:01:00"
transactionFlow="false" transferMode="Buffered" transactionProtocol="OleTransactions"
hostNameComparisonMode="StrongWildcard" listenBacklog="10"
maxBufferPoolSize="524288" maxBufferSize="65536" maxConnections="10"
maxReceivedMessageSize="65536">
<readerQuotas maxDepth="32" maxStringContentLength="8192" maxArrayLength="16384"
maxBytesPerRead="4096" maxNameTableCharCount="16384" />
<reliableSession ordered="true" inactivityTimeout="00:10:00"
enabled="false" />
<security mode="Transport">
<transport clientCredentialType="Windows" protectionLevel="EncryptAndSign" />
<message clientCredentialType="Windows" />
</security>
</binding>
</netTcpBinding>
<wsHttpBinding>
<binding name="WSHttpBinding_ICOPITSERVICE" closeTimeout="00:01:00"
openTimeout="00:01:00" receiveTimeout="00:10:00" sendTimeout="00:01:00"
bypassProxyOnLocal="false" transactionFlow="false" hostNameComparisonMode="StrongWildcard"
maxBufferPoolSize="524288" maxReceivedMessageSize="65536"
messageEncoding="Text" textEncoding="utf-8" useDefaultWebProxy="true"
allowCookies="false">
<readerQuotas maxDepth="32" maxStringContentLength="8192" maxArrayLength="16384"
maxBytesPerRead="4096" maxNameTableCharCount="16384" />
<reliableSession ordered="true" inactivityTimeout="00:10:00"
enabled="false" />
<security mode="Message">
<transport clientCredentialType="Windows" proxyCredentialType="None"
realm="" />
<message clientCredentialType="Windows" negotiateServiceCredential="true"
algorithmSuite="Default" establishSecurityContext="true" />
</security>
</binding>
</wsHttpBinding>
</bindings>
<client>
<endpoint address="http://localhost:8080/COPIT_SERVICE/ws" binding="wsHttpBinding"
bindingConfiguration="WSHttpBinding_ICOPITSERVICE" contract="COPIT_SERVICE.ICOPITSERVICE"
name="WSHttpBinding_ICOPITSERVICE">
<identity>
<dns value="localhost" />
</identity>
</endpoint>
<endpoint address="http://localhost:8080/COPIT_SERVICE/basic"
binding="basicHttpBinding" bindingConfiguration="BasicHttpBinding_ICOPITSERVICE"
contract="COPIT_SERVICE.ICOPITSERVICE" name="BasicHttpBinding_ICOPITSERVICE" />
<endpoint address="net.tcp://localhost:8888/COPIT_SERVICE" binding="netTcpBinding"
bindingConfiguration="NetTcpBinding_ICOPITSERVICE" contract="COPIT_SERVICE.ICOPITSERVICE"
name="NetTcpBinding_ICOPITSERVICE">
<identity>
<userPrincipalName value="jscott#afis.ad.ucc.ie" />
</identity>
</endpoint>
<endpoint address="net.pipe://localhost/COPIT_SERVICE" binding="netNamedPipeBinding"
bindingConfiguration="NetNamedPipeBinding_ICOPITSERVICE" contract="COPIT_SERVICE.ICOPITSERVICE"
name="NetNamedPipeBinding_ICOPITSERVICE">
<identity>
<userPrincipalName value="jscott#afis.ad.ucc.ie" />
</identity>
</endpoint>
</client>
</system.serviceModel>
As marc_s says, which binding are you using.
There are however several things here that will not work:
netNamedPipes and netTCP bindings are not supported using IIS 6.
netNamedPipe binding will not work between machines. This is by design.
I am guessing that you are using the wsHttpBinding, this is using a windows credential. There are then 2-3 possible problems:
The anonymous IIS setting results in the client not being authenticated
The machines are not in a domain
The client is logged in with a local account