This is really a repeat of the other thread of the same name. I as well searched it and saw the error from 2011.
var smtp = new Aspose.Email.Mail.SmtpClient(“mail1.intermedia.net”, 1025, "batch@transguardian.com", “mypassword”);
System.TypeInitializationException: The type initializer for ‘Aspose.Email.Mail.SmtpClient’ threw an exception. —> System.Configuration.ConfigurationErrorsException: The current configuration system does not support user-scoped settings.
at System.Configuration.LocalFileSettingsProvider.GetPropertyValues(SettingsContext context, SettingsPropertyCollection properties)
at System.Configuration.SettingsBase.GetPropertiesFromProvider(SettingsProvider provider)
at System.Configuration.SettingsBase.GetPropertyValueByName(String propertyName)
at System.Configuration.SettingsBase.get_Item(String propertyName)
at System.Configuration.ApplicationSettingsBase.GetPropertyValue(String propertyName)
at System.Configuration.ApplicationSettingsBase.get_Item(String propertyName)
at Aspose.Email.Properties.Settings.get_SmtpDiagnosticLog()
at Aspose.Email.Mail.SmtpClient…cctor()
— End of inner exception stack trace —
at Aspose.Email.Mail.SmtpClient…ctor(String host, Int32 port, String username, String password)
at tg.objects.email.SendEmail(String sFrom, String sTo, String sSubject, Boolean bHTML, String sBody, ArrayList alAttachment, String cc, String bcc) in c:\inetpub\TransGuardian Website\tg.objects\email.cs:line 171