FileIOPermission 错误解决办法

如果你遇到这个错误:
Exception Details: System.Security.SecurityException: Request for the
permission of type 'System.Security.Permissions.FileIOPermission,
mscorlib, Version=2.0.0.0, Culture=neutral,
PublicKeyToken=b77a5c561934e089' failed.
1.请把你的文件夹权限设一下吧,添加ASP.NET这个账号.
2.请把web.config文件中的: <trust level="Medium" originUrl=".*" />改为
  <trust level="Full" originUrl="" />或者把他注解掉.具体参考:
http://www.microsoft.com/china/technet/security/guidance/secmod116.mspx

你可能感兴趣的:(Permission)