小编Pet*_*ter的帖子

Security exceptions in ASP.NET and Load User Profile option in IIS 7.5

After deployment of new version of our ASP.NET 2.0 application, it started to raise security exception: „System.Security.SecurityException: Request for the permission of type 'System.Web.AspNetHostingPermission, System, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' failed.".

After quick research on internet we were able to resolve this isse by setting „Load User Profile" to True in IIS 7.5 application pool. This solution is also mentioned several times here on stackoverflow:

asp.net security iis-7 exception

18
推荐指数
1
解决办法
2万
查看次数

标签 统计

asp.net ×1

exception ×1

iis-7 ×1

security ×1