Lately, I was deploying an semantic web based application in a Shared hosting server in GODADDY.COM. And I was Getting the following error for one of the assembly I was using.
“System.Security.SecurityException: That assembly does not allow partially trusted callers. “
I have tried a lot of things, but here is what you need to do:
1) Add following section in your web.config
<trust level=”Full” />
2) In your application assembly.info.cs add the first line below:
My application was running on .net 4 and Godaddy hosting had IIS 7.0.
Hope this helps.