SPContext.Current is null in a web service under a sharepoint site
Posted
by Ariel
on Stack Overflow
See other posts from Stack Overflow
or by Ariel
Published on 2010-02-17T18:54:39Z
Indexed on
2010/05/13
3:24 UTC
Read the original article
Hit count: 408
sharepoint
|webservices
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.
© Stack Overflow or respective owner