I have the need to develop a custom HttpHandler in SharePoint. To start, I just coded up a simple example from here. On line 35 or 36 of that code I get a NullReferenceException thrown if I call my HttpHander page from jQuery. But if I call the page directly in my browser, I get the results I expect. I have seen some examples online for building an HttpHandler in SharePoint and calling it from jQuery and they don't seem to really do anything differently then I am. Ex: Sharepoint list and linq using jquery and ihttphandler
Any ideas on why I can't seem to get the Current context from SPContext when I am calling from jQuery?