scrubbedName = FileAndPathNameIllegalCharUtility.CreateSafeFileName(att.Name, out scrubbedName, scrubOptions); if (scrubbedName.IsNotNullOrEmpty()) { att.Name = scrubbedName; //Exception here //Good attachment name add to a list for processing attachments.Add(att); }
Characters removed by CreateSafeFileName (URI_ILLEGAL_CHARS = { '@', '"', '$', '&', ':', '<', '>', '{', '}', '[', ']',
'#', '%', '/', ';', '=', '?', '\\', '^', '|', '~', '\'', '\"' };
StackTrace-
at System.Globalization.EncodingTable.internalGetCodePageFromName(String name)
at System.Globalization.EncodingTable.GetCodePageFromName(String name)
at System.Text.Encoding.GetEncoding(String name)
at #=q_60aBNxG2$SuXCZfZj8RxMuQ4QvMCxRRNzSjx5tNaig=.#=qMYQy_hVHueJdS6Pxw7GcW6PqRwLc9ouD2xur1bMlMIg=(String #=qRIDVWGAM$0BkCBJQsYmZAw==)
at Aspose.Email.Mime.ContentDisposition.get_FileName()
at Aspose.Email.Mail.Attachment.#=qjNb7XloW0J8_3iKnFFn9wvb23aHjAydf$MMzPynAANM=(Boolean& #=qJg7wl47f7hGQvPeIF4FbAsdWdbO_jXQy7EOPmbLH5wM=)
at Aspose.Email.Mail.Attachment.#=qKmpcowkezBlTXeK44UnmdLVLTH_u7dGPaJWEJTJIVBQ=(String #=q7G9LZy5KsRJ$RaSgKMwaRg==)
at Aspose.Email.Mail.Attachment.set_Name(String value)
at Hyland.Core.SubscriptionServer.Module.CheckForAttachment(MailMessage message, List`1 attachments, IllegalCharacterScrubOptions scrubOptions) in M:\TFS\DEV\Core\OnBase.NET\Libraries\Hyland.Core\SubscriptionServer\Module.cs:line 1313
Thank you,
Cameron