Cant Attach PDF in Email more than once
Last Post 01-16-2012 09:01 AM by Chad Nash. 4 Replies.
AddThis - Bookmarking and Sharing Button
Author Messages Not Resolved
David JamellUser is Offline
skipping stones
skipping stones
Posts:14
Avatar

--
01-16-2012 04:52 AM
    If I create a PDF Completion Event and then try to attach the PDF to more than one email I get the following error in the Event Viewer.

    If I only attach it to one email there is no problem.

    ----------------------------------------------------------------

    ModuleId: 738
    ModuleDefId: 193
    FriendlyName: New Hire Form
    ModuleControlSource: DesktopModules/Dynamic Forms/DynamicForms.ascx
    AssemblyVersion: 6.1.2
    PortalID: 0
    PortalName: SDINet
    UserID: 4
    UserName: xxxx
    ActiveTabID: 226 ActiveTabName: New Hire Form RawURL: /SDIAdmin/HumanResources/NewHireForm.aspx
    AbsoluteURL: /Default.aspx
    AbsoluteURLReferrer: https://sdinet.sdicorp.com/SDIAdmin/HumanResources/NewHireForm.aspx
    UserAgent: Mozilla/5.0 (Windows NT 5.1; rv:9.0.1) Gecko/20100101 Firefox/9.0.1
    DefaultDataProvider: DotNetNuke.Data.SqlDataProvider, DotNetNuke.SqlDataProvider
    ExceptionGUID: eade6f31-b1d6-4de2-88d8-779a871d21bb
    InnerException: The given path's format is not supported.
    FileName:
    FileLineNumber: 0
    FileColumnNumber: 0
    Method: System.Security.Util.StringExpressionSet.CanonicalizePath

    StackTrace:

    Message: DotNetNuke.Services.Exceptions.ModuleLoadException: The given path's format is not supported. ---> System.NotSupportedException: The given path's format is not supported. at System.Security.Util.StringExpressionSet.CanonicalizePath(String path, Boolean needFullPath) at System.Security.Util.StringExpressionSet.CreateListFromExpressions(String[] str, Boolean needFullPath) at System.Security.Permissions.FileIOPermission.AddPathList(FileIOPermissionAccess access, AccessControlActions control, String[] pathListOrig, Boolean checkForDuplicates, Boolean needFullPath, Boolean copyPathList) at System.Security.Permissions.FileIOPermission..ctor(FileIOPermissionAccess access, AccessControlActions control, String[] pathList, Boolean checkForDuplicates, Boolean needFullPath) at System.IO.FileStream.Init(String path, FileMode mode, FileAccess access, Int32 rights, Boolean useRights, FileShare share, Int32 bufferSize, FileOptions options, SECURITY_ATTRIBUTES secAttrs, String msgPath, Boolean bFromProxy) at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share) at System.Net.Mail.AttachmentBase.SetContentFromFile(String fileName, String mediaType) at System.Net.Mail.AttachmentBase..ctor(String fileName) at System.Net.Mail.Attachment..ctor(String fileName) at DotNetNuke.Services.Mail.Mail.SendMail(String MailFrom, String MailTo, String Cc, String Bcc, String ReplyTo, MailPriority Priority, String Subject, MailFormat BodyFormat, Encoding BodyEncoding, String Body, String[] Attachment, String SMTPServer, String SMTPAuthentication, String SMTPUsername, String SMTPPassword, Boolean SMTPEnableSSL) at DotNetNuke.Services.Mail.Mail.SendMail(String MailFrom, String MailTo, String Cc, String Bcc, MailPriority Priority, String Subject, MailFormat BodyFormat, Encoding BodyEncoding, String Body, String Attachment, String SMTPServer, String SMTPAuthentication, String SMTPUsername, String SMTPPassword, Boolean SMTPEnableSSL) at DotNetNuke.Services.Mail.Mail.SendMail(String MailFrom, String MailTo, String Cc, String Bcc, MailPriority Priority, String Subject, MailFormat BodyFormat, Encoding BodyEncoding, String Body, String Attachment, String SMTPServer, String SMTPAuthentication, String SMTPUsername, String SMTPPassword) at DataSprings.Modules.DynamicForms.DynamicForms.ProcessEvents(Boolean blnRedirectOnly, Boolean blnPaymentGateway, String strPaymentStatus, String strResponseID, Int32 intPaymentUserID)
     
    --- End of inner exception stack trace ---

    Source: Server Name: XXX
    CandaceUser is Offline
    river guide
    river guide
    Posts:2431
    Avatar

    --
    01-16-2012 06:47 AM
    Hi David,

    Yes, you will need to create another PDF event to use for the 2nd email. However, if you're using the same PDF, you might consider just adding a new email address in the cc or bcc. You'll find this when you expand the section called Advanced Email Properties. Thanks!

    Candace
    Chad NashUser is Offline
    Posts:5260
    Avatar

    --
    01-16-2012 08:37 AM
    Hi guys... I actually think this was a bug that was fixed recently. So you might check and make sure you are on the very latest patch/hot fix.

    Thanks,

    Chad
    David JamellUser is Offline
    skipping stones
    skipping stones
    Posts:14
    Avatar

    --
    01-16-2012 08:53 AM
    I'm running Dynamic Forms Version 3.40.50 on DNN 6.1.2.

    We tried creating two PDFs for each (different) email completion event and got the same error.
    Chad NashUser is Offline
    Posts:5260
    Avatar

    --
    01-16-2012 09:01 AM
    Hi David,

    Unfortunately I do not know if this was already fixed in the 3.4 version, it might have been discovered after the 4.0 release.

    Thanks,

    Chad


    ---
  • film izle
  • 720 izle
  • film
  • sinema izle
  • film makinesi
  • T�rk�e dublaj film
  • film izle
  • film izle
  • baglan film izle
  • sinema izle
  • 1080 film izle
  • film mercegi