So i've upgraded to the latest nightly build 5.1.40.5032 (11/7/2014) to utilize the IoC/DI pattern which MonoX and Ninject provide and i keep getting a server error message. It seems to be throwing a null exception for IResolutionRoot root.
Server Error in '/' Application.Cannot be null
Parameter name: rootDescription: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
Exception Details: System.ArgumentNullException: Cannot be null
Parameter name: root
Source Error:
An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.
Stack Trace:
[ArgumentNullException: Cannot be null
Parameter name: root]
Ninject.ResolutionExtensions.GetResolutionIterator(IResolutionRoot root, Type service, Func`2 constraint, IEnumerable`1 parameters, Boolean isOptional, Boolean isUnique) +130
Ninject.ResolutionExtensions.GetAll(IResolutionRoot root, IParameter[] parameters) +60
Ninject.Web.Common.NinjectHttpModule.Init(HttpApplication context) +71
System.Web.HttpApplication.RegisterEventSubscriptionsWithIIS(IntPtr appContext, HttpContext context, MethodInfo[] handlers) +474
System.Web.HttpApplication.InitSpecial(HttpApplicationState state, MethodInfo[] handlers, IntPtr appContext, HttpContext context) +176
System.Web.HttpApplicationFactory.GetSpecialApplicationInstance(IntPtr appContext, HttpContext context) +332
System.Web.Hosting.PipelineRuntime.InitializeApplication(IntPtr appContext) +182
[HttpException (0x80004005): Cannot be null
Parameter name: root]
System.Web.HttpRuntime.FirstRequestInit(HttpContext context) +552
System.Web.HttpRuntime.EnsureFirstRequestInit(HttpContext context) +95
System.Web.HttpRuntime.ProcessRequestNotificationPrivate(IIS7WorkerRequest wr, HttpContext context) +188
This content has not been rated yet.
177
Reputation
14
Total posts