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 )

15703 put(a) pogledan, 6 odgovor(a) 7.12.2014. 18:43:22Kreirao(la) Apocalypse
Apocalypse

Apocalypse

7.12.2014. 19:22:03
 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
Ovaj sadržaj još nije ocijenjen. 
177 Reputacija 14 Ukupno objava
khorvat

khorvat

8.12.2014. 9:45:15
We will provide you with short list of upgrade instructions and braking changes, stay tuned.

Regards
Ovaj sadržaj još nije ocijenjen. 
15993 Reputacija 2214 Ukupno objava
khorvat

khorvat

8.12.2014. 15:16:57
Can you let us know if you have custom Global.asax or not ? 
Ovaj sadržaj još nije ocijenjen. 
15993 Reputacija 2214 Ukupno objava
Apocalypse

Apocalypse

8.12.2014. 16:15:39
It's the standard global.asax that comes with the install
Ovaj sadržaj još nije ocijenjen. 
177 Reputacija 14 Ukupno objava
khorvat

khorvat

9.12.2014. 8:19:38
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
Ovaj sadržaj još nije ocijenjen. 
15993 Reputacija 2214 Ukupno objava
Apocalypse

Apocalypse

9.12.2014. 16:21:09
It is a clean install. 
Ovaj sadržaj još nije ocijenjen. 
177 Reputacija 14 Ukupno objava