Geoff Varosky's Blog

SharePoint, Office 365, Azure, and Other Musings…

  • Home
  • About
  • Blog Links
  • Calendar
Posts Comments
  • SharePoint
  • SharePoint 2010
  • Events
    • SharePoint Saturday
    • User Groups
      • BASPUG
  • Office 365
  • PowerShell
  • SharePoint Online
  • SharePoint 2013

The request failed with the error message: Object moved (SharePoint 2010, Web Services & FBA)

January 4, 2011 6 Comments

Ever seen this message?

image

Sure, some simple code to loop through the User Profile store in SharePoint 2010 via a console application using web services. It can be a frustrating message indeed. However, there is a simple resolution.

 

The Problem

The problem is – you are not authenticated. Even if you are passing credentials in your code, it is not going to work. You need to be authenticated to get to the web service itself. In this instance – we are using Claims Based Authentication, and mixed CBA, using both Forms Based Authentication, as well as Windows Authentication. So, what is happening here, and you can see in the error below

image

You’re being redirected to the Sign In page to allow you to select your authentication method – you are connecting to a web page after all, even if you do not see it.

image

 

The Solution

Extend your mixed authentication web application, and create a zone just for Windows Authentication, then change the Web Reference URL in the properties of your web service, to use that extended URL and port. You should have no issues of this kind anymore.

Share this:

  • Click to share on Facebook (Opens in new window) Facebook
  • Click to share on LinkedIn (Opens in new window) LinkedIn
  • Click to share on X (Opens in new window) X
  • Click to share on Pinterest (Opens in new window) Pinterest
  • Click to share on Tumblr (Opens in new window) Tumblr
  • Click to email a link to a friend (Opens in new window) Email
  • Click to print (Opens in new window) Print
Like Loading...

Filed under SharePoint, SharePoint 2010 Tagged with CBA, Claims Based Authentication, FBA, Forms Based Authentication, SharePoint, SharePoint 2010, User Profile Service, Web Service, Web Services

Categories

Archives

Top Posts

  • SharePoint Site Collection backup failed–site left locked.
  • System.UnauthorizedAccessException: Filename: redirection.config
  • SharePoint 2016 Web Template List
  • Upgrading to an Enterprise License in SharePoint 20XX
  • Creating an Azure Run As Account

Twitter Feed (@gvaro)

Tweets by gvaro

Enter your email address to subscribe to this blog and receive notifications of new posts by email.

Join 87 other subscribers
All content copyright 2007-2017 Geoff Varosky. All rights reserved.

Blog at WordPress.com.

  • Subscribe Subscribed
    • Geoff Varosky's Blog
    • Join 87 other subscribers
    • Already have a WordPress.com account? Log in now.
    • Geoff Varosky's Blog
    • Subscribe Subscribed
    • Sign up
    • Log in
    • Report this content
    • View site in Reader
    • Manage subscriptions
    • Collapse this bar
%d