System.Security.SecurityException
-
Hi all, I am using third party tool in my web site. Its running fine on my dev. PC. but when I upload it to server it says "System.Security.SecurityException: That assembly does not allow partially trusted callers." when I read about this error, many suggest to get it set trust level to high by admin because developer can not overwrite this. Is there any other solution of this problem. Thanks
Bajrang Singh Using .net 2.0 (VS2005)
-
Hi all, I am using third party tool in my web site. Its running fine on my dev. PC. but when I upload it to server it says "System.Security.SecurityException: That assembly does not allow partially trusted callers." when I read about this error, many suggest to get it set trust level to high by admin because developer can not overwrite this. Is there any other solution of this problem. Thanks
Bajrang Singh Using .net 2.0 (VS2005)
-
Add following line in your project's AssemblyInfo file, either at top or bottom.
[assembly: AllowPartiallyTrustedCallers]
This will resolve your issue. HTH
Jinal Desai - LIVE Experience is mother of sage....
Thanks Jindal for reply. I've got this solution from many site but I didn't find assemblyInfo file in my web site and I didn't get any option to add it ( I think it added automatically). I created website as ASP.NET AjaxEnabled Web Site and AssemblyInfo file was not there) Could you pls tell me what is the option to add AssemblyInfo file. Thanks
Bajrang Singh Using .net 2.0 (VS2005)