Mono Support Server Error in '/' Application. 

Viewed 15348 time(s), 6 post(s), 12/7/2014 6:43:22 PM - by Apocalypse
12/7/2014 7:22:03 PM
177 Reputation 14 Total posts

 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

1
12/8/2014 9:45:15 AM
15993 Reputation 2214 Total posts

We will provide you with short list of upgrade instructions and braking changes, stay tuned.

Regards

2
12/8/2014 3:16:57 PM
15993 Reputation 2214 Total posts

Can you let us know if you have custom Global.asax or not ? 

3
12/8/2014 4:15:39 PM
177 Reputation 14 Total posts

It's the standard global.asax that comes with the install

4
12/9/2014 8:19:38 AM
15993 Reputation 2214 Total posts

Do you have any custom HttpHandlers that might be called from the home page ? Is this a clean MonoX v5.x installation or upgraded MonoX ?

Regards

5
12/9/2014 4:21:09 PM
177 Reputation 14 Total posts

It is a clean install. 

6
This is a demo site for MonoX. Please visit Mono Software for more info.