SecurityException: System.Security.Permissions.SecurityPermission

Last Reply on Nov 29, 2016 05:39 AM By dharmendr

Posted on Nov 29, 2016 05:28 AM


I have issue in project.
I am using Reportviewer in project. In localhost, it is working fine, no issue. Once upload in web server, error prompt
"System.Security.SecurityException: System.Security.Permissions.SecurityPermission

I have changed in web.config

added trust level =Full. Nothing happened.

Pls advice me.
Thank You

Posted on Nov 29, 2016 05:39 AM

Hi maideen,

It seems that the admin of that server changed the default .NET CAS policy, so that local assemblies are not granted full trust. You need to find out what permissions you need and request them from the admin.