Skip to content

Instantly share code, notes, and snippets.

@ToJans
Created March 8, 2011 08:27
Show Gist options
  • Save ToJans/860030 to your computer and use it in GitHub Desktop.
Save ToJans/860030 to your computer and use it in GitHub Desktop.
I get this YSOD from time to time in http://nerdbeers.apphb.com
Server Error in '/' Application.
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.]
Simple.Data.SimpleRecord.TryGetMember(GetMemberBinder binder, Object& result) in C:\Projecten\Org.NerdBeers\Dependencies\Simple.Data\Simple.Data\SimpleRecord.cs:48
CallSite.Target(Closure , CallSite , Object ) +130
Org.NerdBeers.Web.Services.Repository.GetBeerEventSubscribers(Int32 id) in d:\temp\rerb1bhw.i0j\input\src\Org.NerdBeers\Org.NerdBeers.Web\Services\Repository.cs:36
Org.NerdBeers.Web.Modules.<>c__DisplayClass74.<.ctor>b__67(Object x) in d:\temp\rerb1bhw.i0j\input\src\Org.NerdBeers\Org.NerdBeers.Web\Modules\BeerEventModule.cs:26
Nancy.Routing.Route.Invoke(DynamicDictionary parameters) in C:\Projecten\Nancy\Nancy\src\Nancy\Routing\Route.cs:29
Nancy.NancyEngine.ResolveAndInvokeRoute(NancyContext context) in C:\Projecten\Nancy\Nancy\src\Nancy\NancyEngine.cs:119
Nancy.NancyEngine.HandleRequest(Request request) in C:\Projecten\Nancy\Nancy\src\Nancy\NancyEngine.cs:85
Nancy.Hosting.Aspnet.NancyHandler.ProcessRequest(HttpContextBase context) in C:\Projecten\Nancy\Nancy\src\Nancy.Hosting.Aspnet\NancyHandler.cs:19
Nancy.Hosting.Aspnet.NancyHttpRequestHandler.ProcessRequest(HttpContext context) in C:\Projecten\Nancy\Nancy\src\Nancy.Hosting.Aspnet\NancyHttpRequestHandler.cs:76
System.Web.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +100
System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +75
@ToJans
Copy link
Author

ToJans commented Mar 8, 2011

Hey Mark,

Thank you for the quick reaction; I'll try to do it ASAP...

Tom

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment