SPContext.Current is null in a web service under a sharepoint site
- by Ariel
I'm exposing a web service in a SharePoint site e.g. http://server/_vti_bin/subdir/mywebservice.asmx.
In the web service method, SPContext.Current appears to be null.
(Interestingly, I'm looking at an example in Chapter 5 of Inside Windows SharePoint Services 3.0 and they use SPContext.Current inside a web service!)
Any idea what am I missing? Thanks in advance.