Geeks With Blogs

News Please visit me at my new blog!!

profile for Aligned at Stack Overflow, Q&A for professional and enthusiast programmers
"free in Christ Jesus from the law of sin and death." Romans 8:2 (ESV) Check out the Falling Plates video on YouTube.
more about the Gospel
And then listen to Francis Chan speaking at LifeLight in SD.

Programming and Learning from SD
This might be obvious, but it tripped me up for a bit. If you are using Ninject have a property (in my case a WebForms MasterPage code behind) and don't make it public, it will always be null.

Also when using IIS Express, you must stop the site and then F5 after making changes in the NinjectWebCommon.cs RegisterServices method.
Posted on Tuesday, August 20, 2013 10:38 AM Inversion Of Control (Ioc) , Tools | Back to top

Comments on this post: Ninject property has to be public for Inject Attribute

No comments posted yet.
Your comment:
 (will show your gravatar)

Copyright © Aligned | Powered by: