403 Forbidden error while accessing SharePoint FORM BASED AUTHENTICATION site

Apr 29, 2012 at 3:29 PM
Edited Apr 29, 2012 at 3:30 PM

Hi,

I am getting below error while accessing SharePoint "Form Based Authentication" site.

Error : "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 : http://msdn.microsoft.com/en-us/library/hh124553.aspx

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.

public partial 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.

Regards,

Hiren

Dec 18, 2012 at 3:14 PM

Did you ever figure this one out?  I'm having the same issue.

Jan 23, 2013 at 1:58 PM

An update for this has been checked in.

Feb 7, 2013 at 6:16 AM
<div dir="ltr"><br> Hi,<br> <br> Thanks for the reply.<br> but is it included in sqlsrvintegrationsrv-97891.zip file?<br> <br> Regards,<br> Hiren<br> <div> <div id="ecxSkyDrivePlaceholder"></div> <hr id="ecxstopSpelling"> From: [email removed]<br> To: [email removed]<br> Date: Wed, 23 Jan 2013 05:58:21 -0800<br> Subject: Re: 403 Forbidden error while accessing SharePoint FORM BASED AUTHENTICATION site [SQLSrvIntegrationSrv:353951]<br> <br> From: kevinidzi<br> <div id="ecxThreadNotificationPostBody">An update for this has been checked in.<br> </div> <div id="ecxThreadNotificationFooter">Read the <a href="http://sqlsrvintegrationsrv.codeplex.com/discussions/353951#post990935" target="_blank"> full discussion online</a>.<br> To add a post to this discussion, reply to this email (<a href="mailto:SQLSrvIntegrationSrv@discussions.codeplex.com?subject=[SQLSrvIntegrationSrv:353951]">SQLSrvIntegrationSrv@discussions.codeplex.com</a>)<br> To start a new discussion for this project, email <a href="mailto:SQLSrvIntegrationSrv@discussions.codeplex.com"> SQLSrvIntegrationSrv@discussions.codeplex.com</a><br> You are receiving this email because you subscribed to this discussion on CodePlex. You can <a href="https://sqlsrvintegrationsrv.codeplex.com/discussions/353951/unsubscribe/" target="_blank"> unsubscribe</a> on CodePlex.com.<br> Please note: Images and attachments will be removed from emails. Any posts to this discussion will also be available online at CodePlex.com<br> </div> </div> </div>