Quantcast
Channel: SharePoint 2010 - Development and Programming forum
Viewing all articles
Browse latest Browse all 11571

Copy items to different farm error for Forms Based Authentication Site

$
0
0

Hi,

I have an event receiver that copies items across web applications in different farms, on the same domain though. This works fine for a destination web app that uses Windows Authentication. The particular one I need to copy to has Claims Based Authentication enabled and throws an error:

System.Net.WebException: The remote server returned an error: (403) Forbidden.
   at System.Net.HttpWebRequest.GetResponse()
   at Microsoft.SharePoint.Client.SPWebRequestExecutor.Execute()
   at Microsoft.SharePoint.Client.ClientContext.EnsureFormDigest()
   at Microsoft.SharePoint.Client.ClientContext.ExecuteQuery()
   at Claims.Event.ItemAdded(SPItemEventProperties properties)

What do I need to do to my code to make this work?


Viewing all articles
Browse latest Browse all 11571

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>