Asp.net 文件追踪和代码访问安全

Asp.net 文件追踪和代码访问安全,asp.net,security,papertrail-app,Asp.net,Security,Papertrail App,我目前正在研究书面记录,发现它非常有趣。 但是,我的web应用程序将部署到我无法控制的web服务器上。 问题是我使用此解决方案将日志发送到papertrail: 在我看来,我不能在中等信任级别的网站上发送日志: 是这样吗? 您是否有在中等信任网站上使用papertrail的经验?是的,您是对的: Medium (web_mediumtrust.config) - Specifies a medium level of code access security, which means tha

我目前正在研究书面记录,发现它非常有趣。 但是,我的web应用程序将部署到我无法控制的web服务器上。 问题是我使用此解决方案将日志发送到papertrail:

在我看来,我不能在中等信任级别的网站上发送日志:

是这样吗? 您是否有在中等信任网站上使用papertrail的经验?

是的,您是对的:

Medium (web_mediumtrust.config) - Specifies a medium level of code access security, which means that, in addition to High Trust Level restrictions, the ASP.NET application cannot do any of the following things by default:

 Access files outside the application directory.
 Access the registry.
 **Make network or Web service calls.** 

据我所知,papertrail logger使用网络来记录外部站点/服务。

看起来是正确的答案,但我想看看是否有人有实际经验……您可以自己尝试,但我认为没有人在中等信任的Web服务器上使用它。您应该寻找其他托管公司或更改您的规格/要求。