MonoX support board

Start the conversation, ask questions and share tips and solutions with fellow developers.

Non-registered users can only browse through our support boards. Please register now if you want to post your questions. It takes a second and it is completely free. Alternatively, you can log in without registration using your credentials at major sites such as Google, Microsoft Live, OpenId, Facebook, LinkedIn or Yahoo.

Server Error in '/' Application.  (Mono Support )

Viewed 7960 time(s), 6 post(s) 12/7/2014 6:43:22 PMby Apocalypse
Apocalypse

Apocalypse

12/7/2014 7:22:03 PM
 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
khorvat

khorvat

12/8/2014 9:45:15 AM
We will provide you with short list of upgrade instructions and braking changes, stay tuned.

Regards
This content has not been rated yet. 
15993 Reputation 2214 Total posts
khorvat

khorvat

12/8/2014 3:16:57 PM
Can you let us know if you have custom Global.asax or not ? 
This content has not been rated yet. 
15993 Reputation 2214 Total posts
Apocalypse

Apocalypse

12/8/2014 4:15:39 PM
It's the standard global.asax that comes with the install
This content has not been rated yet. 
177 Reputation 14 Total posts
khorvat

khorvat

12/9/2014 8:19:38 AM
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
This content has not been rated yet. 
15993 Reputation 2214 Total posts
Apocalypse

Apocalypse

12/9/2014 4:21:09 PM
It is a clean install. 
This content has not been rated yet. 
177 Reputation 14 Total posts