http status 401 Error

Last post 03-25-2008, 2:23 AM by johnny. 5 replies.
Sort Posts: Previous Next
  •  03-12-2008, 11:44 AM 22487

    http status 401 Error

    Hi,

     I have an issue when i try and do a GetFolderFiles by using the K2SPSList class.

    On the one server it works but when i test it on another server i get the 401 error.

    I then tested to see if i can connect to Sharepoint manualy for the server with the error and it works perfectly?

    It seems like it is not exepting the logon credentials that i am suplying?

    Any advice?

    Shawn

  •  03-12-2008, 11:50 PM 22503 in reply to 22487

    Re: http status 401 Error

    Commonly this is because the K2 service account is not given rights to the SharePoint site.  Try giving the K2 service account site collection rights and test it out again.
  •  03-13-2008, 8:13 AM 22523 in reply to 22503

    Re: http status 401 Error

    I am using the Domain administrator login details as the credentials. Do I still need to check the K2 service account? Is the K2 service account on the server i am trying to connect to or from?
  •  03-14-2008, 3:03 AM 22533 in reply to 22523

    Re: http status 401 Error

    The rights needed by the K2 server account is with the assumption that your code is running from the K2 server.  We give it admin rights because there will be instances that the process does admin functions such as creating a site.

     Of cos from normal development from a standard user account, you would probably need rights to access the functions from the K2 Designer.  e.g. enumerating the list of document libraries from a site.

     Perhaps if you gave a bit more detail on how you are using the K2spslist function and your environment setup, it might help us in understanding your issue better.

  •  03-18-2008, 5:06 AM 22585 in reply to 22533

    Re: http status 401 Error

    The application is not running on the K2 server. The admin account that i am using as the logon credentials is the local admin user for the K2 server. The sharepoint server is running on the same server as the K2 server.

    Do you still require more details?

  •  03-25-2008, 2:23 AM 22728 in reply to 22585

    Re: http status 401 Error

    So if your applicaton code is not running from the K2 service, where is it running from?  If it is a web application, what are your app pool identity settings and is impersonation turned on or off in the web.config?

    If you have impersonation on, the application code should be running under the context of the logged on user, otherwise it should be using the app pool account identity.

View as RSS news feed in XML