Skip to content

Instantly share code, notes, and snippets.

@warpech
Created January 13, 2014 17:43
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save warpech/8404567 to your computer and use it in GitHub Desktop.
Save warpech/8404567 to your computer and use it in GitHub Desktop.
System.NullReferenceException was unhandled by user code
HResult=-2147467261
Message=Object reference not set to an instance of an object.
Source=Starcounter.Node
StackTrace:
at Starcounter.X.CheckLocalCache(String uri, Object userObject, Action`2 userDelegate, Response& resp)
at Starcounter.X.GET[T](String uri, Int32 receiveTimeoutMs)
at Page.AsMimeType(MimeType type) in c:\Sites\PMail\Server\Page.json.cs:line 10
at Starcounter.Internal.JsonMimeConverter.Convert(Request request, Object before, MimeType mimeType, MimeType& resultingMimeType)
at Starcounter.Json.AsMimeType(MimeType mimeType, MimeType& resultingMimeType, Request request)
at Starcounter.Response.ConstructFromFields()
at Starcounter.Internal.Web.AppRestServer.OnResponseHttp(Request request, Response response)
InnerException:
@warpech
Copy link
Author

warpech commented Jan 13, 2014

I get this exception in line 10 in this file: https://github.com/warpech/PMail/blob/master/Server/Page.json.cs#L10

@warpech
Copy link
Author

warpech commented Jan 13, 2014

I tried to revert to previous (surely working) commits in project where I had this problem (PMail) -- no improvement.

Compiling other project worked ok.

Compiling PMail again -- still did not work.

Finally I cleaned and rebuilded PMail and it works. 👌

Copy link

ghost commented Jan 13, 2014

Thanks for reporting! The first question is what version are you using? :)

@warpech
Copy link
Author

warpech commented Jan 13, 2014

Starcounter 2.0.1342.3 (Jan 8, 2014 1:00:43 AM)

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