Skip to content
This repository was archived by the owner on Jan 24, 2021. It is now read-only.

Cassette breaks Nancyfx diagnostic settings page #1592

Closed
donnyv opened this issue Jul 2, 2014 · 1 comment
Closed

Cassette breaks Nancyfx diagnostic settings page #1592

donnyv opened this issue Jul 2, 2014 · 1 comment

Comments

@donnyv
Copy link

donnyv commented Jul 2, 2014

I'm not sure if this is a Nancy or Cassette issue . So I'm posting on both sites.

Cassette issue here => andrewdavey/cassette#452

Issue

When I try to run Nancyfx diagnostic settings page, I get this stack trace.

Object reference not set to an instance of an object.

Description: 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.NullReferenceException: Object reference not set to an instance of an object.

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:

[NullReferenceException: Object reference not set to an instance of an object.]
Cassette.Nancy.NancyContextLifetimeProvider.GetObject() +36
Cassette.TinyIoC.CustomObjectLifetimeFactory.GetObject(Type requestedType, TinyIoCContainer container, NamedParameterOverloads parameters, ResolveOptions options) +104
Cassette.TinyIoC.TinyIoCContainer.ResolveInternal(TypeRegistration registration, NamedParameterOverloads parameters, ResolveOptions options) +173

[TinyIoCResolutionException: Unable to resolve type: Cassette.PlaceholderTracker]
Cassette.TinyIoC.TinyIoCContainer.ResolveInternal(TypeRegistration registration, NamedParameterOverloads parameters, ResolveOptions options) +1419
Cassette.TinyIoC.TinyIoCContainer.Resolve() +120
Cassette.HostBase.b__25(TinyIoCContainer c, NamedParameterOverloads p) +49
Cassette.TinyIoC.DelegateFactory.GetObject(Type requestedType, TinyIoCContainer container, NamedParameterOverloads parameters, ResolveOptions options) +64

[TinyIoCResolutionException: Unable to resolve type: Cassette.IPlaceholderTracker]
Cassette.TinyIoC.DelegateFactory.GetObject(Type requestedType, TinyIoCContainer container, NamedParameterOverloads parameters, ResolveOptions options) +150
Cassette.TinyIoC.TinyIoCContainer.ResolveInternal(TypeRegistration registration, NamedParameterOverloads parameters, ResolveOptions options) +1296
Cassette.TinyIoC.TinyIoCContainer.Resolve() +120
Cassette.Nancy.<>c__DisplayClass1.b__0(Stream stream) +41
Nancy.Hosting.Aspnet.NancyHandler.EndProcessRequest(Task`1 task) +255
System.Web.CallHandlerExecutionStep.OnAsyncHandlerCompletion(IAsyncResult ar) +282
System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() +32
System.Web.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +630
System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +288

@thecodejunkie
Copy link
Member

Looking at the stacktrace it does not look like it's something in Nancy

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants