SharePoint Stack Exchange is a question and answer site for SharePoint enthusiasts. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I've created custom web service in Sharepoint 2010, and custom FBA. I try to connect from a Win Forms app on another computer.

1/ I log into with cookie container (Authentication.Login)

2/ I call the custom web service with same cookie container

In the web service, SPUser myUser = SPContext.Current.Web.CurrentUser; is ok. But every other operation throw Access Denied error... :

'SPContext.Current.Web.AllowAnonymousAccess' a levé une exception de type 'System.UnauthorizedAccessException'

I get this even if my user is granted for full access.

What can be wrong?

Edit: same problem when I call standard Web Service, like Lists.GetList(name).

share|improve this question
up vote 0 down vote accepted

I made a clean install and everything is ok now.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.