Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
CODE PROJECT For Those Who Code
  • Home
  • Articles
  • FAQ
Community
  1. Home
  2. General Programming
  3. WPF
  4. Silverlight and WCF issue

Silverlight and WCF issue

Scheduled Pinned Locked Moved WPF
helpwcfcsharpdatabasewpf
12 Posts 3 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • C CrazyCoder26

    Hi, I have developed an application using Silverlight3 and WCF where I am fetching some data from database and binding to a datagrid.For small resultsets the application is working fine.But for large resultsets it gives an error at EndGet Method. I checked the buffersize,maxReceivedMessageSize,receiveTimeout,closeTimeout, openTimeout,sendTimeout.All are set to suitable values. Can anyone help on this issue? CC26

    A Offline
    A Offline
    Abhinav S
    wrote on last edited by
    #3

    CrazyCoder26 wrote:

    I checked the buffersize,maxReceivedMessageSize,receiveTimeout,closeTimeout, openTimeout,sendTimeout

    Increase sendTimeout to a bigger value and try again.

    C 2 Replies Last reply
    0
    • A Abhinav S

      CrazyCoder26 wrote:

      I checked the buffersize,maxReceivedMessageSize,receiveTimeout,closeTimeout, openTimeout,sendTimeout

      Increase sendTimeout to a bigger value and try again.

      C Offline
      C Offline
      CrazyCoder26
      wrote on last edited by
      #4

      <binding name="BasicHttpBinding_IOMSService" closeTimeout="00:50:00"
      openTimeout="00:50:00" receiveTimeout="00:50:00" sendTimeout="00:50:00"
      maxBufferSize="2147483647" maxReceivedMessageSize="2147483647">
      <security mode="None" />
      </binding>

      maxbufferSize,maxReceiveSize is set to the maximum integer value. senTimeout,receiveTimeout are given.....do I really need to increase them??plz look at the values for them.... CC26

      A 1 Reply Last reply
      0
      • A Arun Jacob

        Increase those values according to your requirement, then it'll work.

        Arun Jacob http://codepronet.blogspot.com/

        C Offline
        C Offline
        CrazyCoder26
        wrote on last edited by
        #5

        <pre> <binding name="BasicHttpBinding_IOMSService" closeTimeout="00:50:00" openTimeout="00:50:00" receiveTimeout="00:50:00" sendTimeout="00:50:00" maxBufferSize="2147483647" maxReceivedMessageSize="2147483647"> <security mode="None" /> </binding> </pre> maxbufferSize,maxReceiveSize is set to the maximum integer value. senTimeout,receiveTimeout are given.....do I really need to increase them??plz look at the values for them.... CC26

        A 1 Reply Last reply
        0
        • C CrazyCoder26

          <binding name="BasicHttpBinding_IOMSService" closeTimeout="00:50:00"
          openTimeout="00:50:00" receiveTimeout="00:50:00" sendTimeout="00:50:00"
          maxBufferSize="2147483647" maxReceivedMessageSize="2147483647">
          <security mode="None" />
          </binding>

          maxbufferSize,maxReceiveSize is set to the maximum integer value. senTimeout,receiveTimeout are given.....do I really need to increase them??plz look at the values for them.... CC26

          A Offline
          A Offline
          Abhinav S
          wrote on last edited by
          #6

          Try by increasing the sendTimeout. See here.

          C 2 Replies Last reply
          0
          • C CrazyCoder26

            <pre> <binding name="BasicHttpBinding_IOMSService" closeTimeout="00:50:00" openTimeout="00:50:00" receiveTimeout="00:50:00" sendTimeout="00:50:00" maxBufferSize="2147483647" maxReceivedMessageSize="2147483647"> <security mode="None" /> </binding> </pre> maxbufferSize,maxReceiveSize is set to the maximum integer value. senTimeout,receiveTimeout are given.....do I really need to increase them??plz look at the values for them.... CC26

            A Offline
            A Offline
            Arun Jacob
            wrote on last edited by
            #7

            Whats the exception you are getting?Can you give some info about exception.

            Arun Jacob http://codepronet.blogspot.com/

            C 1 Reply Last reply
            0
            • A Abhinav S

              Try by increasing the sendTimeout. See here.

              C Offline
              C Offline
              CrazyCoder26
              wrote on last edited by
              #8

              Increased the sendTimout to 10:20:00....but still getting error CC26

              1 Reply Last reply
              0
              • A Arun Jacob

                Whats the exception you are getting?Can you give some info about exception.

                Arun Jacob http://codepronet.blogspot.com/

                C Offline
                C Offline
                CrazyCoder26
                wrote on last edited by
                #9

                I am testing using Fiddler...for large results (a table with 114 columns and 3880 rows i need that to return), it says connection closed unexpectedly CC26

                1 Reply Last reply
                0
                • A Abhinav S

                  CrazyCoder26 wrote:

                  I checked the buffersize,maxReceivedMessageSize,receiveTimeout,closeTimeout, openTimeout,sendTimeout

                  Increase sendTimeout to a bigger value and try again.

                  C Offline
                  C Offline
                  CrazyCoder26
                  wrote on last edited by
                  #10

                  I checked the WCF with Fiddler...for large resultsets it also throws an exception saying "the connection closed unexpectedly". CC26

                  1 Reply Last reply
                  0
                  • A Abhinav S

                    Try by increasing the sendTimeout. See here.

                    C Offline
                    C Offline
                    CrazyCoder26
                    wrote on last edited by
                    #11

                    It seems Mr.Abhinav has given up my Issue!!!! CC26

                    A 1 Reply Last reply
                    0
                    • C CrazyCoder26

                      It seems Mr.Abhinav has given up my Issue!!!! CC26

                      A Offline
                      A Offline
                      Abhinav S
                      wrote on last edited by
                      #12

                      CrazyCoder26 wrote:

                      It seems Mr.Abhinav has given up my Issue!!!!

                      Try enabling gzip compression on the service. If that does not work, I give up! :) And I hope you increased the maxbuffer size in your config file.

                      modified on Monday, April 26, 2010 7:26 AM

                      1 Reply Last reply
                      0
                      Reply
                      • Reply as topic
                      Log in to reply
                      • Oldest to Newest
                      • Newest to Oldest
                      • Most Votes


                      • Login

                      • Don't have an account? Register

                      • Login or register to search.
                      • First post
                        Last post
                      0
                      • Categories
                      • Recent
                      • Tags
                      • Popular
                      • World
                      • Users
                      • Groups