After updating the application to version 2022.1.3.75
email attachments with large internal pdf/jpg attachments (over 1MB) stopped working. Previously, I could attach emails as attachments that had internal attachments above that size in them. I downloaded a previously (in the previous version ) attached attachment to disk and tried to attach in the new version and I get a message "The MailMessage is corrupted" but it is not true.
do you also have such problems? do you know how to solve the problem?
Message log:
msg: An unhandled exception has occurred while executing the request. | agent: Mozilla/5.0 (Windows NT 6.2; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/106.0.0.0 Safari/537.36 | href: | ex: System.Exception: It's incorrect message file
---> System.ArgumentException: The MailMessage is corrupted
at Aspose.Email.Mapi.MapiMessage.FromMailMessage(MailMessage message, MapiConversionOptions options)
at Aspose.Email.Mapi.MapiMessage.k(Stream a, LoadOptions b)
at Aspose.Email.Mapi.MapiMessage.Load(Stream stream)
at WebCon.WorkFlow.Common.BusinessLogic.AttachmentsManagement.Utility.AttachmentMessageDataCreator.GetAttachmentMessageData(IElementAttachment attachment)
--- End of inner exception stack trace ---
at WebCon.WorkFlow.Common.BusinessLogic.AttachmentsManagement.Utility.AttachmentMessageDataCreator.GetAttachmentMessageData(IElementAttachment attachment)
at WebCon.WorkFlow.Common.BusinessLogic.AttachmentsManagement.Save.AttachmentSaver.UpdateAttachmentMessageData(ElementAttachment attachment, IAttachmentSaveParameters saveParameters)
at WebCon.WorkFlow.Common.BusinessLogic.AttachmentsManagement.Save.AttachmentSaver.Save(ElementAttachment attachment, IAttachmentSaveParameters saveParameters)
at WebCon.WorkFlow.Base.ChunkedUpload.Repositories.AttachmentFileRepository.CreateDataAttachment(AttachmentUploadInitializationConfig config)
at WebCon.WorkFlow.Base.ChunkedUpload.Repositories.AttachmentFileRepository.InitializeFileAsync(AttachmentUploadSession session, AttachmentUploadInitializationConfig config)
at WebCon.BPSCloud.Core.Attachments.ChunkedUpload.AttachmentChunkedUploadService.CreateUploadSession(StartAttachmentUploadParams startAttachmentUploadParams)
at WebCon.BPSCloud.Portal.API.AttachmentsController.StartAttachmentUpload(StartAttachmentUploadParams startParams)
at lambda_method4700(Closure , Object )
at Microsoft.AspNetCore.Mvc.Infrastructure.ActionMethodExecutor.AwaitableObjectResultExecutor.Execute(IActionResultTypeMapper mapper, ObjectMethodExecutor executor, Object controller, Object[] arguments)
at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.<InvokeActionMethodAsync>g__Logged|12_1(ControllerActionInvoker invoker)
at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.<InvokeNextActionFilterAsync>g__Awaited|10_0(ControllerActionInvoker invoker, Task lastTask, State next, Scope scope, Object state, Boolean isCompleted)
at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.Rethrow(ActionExecutedContextSealed context)
at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.Next(State& next, Scope& scope, Object& state, Boolean& isCompleted)
at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.InvokeInnerFilterAsync()
--- End of stack trace from previous location ---
at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.<InvokeNextResourceFilter>g__Awaited|25_0(ResourceInvoker invoker, Task lastTask, State next, Scope scope, Object state, Boolean isCompleted)
at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.Rethrow(ResourceExecutedContextSealed context)
at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.Next(State& next, Scope& scope, Object& state, Boolean& isCompleted)
at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.InvokeFilterPipelineAsync()
--- End of stack trace from previous location ---
at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.<InvokeAsync>g__Logged|17_1(ResourceInvoker invoker)
at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.<InvokeAsync>g__Logged|17_1(ResourceInvoker invoker)
at Microsoft.AspNetCore.Routing.EndpointMiddleware.<Invoke>g__AwaitRequestTask|6_0(Endpoint endpoint, Task requestTask, ILogger logger)
at Microsoft.AspNetCore.Authorization.AuthorizationMiddleware.Invoke(HttpContext context)
at WebCon.BPSCloud.Portal.Extensions.RouteValuesTypeVerificationMiddleware.InvokeAsync(HttpContext context)
at WebCon.BPSCloud.Portal.Extensions.DesignerDesk.DesignerDeskActiveContextMiddleware.NotActive(HttpContext context)
at WebCon.BPSCloud.Portal.Extensions.DesignerDesk.DesignerDeskActiveContextMiddleware.InvokeAsync(HttpContext context)
at WebCon.BPSCloud.Portal.Extensions.DebugInfo.DebugInfoMiddleware.Invoke(HttpContext context, IDebugInfoGetter debugInfoGetter, IPerformanceCounterFactory counterFactory, IFrontendTraceProvider formatter, IDefaultableDbInfoProvider defaultableDbInfoProvider, IUserCredentialsManager userCredentialsManager, IDebugInfoManager debugInfoManager, IHttpContext synchronizedHttpCtx)
at WebCon.BPSCloud.Portal.Extensions.RestApiLogging.RestApiLoggingMiddleware.Invoke(HttpContext context, IPerformanceCounterFactory counterFactory, IVersionPathParser versionParser, ICurrentUserProvider userProvider, IRestApiLoggingManager restApiLoggingManager)
at WebCon.BPSCloud.Portal.Extensions.RestApiLogging.RestApiStatusCodeMiddleware.Invoke(HttpContext context, IApiLogger apiLogger)
at WebCon.BpsCloud.IdentityServer.Hosting.IdentityServerMiddleware.Invoke(HttpContext context, IEndpointRouter router, IUserSession session, IEventService events)
at WebCon.BpsCloud.IdentityServer.Hosting.MutualTlsTokenEndpointMiddleware.Invoke(HttpContext context, IAuthenticationSchemeProvider schemes)
at Microsoft.AspNetCore.Authentication.AuthenticationMiddleware.Invoke(HttpContext context)
at WebCon.BpsCloud.IdentityServer.Hosting.BaseUrlMiddleware.Invoke(HttpContext context)
at WebCon.BPSCloud.Portal.Extensions.EnvironmentInfo.EnvInfoMiddleware.Invoke(HttpContext context, IDbTimeZoneOffsetProvider offsetProvider, IActiveXVersionProvider activeXVersionProvider, IConfigDbInfo configDbInfo, IDbInfoStore dbInfoStore, ICurrentCultureProvider currentCultureProvider, IDebugInfoGetter debugInfoGetter, IHostingEnvironment hostingEnvironment, IInstallationTypeProvider installationTypeProvider, ILoggerUrlProvider loggerUrlProvider, INavigationLinkRepository navigationLinkRepository, IPortalRunningUrlsConfig portalRunningUrlsConfig, IStableVersionInfoProvider stableVersionInfoProvider, ISupportedLanguages supportedLanguages, ITranslationsHashProvider translationsHashProvider, IVersionProvider versionProvider, IDeskInfoGetter deskInfo, IProcessesAttachmentMaxSizeProvider processesAttachmentMaxSizeProvider, IAttachmentsRestrictionsProvider attachmentsRestrictionsProvider, IAuthenticationProvider authenticationProvider, IDeskSecurity deskSecurity)
at Microsoft.AspNetCore.Localization.RequestLocalizationMiddleware.Invoke(HttpContext context)
at WebCon.BPSCloud.Portal.Extensions.DesignerDesk.DesignerDeskContextMiddleware.InvokeAsync(HttpContext context)
at WebCon.BPSCloud.Portal.Extensions.MainContext.MainContextMiddleware.Invoke(HttpContext context, IDbRegistrator dbRegistrator, IDataBasePathParser dataBasePathParser, IHttpContextAccessor httpContextAccessor)
at WebCon.BPSCloud.Portal.Extensions.Transactions.TransactionManagerMiddleware.Invoke(HttpContext context, ITransactionMgrFactorySetter transactionMgrFactorySetter)
at WebCon.BPSCloud.Identity.MSOFBA.MSOFBAuthenticationMiddleware.Invoke(HttpContext context)
at WebCon.BPSCloud.Identity.Token.TokenEnforceMiddleware.Invoke(HttpContext context)
at Microsoft.AspNetCore.Authentication.AuthenticationMiddleware.Invoke(HttpContext context)
at Microsoft.AspNetCore.Session.SessionMiddleware.Invoke(HttpContext context)
at Microsoft.AspNetCore.Session.SessionMiddleware.Invoke(HttpContext context)
at Microsoft.AspNetCore.ResponseCaching.ResponseCachingMiddleware.Invoke(HttpContext httpContext)
at JSNLog.JSNLogMiddleware.Invoke(HttpContext context)
at Microsoft.AspNetCore.Diagnostics.ExceptionHandlerMiddleware.<Invoke>g__Awaited|6_0(ExceptionHandlerMiddleware middleware, HttpContext context, Task task)