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. General Programming
  3. C#
  4. maxRequestLength for a client

maxRequestLength for a client

Scheduled Pinned Locked Moved C#
comsysadminquestionannouncement
4 Posts 2 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.
  • V Offline
    V Offline
    Vadim Tabakman
    wrote on last edited by
    #1

    Hi all, I have a webservice to which a client will send up several attachments using DIME and a WebMethod call, which could reach no more than 20mb. I understand that on the server I will either need to update the machine.config or the web.config to increase the maxRequestLength. I also have the ability through the client app, to call a WebMethod which attaches files using DIME, and the client can then retrieve them. At the moment I'm having a difficulty replicating this, so I was just curious if there needs to be a maxRequestLength fields modified for the application (myapp.exe.config)? or in some other area? Thanx "If you're too careful, your whole life can become a f---in' grind." - Mike McD (Rounders)

    A 1 Reply Last reply
    0
    • V Vadim Tabakman

      Hi all, I have a webservice to which a client will send up several attachments using DIME and a WebMethod call, which could reach no more than 20mb. I understand that on the server I will either need to update the machine.config or the web.config to increase the maxRequestLength. I also have the ability through the client app, to call a WebMethod which attaches files using DIME, and the client can then retrieve them. At the moment I'm having a difficulty replicating this, so I was just curious if there needs to be a maxRequestLength fields modified for the application (myapp.exe.config)? or in some other area? Thanx "If you're too careful, your whole life can become a f---in' grind." - Mike McD (Rounders)

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

      The maxRequestLength parameter has to be set in your webservice. 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

      V 2 Replies Last reply
      0
      • A Asad Hussain

        The maxRequestLength parameter has to be set in your webservice. 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

        V Offline
        V Offline
        Vadim Tabakman
        wrote on last edited by
        #3

        Thank you Asad.. "If you're too careful, your whole life can become a f---in' grind." - Mike McD (Rounders)

        1 Reply Last reply
        0
        • A Asad Hussain

          The maxRequestLength parameter has to be set in your webservice. 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

          V Offline
          V Offline
          Vadim Tabakman
          wrote on last edited by
          #4

          Hi Asad, Something else i've noticed, is that WSE has its own limitations. Therefore I had to add the following : <microsoft.web.services2> <messaging> <maxRequestLength> 262144 </maxRequestLength> </messaging> </microsoft.web.services2> Cheers Jubjub "If you're too careful, your whole life can become a f---in' grind." - Mike McD (Rounders)

          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