Hi,
I just change Email.DLL from V 1.8.0.0 to v2.2.0.0 and, with exactly the same code, I now get the error below.
Can you help me ?
Regards,
System.TypeInitializationException was unhandled by user code
HResult=-2146233036
Message=The type initializer for 'Aspose.Email.Mail.SmtpClient' threw an exception.
Source=Aspose.Email
TypeName=Aspose.Email.Mail.SmtpClient
StackTrace:
at Aspose.Email.Mail.SmtpClient..ctor()
at EAIRP.BLL.Email.SendEmail(String refUtilisateur) in c:\inetpub\wwwroot\CCDPA\App_Code\BLL\Objects\Email\Email.cs:line 420
at EAIRP.EmailForm.BtnEnvoyer_Click(Object sender, ImageClickEventArgs e) in c:\inetpub\wwwroot\CCDPA\EmailForm.aspx.cs:line 176
at System.Web.UI.WebControls.ImageButton.OnClick(ImageClickEventArgs e)
at System.Web.UI.WebControls.ImageButton.RaisePostBackEvent(String eventArgument)
at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
InnerException: System.Configuration.ConfigurationErrorsException
HResult=-2146232062
Message=The current configuration system does not support user-scoped settings.
Source=System
BareMessage=The current configuration system does not support user-scoped settings.
Line=0
StackTrace:
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. ()
at Aspose.Email.Mail.SmtpClient..cctor()
InnerException: