1和1 Windows托管与asp.net [英] 1and1 windows hosting with asp.net

查看:159
本文介绍了1和1 Windows托管与asp.net的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

不确定是否有人使用过1and1 MS Hosting并在信任级别上遇到问题吗?

Not sure if anyone has used 1and1 MS Hosting and encountered problems with their trust levels?

我只是试图在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.

异常详细信息: System.Security.SecurityException: 请求类型的许可 'System.Net.Mail.SmtpPermission, 系统,版本= 2.0.0.0, 文化=中立, PublicKeyToken = b77a5c561934e089' 失败.

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文件,但没有说明如何处理.

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.

任何人都知道我应该使用machine.config做什么吗?

Anyone got any ideas what I should do with the machine.config or something?

推荐答案

答案是........

And the answer is........

1and1不允许访问system.net.mail. 但是请允许访问已过时的system.web.mail(哦,喜悦)

1and1 do not allow access to system.net.mail. But do however allow access the obsolete system.web.mail (oh joy)

此处提供了可用邮件服务器的基本说明

这篇关于1和1 Windows托管与asp.net的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆