Apr 29, 2012 at 3:29 PM
Edited Apr 29, 2012 at 3:30 PM
I am getting below error while accessing SharePoint "Form Based Authentication" site.
"The HTTP request was forbidden with client authentication scheme 'Ntlm'. ---> System.Net.WebException: The remote server returned an error:
(403) Forbidden. at System.Net.HttpWebRequest.GetResponse()"
As per my understanding, I need add an additional header of my request (override
GetWebRequest method of List service web reference). Its name should be
X-FORMS_BASED_AUTH_ACCEPTED and value must be "f"
Reference link :
As I am seeing in project "SharePointUtility.vbproj" we have used Service Reference(WCF) instead of web reference so I am not getting Lists class and GetWebRequest method to add header for Form Based Autentication.
class Lists : System.Web.Services.Protocols.SoapHttpClientProtocol
protected override System.Net.WebRequest GetWebRequest(Uri uri)
Any help/suggestion would be greatly appreciated as I have stuck with this issue.