I have an ASP.NET 4 application that uses OAuth and OpenID. I have added a WCF Service to it for communication with a desktop application. I have been able to pass a simple string value from the web app to the desktop app but when I try to initialize a method in the web app from the desktop app I get a Null Reference Exception on the HttpContext.Current.Session.Keys.Count.
The session keys are not being referenced when the method is initialized from the Service.
I need to pass the existing keys to the method to be able to run it.
I have tried to set the asp 'compatibility mode' to required and allowed but the service will not run with the required code segments inserted.
Attached are the code files that I am working with, I have removed the 'compatibility mode' statements.