System.Security.SecurityException:对“System.Security.Permissions.ReflectionPermission”类型的权限的请求失败

时间:2012-04-21 14:34:36

标签: .net iis iis-7 web-config

我已经将我的web.config文件设置为完全信任,为什么我仍然会收到此错误?

该网站在Mono .NET和内置的.NET网络服务器下运行良好,但不适用于IIS 7.

<system.web>
    <!-- trust level-->
    <securityPolicy>
      <trustLevel name="Full" policyFile="internal" />
      <trustLevel name="High" policyFile="web_hightrust.config" />
      <trustLevel name="Medium" policyFile="web_mediumtrust.config" />
      <trustLevel name="Low" policyFile="web_lowtrust.config" />
      <trustLevel name="Minimal" policyFile="web_minimaltrust.config"/>
    </securityPolicy>
    <trust
       level="Full"
       originUrl=""
       processRequestInApplicationTrust="true"
   />

   ...
   </system.web>

0 个答案:

没有答案