不知道是否有人使用1and1 MS托管和遇到问题与他们的信任级别?1and1窗口托管与asp.net
我只是想利用asp.net system.net.mail(其中正常工作),但发送邮件时,其与网上的1and1我得到这个错误:
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.
我问的1and1和他们向我发送了一个machine.config文件,其中包含了它们的设置,但没有解释如何处理它。
对不起,我不能忍受那里无用的技术支持。
任何人有任何想法,我应该做的machine.config或东西?
1 - 将自己远离的1and1。认真。 2 - 将此问题移至ServerFault。 – Joe