"The assembly does not allow partially trusted callers"
After some investigation i found that the error will be happening when we try to call some trusted assemblies from not trusted or partially trusted assemblies.
I was able to resolve the problem by doing the following steps.
- Signing the assembly with "Mark assemblies with AllowPartiallyTrustedCallerAttribute(APTCA)" option checked in website project properties-->MSBuild Options
- Deployed the dll in to the GAC
- Added the assembly in the safe control list of the web.config of SharePoint site.
No comments:
Post a Comment