Last post Aug 01, 2016 05:19 AM by Yohann Lu
Jul 29, 2016 10:51 AM|NatarajYashash|LINK
in asp.net 3.5 i madew an application ,having payment gateway integration with ccavenue, in local the data is transferred to ccavenue site but getting error ,when i was upload an host in server ,after entering the details ,its not transfer to ccavenue
page getting error like System.Security.SecurityException: That assembly does not allow partially trusted callers..
Aug 01, 2016 05:19 AM|Yohann Lu|LINK
From your description, you can try the following options.
1: Give the library you are trying to call a strong name.
2: Add [assembly:AllowPartiallyTrustedCallers] to the library that you are trying to call.
3: Create a code group to set permissions to the library
Also, there is a possibility that not your assembly is the problem, but you are calling another assembly that does not allow partially trusted callers.
At runtime, you can use fuslogvw to find which assembly is giving you the problems.
Assembly Binding Log Viewer (Fuslogvw.exe):
If this is the problem and you have the sources of this assembly you need to also apply the [assembly:AllowPartiallyTrustedCallers] attribute to that assembly.
The following links may be helpful for you.
ASP.Net iTextSharp System.Security.SecurityException: That assembly does not allow partially trusted callers:
Allow partially trusted callers – using ASP.NET in shared hosting: