Skip to content

Instantly share code, notes, and snippets.

@pdwetz
Created April 20, 2016 18:31
Show Gist options
  • Save pdwetz/a72a5e7e93bc4bd06fca64c0842198e2 to your computer and use it in GitHub Desktop.
Save pdwetz/a72a5e7e93bc4bd06fca64c0842198e2 to your computer and use it in GitHub Desktop.
Null error in NancyFx v2 with Spark view engine and new async NancyModule
Error Details
Nancy.RequestExecutionException: Oh noes! ---> System.NullReferenceException: Object reference not set to an instance of an object.
at Views_home.Viewfb8e7c8d7e1547039246bf7c625fe9df.RenderViewLevel1()
at Views_home.Viewfb8e7c8d7e1547039246bf7c625fe9df.Render()
at Spark.SparkViewBase.RenderView(TextWriter writer)
at Nancy.ViewEngines.Spark.NancySparkView.Execute()
at Nancy.ViewEngines.Spark.SparkViewEngine.<>c__DisplayClass8.b__7(Stream stream)
at Nancy.Responses.MaterialisingResponse.PreExecute(NancyContext context)
at Nancy.NancyEngine.d__9.MoveNext()
--- End of inner exception stack trace ---
at Nancy.NancyEngine.InvokeOnErrorHook(NancyContext context, ErrorPipeline pipeline, Exception ex)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment