Silverlight / WPF - Set Maximun timeout for wcf request and response

Asked By gopal krish on 13-Jun-12 06:08 AM

i m having a pdf file contains 600-700 pages.

after hosting the site, now when i try to show that in my silverlight page using my wcf service it throws the below error
debugging resource string are unavailable.often the key and arguments provide sufficient informationto diagonose the problem"

i have a busy indicator in my page. it show the indicator for 1 minute after that i received the above error.

i think need to set the timeout for client and server calls.
how to set the timeout?

but where as 10 t0 20 pages pdf files are showing in silverlight page. but in order to show the large size file (pages) i got the above error.

but in my wcf web.config <bindings> tag
i already  set the following 

                <binding name="Binding" maxBufferSize="2147483647" sendTimeout="00:30:00" openTimeout ="00:30:00" receiveTimeout="00:30:00"
                    <security mode="Transport">
                        <transport clientCredentialType="None"/>

how to handle this..

need ur suggestions..



TSN ... replied to gopal krish on 13-Jun-12 06:30 AM

Try to set this in the web.cofig


<!-- maxRequestLength (in KB) max size: 2048MB -->


<httpRuntime maxRequestLength="65536"/>


kalpana aparnathi replied to gopal krish on 13-Jun-12 06:39 AM

Setup your server (e.g. MS Windows Server 2008 R2, IIS7) for Silverlight 4 and WCF RIA Services:

1) Download and install the .NET 4 Framework Web Platform Installer. Use the installer to install the .NET 4 Framework. Reboot the server after this completes.

2) Download WCF RIA Services to your local machine (e.g. c:\temp). Open up a command window (I used "Run as Administrator"). Go to the folder with the MSI file (e.g. c:\temp) and type the following command to launch the install of WCF RIA Services:

msiexec /i RiaServices.msi SERVER=TRUE

3) To remove anoying error [HttpWebRequest_WebException_RemoteServer] do the following: go to the command prompt, open the Microsoft.NET\Framework64 folder (e.g. C:\Windows\Microsoft.NET\Framework64\v4.0.30319) and execute the following commands:

servicemodelreg -ia
aspnet_regiis -i