I have an application written in silverlight 3.0. It uses RIA services for communication between a client and a server.
My question does not seem to answer very well on the Internet. The client communicates with the server using RIA services, which uses WCF behind the scenes. If the message takes more than 60 seconds, time expires with this message,
'Download failed for request' ApplyUpgrade '. HTTP requrest for http: // localhost: 52403 / ClientBin / DatabaseUpgradeTool-Web-UpgradePackageDomainService.svc / binary 'exceeded the allocated timeout. The time allotted for this operation may have been part of a longer timeout. ''
My server is updating the database, so it takes more than 60 seconds. It is probably double or triple.
I tried settings like this in web.config file,
<services>
<service name="DatabaseUpgradeTool.Web.UpgradePackageDomainService">
<endpoint address="" binding="wsHttpBinding" contract="DatabaseUpgradeTool.Web.UpgradePackageDomainService"></endpoint>
<endpoint address="/soap" binding="basicHttpBinding" contract="DatabaseUpgradeTool.Web.UpgradePackageDomainService"></endpoint>
<endpoint address="/binary" binding="customBinding" bindingConfiguration="BinaryHttpBinding" contract="DatabaseUpgradeTool.Web.UpgradePackageDomainService"></endpoint>
</service>
</services>
<bindings>
<customBinding>
<binding name="BinaryHttpBinding"
receiveTimeout="00:00:10"
sendTimeout="00:00:10"
openTimeout="00:00:10"
closeTimeout="00:00:10">
<binaryMessageEncoding />
<httpTransport keepAliveEnabled="true"/>
</binding>
</customBinding>
</bindings>
Still no joy. Any ideas as to what is wrong with what I tried above? I would expect the above to result in a timeout of 10 seconds, not 60.
Thank.
source
share