Gets or sets value that indicating whether incoming request should be read if an exception is occurred.
Namespace:
EasyAlgo.EAUploadAssembly: EasyAlgo.EAUpload (in EasyAlgo.EAUpload.dll)
Version: 1.3.1.0
Syntax
| C# |
|---|
public bool ProcessRequestOnError { get; set; } |
| Visual Basic (Declaration) |
|---|
Public Property ProcessRequestOnError As Boolean |
Field Value
Type: System..::.Booleantrue if incoming request should be read when an exception is occurred; otherwise false. Default value is false.
Remarks
This property is a reflection of EAUpload configuration parameter (<EasyAlgo.EAUpload>/<Exceptions ... ProcessRequestOnError="" ... >).
If exception occurs during upload and the request is not read entirely then user will get "White page" or "The page cannot be displayed" error message in his browser. There is no way to send a response to the client(browser) without reading whole request. Therefore, if you want to redirect user to a custom error page then you should specify this property as true.
The following table describes how the logic of exceptions processing during request reading depends on ProcessRequestOnError and ThrowErrorsImmediately properties:
Note:The property value doesn't affects on processing execution timeout exception (Exception message: "Upload request timed out.")
Note:If you want to change this property at the runtime, you can define its at the Initializing stage or at the Uploading stage of an upload (see EasyAlgo.EAUpload..::.UploadState for more information).
Also if you have change this property for the whole of EAUpload component (EAUploadModule..::.CommonEnvironment property), then new value will take effect for the all processing and new uploads.
If exception occurs during upload and the request is not read entirely then user will get "White page" or "The page cannot be displayed" error message in his browser. There is no way to send a response to the client(browser) without reading whole request. Therefore, if you want to redirect user to a custom error page then you should specify this property as true.
The following table describes how the logic of exceptions processing during request reading depends on ProcessRequestOnError and ThrowErrorsImmediately properties:
| ProcessRequestOnError | ThrowErrorsImmediately | Defined logic |
|---|---|---|
| false | true |
|
| false | false |
|
| true | true |
|
| true | false |
|
