In my class NinjectSPHttpApplication I have inherited SPHttpApplication class in order to use Ninject as IOC container. When I set global.asax to inherit from this class it throws an exception that the assembly does not allow partially trust callers, which seems quite odd. I cannot use attribute AllowPartiallyTrustedCallers since Ninject's assembly (dll) does not allow that. I have set the web trust to medium trust.
Is there any other solution then to set the web's trust to full trust? Possibly to set some IPermissions in the deploy package?