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
  1. Home
  2. Web Development
  3. ASP.NET
  4. Web Service with windows application

Web Service with windows application

Scheduled Pinned Locked Moved ASP.NET
5 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.
  • R Offline
    R Offline
    Rizwan Bashir
    wrote on last edited by
    #1

    Hello there I am using web service with windows application. My application contains uploading of binary data. when I upload the data with size more then 2.5 MB it says that system.web.http Exception : Maximum request length exceeds.. any solution for this

    A A 2 Replies Last reply
    0
    • R Rizwan Bashir

      Hello there I am using web service with windows application. My application contains uploading of binary data. when I upload the data with size more then 2.5 MB it says that system.web.http Exception : Maximum request length exceeds.. any solution for this

      A Offline
      A Offline
      Anonymous
      wrote on last edited by
      #2

      You will probably need to send the data in chunks. Something like: Call Initialize Transfer Method: Return Session/Upload ID Loop Call Send Chunk Method: Passing Session/Upload ID, Some of the data Until File is Sent Call Finished Transfer Method Maybe send a hash of the data in the initialize method + length so the data can be validated when its finished the upload.

      R 1 Reply Last reply
      0
      • A Anonymous

        You will probably need to send the data in chunks. Something like: Call Initialize Transfer Method: Return Session/Upload ID Loop Call Send Chunk Method: Passing Session/Upload ID, Some of the data Until File is Sent Call Finished Transfer Method Maybe send a hash of the data in the initialize method + length so the data can be validated when its finished the upload.

        R Offline
        R Offline
        Rizwan Bashir
        wrote on last edited by
        #3

        do you have any sample or any article reference One more question :: I think there is some packet size in IIS but I am unable to found that. if you know can you tell me where to go in IIS ?

        1 Reply Last reply
        0
        • R Rizwan Bashir

          Hello there I am using web service with windows application. My application contains uploading of binary data. when I upload the data with size more then 2.5 MB it says that system.web.http Exception : Maximum request length exceeds.. any solution for this

          A Offline
          A Offline
          Asad Hussain
          wrote on last edited by
          #4

          There is a machine.config parameter that you can set to change the maximum request size of IIS. Also, in your web.config you can add the following line under the system.web tag <httpRuntime executionTimeout="90" maxRequestLength="4096" useFullyQualifiedRedirectUrl="false" minFreeThreads="8" minLocalRequestFreeThreads="4" appRequestQueueLimit="100" enableVersionHeader="true"/> maxRequestLength is the maximum size allowed in KB Hope it helps

          R 1 Reply Last reply
          0
          • A Asad Hussain

            There is a machine.config parameter that you can set to change the maximum request size of IIS. Also, in your web.config you can add the following line under the system.web tag <httpRuntime executionTimeout="90" maxRequestLength="4096" useFullyQualifiedRedirectUrl="false" minFreeThreads="8" minLocalRequestFreeThreads="4" appRequestQueueLimit="100" enableVersionHeader="true"/> maxRequestLength is the maximum size allowed in KB Hope it helps

            R Offline
            R Offline
            Rizwan Bashir
            wrote on last edited by
            #5

            thanks it solved my problem :)

            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