asp.net mvc 3 - Ninject model validator causing issues in medium trust -


using ninject 2.2 asp.net mvc 3.

i have controller , classes located in external assembly registered loading ninjectmodule said assembly.

the models contain validation properties. seems ninject getting security exception when post action done on action takes model validation attributes. below exception:

"attempt method 'ninject.web.mvc.validation.ninjectdataannotationsmodelvalidatorprovider.getvalidators(system web.mvc.modelmetadata, system.web.mvc.controllercontext, system.collections.generic.ienumerable`1)' access method 'system.web.mvc.dataannotationsmodelvalidator.get_attribute()' failed."

the inner exception states: system.security.securityexception: request failed.

however, works fine in full-trust permissions.

i attempted create container in main assembly via

var kernel = new standardkernel(new ninjectsettings() { usereflectionbasedinjection = true }); 

but issue still persists.


Comments

Popular posts from this blog

apache - Add omitted ? to URLs -

redirect - bbPress Forum - rewrite to wwww.mysite prohibits login -

php - How can I stop spam on my custom forum/blog? -