Author: Visual Web Developer | Posted on: 2/8/2009 2:01:47 PM | Views : 257

 I am using a mail function on my website wich works when I run the website locally but not when I have hosted the website for the first time now.

When trying to send a mail to my .gmail there will be an errorpage that comes with this error message. Without attaching all the code that I use for this function, I try to see if anyone can understand what I need to do just by reading this errormessage. Otherwise I will attach the code ofcourse.

Thank You !

Security Exception

Description: The application attempted to perform an operation not allowed by the security policy. To grant this application the required permission please contact your system administrator or change the application's trust level in the configuration file.

Exception Details: System.Security.SecurityException: Request for the permission of type 'System.Net.Mail.SmtpPermission, System, Version=2.0.0 ...

Go to the complete details ...