![](/DesktopModules/Forum/Themes/Crispy/Images/headfoot_height.gif) |
|
|
Joined: 2/21/2008
Posts: 3
|
|
|
DNN 04.08.04
Hosted by Network Solutions
When trying to configure the port in my host smtp configurations I get this error:
Error: Host Settings is currently unavailable.
DotNetNuke.Services.Exceptions.ModuleLoadException: Request for the permission of type 'System.Net.Mail.SmtpPermission, System, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' failed. ---> System.Security.SecurityException: Request for the permission of type 'System.Net.Mail.SmtpPermission, System, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' failed. at System.Security.CodeAccessSecurityEngine.Check(Object demand, StackCrawlMark& stackMark, Boolean isPermSet) at System.Security.CodeAccessPermission.Demand() at System.Net.Mail.SmtpClient.set_Port(Int32 value) at DotNetNuke.Services.Mail.Mail.SendMail(String MailFrom, String MailTo, String Cc, String Bcc, String ReplyTo, MailPriority Priority, String Subject, Mailformat Bodyformat, Encoding BodyEncoding, String Body, String[] Attachment, String SMTPServer, String SMTPAuthentication, String SMTPUsername, String SMTPPassword, Boolean SMTPEnableSSL) at DotNetNuke.Services.Mail.Mail.SendMail(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, Boolean SMTPEnableSSL) at DotNetNuke.Modules.Admin.Host.HostSettingsModule.cmdEmail_Click(Object sender, EventArgs e) The action that failed was: Demand The type of the first permission that failed was: System.Net.Mail.SmtpPermission The Zone of the assembly that failed was: MyComputer --- End of inner exception stack trace ---
|
|
|
|
![](/DesktopModules/Forum/Themes/Crispy/Images/height_spacer.gif) | ![](/DesktopModules/Forum/Themes/Crispy/Images/height_spacer.gif) |
|
|
![](/Portals/0/Users/155\83\3483/cathal_thumb.jpg) |
![cathal connolly's Avatar cathal connolly's Avatar](/Portals/0/Forums/RoleAvatar/150.MVP_FullColor_100x40.gif) |
www.cathal.co.uk Joined: 4/9/2003
Posts: 9676
|
|
|
this indicates that your site does not set stmppermissions - this is the default under medium trust code access security. Many hosts will create a derived policy from medium that contains the smtppermission, I would check with your hostin provider to see if they support that or to see what their recommended mail server settings are.
Cathal
Buy the new Professional DNN7: Open Source .NET CMS Platform book
Amazon US
|
|
|
|
![](/DesktopModules/Forum/Themes/Crispy/Images/height_spacer.gif) | ![](/DesktopModules/Forum/Themes/Crispy/Images/height_spacer.gif) |
|
|
Joined: 11/8/2006
Posts: 5
|
|
|
Here's my take on this. When I first configured DNN on a live server with LFC Hosting, I actually had to specify the SMTP port in the smtp Server box: www.wahdojo.com:537. The port number obviously came from my ISP's documentation, and it was the same I used when configuring Outlook. That was last year, using a low 4.0x DNN version, and the site worked fine ever since. The last upgrade I applied to this production site was to DNN 04.06.02.
The new site I was working on configuring (www.innbt.com), uses the newest DNN release, so I figured I'd configure it the same exact way as WahDojo. Well, thats's when I crashed with the message you listed above! After working with my host's technician, it turns out that the port setting is not (or no longer) required, and for InnBT (DNN 4.9.0), there is no need to have the port specified. I also went back to WahDojo (4.6.2) and removed the port, and it kept on working.
I don't know if this is of any help, it's just my experience with this error, that I originally blamed on the site's trust level.
Andrei
|
|
|
|
![](/DesktopModules/Forum/Themes/Crispy/Images/height_spacer.gif) | ![](/DesktopModules/Forum/Themes/Crispy/Images/height_spacer.gif) |
|
|
|
www.gotwick.com Joined: 12/30/2006
Posts: 19
|
|
|
I am getting the same error:
Error: Host Settings is currently unavailable.
DotNetNuke.Services.Exceptions.ModuleLoadException: Request for the permission of type 'System.Net.Mail.SmtpPermission, System, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' failed. ---> System.Security.SecurityException: Request for the permission of type 'System.Net.Mail.SmtpPermission, System, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' failed. at System.Security.CodeAccessSecurityEngine.Check(Object demand, StackCrawlMark& stackMark, Boolean isPermSet) at System.Security.CodeAccessPermission.Demand() at System.Net.Mail.SmtpClient.set_Port(Int32 value) at DotNetNuke.Services.Mail.Mail.SendMail(String MailFrom, String MailTo, String Cc, String Bcc, String ReplyTo, MailPriority Priority, String Subject, Mailformat Bodyformat, Encoding BodyEncoding, String Body, String[] Attachment, String SMTPServer, String SMTPAuthentication, String SMTPUsername, String SMTPPassword, Boolean SMTPEnableSSL) at DotNetNuke.Services.Mail.Mail.SendMail(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, Boolean SMTPEnableSSL) at DotNetNuke.Modules.Admin.Host.HostSettingsModule.cmdEmail_Click(Object sender, EventArgs e) The action that failed was: Demand The type of the first permission that failed was: System.Net.Mail.SmtpPermission The Zone of the assembly that failed was: MyComputer --- End of inner exception stack trace ---
It only happens when I put in the port number of 587 which is what my isp told me to use. But when I leave the port empty and try to test, I get the error that could not connect to remote server. I do not use any port number in Outlook, which works fine for receiving and sending emails.
Any suggestions? (btw, I am fairly new to DNN but very computer savvy)
Thanks in advance!
Doris Rush-Lopez
http://www.gotwick.com
|
|
|
|
![](/DesktopModules/Forum/Themes/Crispy/Images/height_spacer.gif) | ![](/DesktopModules/Forum/Themes/Crispy/Images/height_spacer.gif) |
|
|
|
www.gotwick.com Joined: 12/30/2006
Posts: 19
|
|
|
Also, I had this smtp thing working fine on the previous version of dnn, now I am using the latest release 4.9.
|
|
|
|
| ![](/DesktopModules/Forum/Themes/Crispy/Images/headfoot_height.gif) |