Take the 2-minute tour ×
SharePoint Stack Exchange is a question and answer site for SharePoint enthusiasts. It's 100% free, no registration required.

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
add comment

1 Answer 1

up vote 0 down vote accepted

I made a clean install and everything is ok now.

share|improve this answer
add comment

Your Answer

 
discard

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.