Hello..
I have created a WCF service with call back using WSDualHttpBinding. I have hosted the service in Windows Azure.
Don't Callback in server.
And I got this error.
The open operation did not complete within the allotted timeout of 00:05:00. The time allotted to this operation may have been a portion of a longer timeout.
I have change time allocation all that think.
My Web WCF config code.
<?xml version="1.0" encoding="utf-8"?>
<configuration>
<configSections>
<!-- For more information on Entity Framework configuration, visit http://go.microsoft.com/fwlink/?LinkID=237468 -->
<section name="entityFramework" type="System.Data.Entity.Internal.ConfigFile.EntityFrameworkSection, EntityFramework, Version=6.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" requirePermission="false"
/>
</configSections>
<appSettings>
<add key="aspnet:UseTaskFriendlySynchronizationContext" value="true" />
</appSettings>
<system.web>
<compilation debug="true" targetFramework="4.5" />
<httpRuntime targetFramework="4.5" />
</system.web>
<system.serviceModel>
<bindings>
<wsDualHttpBinding>
<binding maxBufferPoolSize="2147483647" maxReceivedMessageSize="2147483647" messageEncoding="Text" >
<readerQuotas maxDepth="64" maxStringContentLength="2147483647" maxArrayLength="2147483647" maxBytesPerRead="4096" maxNameTableCharCount="16384"/>
<security mode="None">
<message clientCredentialType="None" algorithmSuite="Default" />
</security>
</binding>
</wsDualHttpBinding>
</bindings>
<behaviors>
<serviceBehaviors>
<behavior name="svcbh">
<!-- To avoid disclosing metadata information, set the values below to false before deployment -->
<serviceMetadata httpGetEnabled="true" httpsGetEnabled="true" />
<!-- To receive exception details in faults for debugging purposes, set the value below to true. Set to false before deployment to avoid disclosing exception information -->
<serviceDebug includeExceptionDetailInFaults="false" />
</behavior>
</serviceBehaviors>
</behaviors>
<services>
<service behaviorConfiguration="svcbh" name="MoveCorrectlyWCFServicesAssessment.Service1">
<endpoint address="" binding="wsDualHttpBinding" contract="MoveCorrectlyWCFServicesAssessment.IService1">
<identity>
<servicePrincipalName value="mcwebservice\$mcwebservice"/>
<dns value="mcwebservice.azurewebsites.net" />
</identity>
</endpoint>
<endpoint address="mex" binding="wsDualHttpBinding" contract="IMetadataExchange" />
</service>
</services>
<protocolMapping>
<add binding="wsDualHttpBinding" scheme="https"/>
</protocolMapping>
<serviceHostingEnvironment aspNetCompatibilityEnabled="true" multipleSiteBindingsEnabled="true" />
</system.serviceModel>
<system.webServer>
<modules runAllManagedModulesForAllRequests="true" />
<!--
To browse web app root directory during debugging, set the value below to true.
Set to false before deployment to avoid disclosing web app folder information.
-->
<directoryBrowse enabled="true" />
</system.webServer>
<connectionStrings>
<add name="movecorrectlyDevBEntities" connectionString="metadata=res://*/AssessmentEDMX.csdl|res://*/AssessmentEDMX.ssdl|res://*/AssessmentEDMX.msl;provider=System.Data.SqlClient;provider connection string="data source=NLS-SERVER\NLS_SQL_SERVER;initial
catalog=movecorrectlyDevB;user id=sa;password=admin123;MultipleActiveResultSets=True;App=EntityFramework"" providerName="System.Data.EntityClient" />
</connectionStrings>
<entityFramework>
<defaultConnectionFactory type="System.Data.Entity.Infrastructure.LocalDbConnectionFactory, EntityFramework">
<parameters>
<parameter value="v11.0" />
</parameters>
</defaultConnectionFactory>
<providers>
<provider invariantName="System.Data.SqlClient" type="System.Data.Entity.SqlServer.SqlProviderServices, EntityFramework.SqlServer" />
</providers>
</entityFramework>
</configuration>
And MVC Web Config ode.
<system.serviceModel>
<bindings>
<wsDualHttpBinding>
<binding name="WSDualHttpBinding_IService1" closeTimeout="00:05:00"
openTimeout="00:05:00" receiveTimeout="00:05:00" sendTimeout="00:05:00"
maxBufferPoolSize="524288" maxReceivedMessageSize="2147483647">
<security mode="None" />
</binding>
</wsDualHttpBinding>
</bindings>
<client>
<endpoint address="http://mcwebservice.azurewebsites.net/Service1.svc"
binding="wsDualHttpBinding" bindingConfiguration="WSDualHttpBinding_IService1"
contract="ServiceReference1.IService1" name="WSDualHttpBinding_IService1">
<identity>
<servicePrincipalName value="mcwebservice\$mcwebservice" />
<dns value="mcwebservice.azurewebsites.net" />
</identity>
</endpoint>
</client>
</system.serviceModel>
..
Best Regards,
Achal Prajapati