Intermittently I am receiving the following error when trying to send out an excel document as an attachment in my newsletter.
The schedule history gives this error:
Dataspring.DNN.Modules.OptInAdvanceEmail.SendNewsletters,Dataspring.DNN.Modules.OptInAdvanceEmail Distributing newsletter - Subject LIne Opt in Email Exception: Invalid mail attachment 'Wholesale 031308-01.xls'. at System.Web.Mail.MailAttachment.VerifyFile() at System.Web.Mail.MailAttachment..ctor(String filename) at Dataspring.DNN.Modules.OptInAdvanceEmail.clsGlobals.DSMail(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 Dataspring.DNN.Modules.OptInAdvanceEmail.clsGlobals.DSNotification(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 Dataspring.DNN.Modules.OptInAdvanceEmail.SendNewsletters.SendNewsletters() Opt in Email Exception: Invalid mail attachment 'Wholesale 031308-01.xls'. at
And the event viwer will display the following error:
AssemblyVersion: -1
PortalID: -1
PortalName:
UserID: -1
UserName:
ActiveTabID: -1
ActiveTabName:
RawURL:
AbsoluteURL:
AbsoluteURLReferrer:
UserAgent:
DefaultDataProvider:
ExceptionGUID:
InnerException: Object reference not set to an instance of an object.
FileName:
FileLineNumber: -1
FileColumnNumber: -1
Method:
StackTrace:
Message: System.NullReferenceException: Object reference not set to an instance of an object. at DotNetNuke.Services.FileSystem.FolderController.GetMappedDirectory(String VirtualDirectory)
What to do next?
The file is definitely there and is actually uploaded from the DNN Document library module on another page before it is used as an attachment in the Opt -in. Any ideas?
Thank you,
Jon |