his is a VS 2010 windows application that calls Web Services to upload and dowload files between the local machine and a remote machine.(Please note that this application was converted from vs2008 to vs2010 to use .net 4- It worked fine before this conversion took place)
It works fine for .pdf and text files.
But when trying to upload zip files, I am getting the error
System.Web.Services.Protocols.SoapException: There was an exception running the extensions specified in the config file. —> Maximum request length exceeded. at System.Web.Services.Protocols.SoapHttpClientProtocol.ReadResponse(SoapClientMessage message, WebResponse response, Stream responseStream, Boolean asyncCall) at System.Web.Services.Protocols.SoapHttpClientProtocol.Invoke(String methodName, Object[] parameters)
Update: I have included <httpRuntime maxRequestLength="10240"/> in the web.config file
of the Web service. The zip files are larger than 8 MB
Any suggestions?
Answer: <httpRuntime maxRequestLength="209715200"/>
You can this section under
System.WebThe size specified is in kilobytes. The default is 4096 KB (4 MB).