[DevExpress Support Team: CLONED FROM T293523: ASPxFileManager - The FileDownloading event is not raised when the control is bound to cloud services]
Now the FileDownloading event is fired, but when canceling the download as follows:
e.Cancel = true;
e.ErrorText = "Você não está autorizado a baixar DocLoading.doc";
It throws an exception instead of showing the message.
Erro de Servidor no Aplicativo '/'.
Você não está autorizado a baixar DocLoading.doc
Descrição: Ocorreu uma exceção sem tratamento durante a execução da atual solicitação da Web. Examine o rastreamento de pilha para obter mais informações sobre o erro e onde foi originado no código.
Detalhes da Exceção: DevExpress.Web.FileManagerCancelException:
Você não está autorizado a baixar DocLoading.doc
Erro de Origem:
Exceção sem tratamento foi gerada durante a execução da atual solicitação da Web. As informações relacionadas à origem e ao local da exceção podem ser identificadas usando-se o rastreamento de pilha de exceção abaixo.
Rastreamento de Pilha:
[FileManagerCancelException:
Você não está autorizado a baixar <b>"DocLoading.doc"</b>]
DevExpress.Web.Internal.FileManagerEditHelper.PrepareFileDownload(String fileName, String id, GetFileStreamDelegate fileStreamGetter, FileManagerFile& file) +313
DevExpress.Web.Internal.FileManagerEditHelper.GetCloudDownloadUrl(String fileName, String fileId) +84
DevExpress.Web.Internal.FileManagerDownloadCommand.Execute() +231
DevExpress.Web.ASPxFileManager.RaisePostBackEventCore(String arg) +360
DevExpress.Web.ASPxFileManager.RaisePostBackEvent(String eventArgument) +9
System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +3804
Informações sobre a Versão: Microsoft .NET Framework Versão:4.0.30319; Versão do ASP.NET:4.0.30319.34249
ASPxFileManager - An exception occurs when FileManagerActionEventArgsBase.Cancel is set to True
Answers approved by DevExpress Support
We have fixed the issue described in this ticket and will include the fix in our next maintenance update. To apply this solution before the official update, request a hotfix by clicking the corresponding link for product versions you require.
Note: Hotfixes may be unavailable for beta versions and updates that are about to be released.
- v15.2.4Download Official Update
- v15.1.8Download Official Update
Hello,
I have reproduced this behavior and forwarded it to our developers. We will keep you informed about our progress.