Not sure if anyone has used 1and1 MS Hosting and encountered problems with their trust levels?
I am simply trying to send mail using system.net.mail in asp.net (which works fine) but when its online with 1and1 I get this error:
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.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' failed.
I asked 1and1 and they sent me a machine.config file with their settings but no explanation with what to do with it.
Sorry I can't put up with there useless tech support any more.
Anyone got any ideas what I should do with the machine.config or something?
Many Thanks!