MailSettingsSection could not be found error

G

Guest

Playing with Visual Studio 2005 beta 2 tried to configure SMTP e-mail
settings using Web Site Administration Tool.
After clicking Configure SMTP e-mail settings link saw the error page saying:

Compiler Error Message: CS0246: The type or namespace name
'MailSettingsSection' could not be found (are you missing a using directive
or an assembly reference?)

Line 45:
Line 46: Configuration config = OpenWebConfiguration(appPath);
Line 47: MailSettingsSection netSmtpMailSection =
(MailSettingsSection) config.GetSection("system.net/mailSettings");
Line 48:
Line 49: ServerNameTextBox.Text =
netSmtpMailSection.Smtp.Network.Host;

Source File:
f:\WINDOWS\Microsoft.NET\Framework\v2.0.50215\ASP.NETWebAdminFiles\AppConfig\SmtpSettings.aspx Line: 47

I could not find any reference to the MailSettingsSection class in the
documentation. Was it removed from the Framework 2.0?
How can I fix this error?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,781
Messages
2,569,615
Members
45,297
Latest member
EngineerD

Latest Threads

Top