0

We are using an on-premise web application that uses these SharePoint web services:

Copy.asmx, Dws.asmx, Lists.asmx and Webs.asmx

to access SharePoint to enumerate sites/folders and upload/download documents.

The web application runs in a pool under a user account on one of our on premise servers.

We supply credentials for a user to the web services - for the record this user account is also synced to Office365 and is enabled to access our SharePoint Online site.

Our initial tests use Webs.asmx and at first resulted in

Server was unable to process request. ---> Access is denied. (Exception from HRESULT: 0x80070005 (E_ACCESSDENIED))

At 18:55 on the 13th

We then altered our dll to add the following request header to the Webs.asmx web request (recommended for mixed authentication)

request.Headers.Add("X-FORMS_BASED_AUTH_ACCEPTED", "f")

but then got:

The request failed with HTTP status 401: Unauthorized.

At 20.44 on the 13th

Any ideas??

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.