Products

Solutions

Resources

Partners

Community

Blog

About

QA

Ideas Test

New Community Website

Ordinarily, you'd be at the right spot, but we've recently launched a brand new community website... For the community, by the community.

Yay... Take Me to the Community!

Welcome to the DNN Community Forums, your preferred source of online community support for all things related to DNN.
In order to participate you must be a registered DNNizen

HomeHomeUsing DNN Platf...Using DNN Platf...Administration ...Administration ...smtp port configurationsmtp port configuration
Previous
 
Next
New Post
9/1/2008 8:23 PM
 

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 ---

 
New Post
9/2/2008 7:11 PM
 

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
 
New Post
9/23/2008 4:17 PM
 

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

 
New Post
10/6/2008 4:27 PM
 

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

 
New Post
10/6/2008 4:42 PM
 

Also, I had this smtp thing working fine on the previous version of dnn, now I am using the latest release 4.9.

 
Previous
 
Next
HomeHomeUsing DNN Platf...Using DNN Platf...Administration ...Administration ...smtp port configurationsmtp port configuration


These Forums are dedicated to discussion of DNN Platform and Evoq Solutions.

For the benefit of the community and to protect the integrity of the ecosystem, please observe the following posting guidelines:

  1. No Advertising. This includes promotion of commercial and non-commercial products or services which are not directly related to DNN.
  2. No vendor trolling / poaching. If someone posts about a vendor issue, allow the vendor or other customers to respond. Any post that looks like trolling / poaching will be removed.
  3. Discussion or promotion of DNN Platform product releases under a different brand name are strictly prohibited.
  4. No Flaming or Trolling.
  5. No Profanity, Racism, or Prejudice.
  6. Site Moderators have the final word on approving / removing a thread or post or comment.
  7. English language posting only, please.
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out