Bug Report T296860
Visible to All Users

ASPxFileManager - An exception occurs when FileManagerActionEventArgsBase.Cancel is set to True

created 9 years ago

[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

Comments (1)
DevExpress Support Team 9 years ago

    Hello,

    I have reproduced this behavior and forwarded it to our developers. We will keep you informed about our progress.

    Answers approved by DevExpress Support

    created 9 years ago

    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.

      Disclaimer: The information provided on DevExpress.com and affiliated web properties (including the DevExpress Support Center) is provided "as is" without warranty of any kind. Developer Express Inc disclaims all warranties, either express or implied, including the warranties of merchantability and fitness for a particular purpose. Please refer to the DevExpress.com Website Terms of Use for more information in this regard.

      Confidential Information: Developer Express Inc does not wish to receive, will not act to procure, nor will it solicit, confidential or proprietary materials and information from you through the DevExpress Support Center or its web properties. Any and all materials or information divulged during chats, email communications, online discussions, Support Center tickets, or made available to Developer Express Inc in any manner will be deemed NOT to be confidential by Developer Express Inc. Please refer to the DevExpress.com Website Terms of Use for more information in this regard.