Is PublishSingleFile supported for Aspose.Email deployments? I’m getting an exception when I try and run a .Net 5 single file executable. This exception happens on Linux, macOS, and Windows. Below is the exception.
Unhandled exception. System.ArgumentNullException: Value cannot be null. (Parameter 'path1')
at System.IO.Path.Combine(String path1, String path2)
at .()
at .(String )
at Aspose.Email.Clients.EmailClient.ResetLogSettings()
at Aspose.Email.Clients.EmailClient..ctor(String type, String host, Int32 port, String username, String authInfo, Boolean useOAuth, SecurityOptions securityOptions)
at Aspose.Email.Clients.EmailClient..ctor(String type)
at Aspose.Email.Clients.Imap.ImapClient..ctor()
at AsposeEmailTest.Program.Main(String[] args)
at AsposeEmailTest.Program.<Main>(String[] args)
The code is here:
ImapClient imapClient = new ImapClient();
imapClient.Host = host;
imapClient.Port = port;
imapClient.Username = username;
imapClient.Password = password;
Console.WriteLine(imapClient.MailboxInfo.Inbox.Name);