我无法通过 ASP.NET 发送电子邮件并向我的网络主机发送电子邮件寻求帮助,并被告知要修改我的安全设置并收到一个链接:
http://forums.asp.net/t/1111145.aspx/1
我已经阅读了那里所说的内容并尝试 <trust level="Full" originUrl="" />
在 web.config 中进行设置,但随后出现错误:
This configuration section cannot be used at this path. This happens when the site administrator has locked access to this section using <location allowOverride="false"> from an inherited configuration file.
我没有设置任何其他 web.config 文件。
所以我再次询问了网络主机,并询问它是否是我无法更改的服务器设置,但我得到的回答只是:
You'll need to specify a more specific path.
这很可爱,但我不知道这意味着什么!
做了更多的挖掘后,我想知道是否必须设置一个单独的trust
文件,这是正确的吗?
有人可以指出我设置信任级别的正确方法(我意识到“完整”也可能不正确?)因为我真的不明白我应该做什么!