Web Service with windows application
-
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
-
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
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.
-
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.
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 ?
-
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
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 -
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 helpsthanks it solved my problem :)