System.MethodAccessException with the following message:
Assembly 'MyProjectAssembly, Version=184.108.40.206, Culture=neutral, PublicKeyToken=b4bce33dbc53d2b3' is partially trusted, which causes the CLR to make it entirely security transparent regardless of any transparency annotations in the assembly itself. In order to access security critical code, this assembly must be fully trusted.
Assembly 'System.Web.Extensions, Version=220.127.116.11, Culture=neutral, PublicKeyToken=31bf3856ad364e35' is a conditionally APTCA assembly which is not enabled in the current AppDomain. To enable this assembly to be used by partial trust or security transparent code, please add assembly name 'System.Web.Extensions, PublicKey=[something long]' to the the PartialTrustVisibleAssemblies list when creating the AppDomain.
So, I get that my assembly is partially trusted because it's a sandbox solution. That's fine. But how do I add the
System.Web.Extensions assembly to the "PartialTrustVisibleAssemblies" so I can then use it? Is that something I can do in the VS solution package somewhere?
And if not, what are my options here?