ASP.net
Awesome
Learn
Forum
Buy
Demos
Sign In
☾
☀
Switch to
Dark
Light
Mode
this site works best with javascript enabled
Ask Question
prodinner WindsorRegistrar MVC5
Title:
B
I
{code}
?
Hi, I have upgraded WebUI to MVC5 (framework at 4.5. I have also tried 4.5.1). I have also added the Omu.AwesomeMvc (MVC5) files. In the WindsorRegistrar class... public static void RegisterAllFromAssemblies(string a) { IoC.Container.Register(AllTypes.FromAssemblyNamed(a).Pick().WithService.FirstInterface().Configure(o => o.LifeStyle.PerWebRequest)); } I get the following error... Inheritance security rules violated while overriding member: 'Omu.AwesomeMvc.AwesomeMetadataAttribute.OnMetadataCreated(System.Web.Mvc.ModelMetadata)'. Security accessibility of the overriding method must match the security accessibility of the method being overriden.
Save Changes
Cancel
bassist10
asked at 24 Mar 2014
use the mvc5 version of the Awesome library, located in bin/mvc5
at 24 Mar 2014
Omu
with latest Castle Windsor 3.2 it needs to be IoC.Container.Register(Classes.FromAssemblyNamed(a).Pick().WithService.DefaultInterfaces().LifestylePerWebRequest()); http://docs.castleproject.org/Windsor.MainPage.ashx
at 29 Mar 2014
Omu
Answers
please
Sign In
to leave an answer
By accessing this site, you agree to store cookies on your device and disclose information in accordance with our
cookie policy
and
privacy policy
.
OK