WebService processing Big Data volume data

Source: Internet
Author: User

The following error occurred while processing large data volume data through WebService:

SOAP Fault: An exception occurred while running the extension specified in the configuration file. ---> exceeded the maximum request length.
Workaround:

Because the uploaded file is larger than the system default configuration value, the default request length for ASP. NET Web service is 4M.

1. For a single project, simply modify the Web. config to:

Modifying the configuration can be reset in Web. config, as follows:
<configuration>
<system.web>
</system.web>
</configuration>

2, you can also directly modify the default configuration of the. NET environment, to avoid each project to modify the configuration

Found: C:/windows/microsoft.net/framework/v1.1.4322/config/machine.config file (version and system, directory slightly different), find "maxrequestlength=" 4096 "" In this line, convert 4096 to a larger value, in kilobytes.

HttpRuntime

HttpRuntime is to configure the ASP. NET HTTP runtime settings to determine how to handle requests to an ASP.
executiontimeout : Represents the maximum time limit allowed to execute a request, in seconds
maxRequestLength : Indicates an ASP. The maximum file upload size supported. This restriction can be used to prevent denial of service attacks that result from the user passing a large number of files to the server. The specified size is in kilobytes. The default value is 4096 KB (4 MB) and the maximum value: 2097151.
useFullyQualifiedRedirectUrl : Indicates whether client redirection is fully qualified (in the "Http://server/path" format, which is required for some mobile controls). or indicates whether a relative redirect is sent to the client instead. If true, all redirects that are not fully qualified are automatically converted to the fully qualified format. False is the default option.
minfreethreads : Specifies the minimum number of free threads that are allowed to execute a new request. An ASP. NET makes the specified number of threads free by requiring additional threads to complete their processing requests. The default value is 8.
minLocalRequestFreeThreads : Represents the minimum number of free threads that ASP. NET maintains to allow new local requests to execute. The number of threads is reserved for incoming requests from the local host, in case some requests make child requests to the local host during their processing. This avoids possible deadlocks caused by recursive re-entry into the WEB server.
appRequestQueueLimit : Represents the maximum number of requests that ASP. NET will queue for the application. When there are not enough free threads to process the request, the request is queued. When the queue exceeds the limit specified in this setting, the incoming request is rejected through the "503-Server Too busy" error message.
Enableversionheader : Indicates whether the specified ASP. NET version header should be output. Microsoft Visual Studio 2005 uses this property to determine which version of ASP is currently in use. For a production environment, this property is not required and can be disabled.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.