Sharepoint Silverlight Form Based Authentication

4 posts, 0 answers
  1. Dharmesh Trivedi
    Dharmesh Trivedi avatar
    24 posts
    Member since:
    Oct 2009

    Posted 13 Jan 2010 Link to this post

    I confess this is not a telerik issue however I am running into problem using e.g. Telerik Bookcontrol and populating with sharepoint List.and Form based Authentication.

    I get following error when I try to assign list cookiecontainer to authentication.asmx cookie container ...

    Message: Unhandled Error in Silverlight Application Unable to set the CookieContainer. Please make sure the binding contains an HttpCookieContainerBindingElement.   at CompanySilverlightApplication.AuthenticationService.AuthenticationServiceClient.set_CookieContainer(CookieContainer value)
       at CompanySilverlightApplication.News.News_Loaded(Object sender, RoutedEventArgs e)
       at System.Windows.CoreInvokeHandler.InvokeEventHandler(Int32 typeIndex, Delegate handlerDelegate, Object sender, Object args)
       at MS.Internal.JoltHelper.FireEvent(IntPtr unmanagedObj, IntPtr unmanagedObjArgs, Int32 argsTypeIndex, String eventName)
    Line: 1
    Char: 1
    Code: 0

    has anyone used silverlight , sharepoint and form based authentication and get data back .. in regular AD environment works but when it comes to FBA . everything breaks ...

  2. Tihomir Petkov
    Tihomir Petkov avatar
    576 posts

    Posted 18 Jan 2010 Link to this post

    Hello Dharmesh,

    If you are not using the client stack, can you please switch to it and see if it helps?

    Best wishes,
    Tihomir Petkov
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
  3. Bill Anderson
    Bill Anderson avatar
    4 posts
    Member since:
    Oct 2009

    Posted 03 Mar 2010 Link to this post

    I too am having the same issue. I know this isn't a telerik issue, but I want to create a photoviewer for silverlight. Here is what i have tried so far. CookieContainer is still null on the AuthenticationSoapClient object...

       HttpWebRequest.RegisterPrefix("http://", WebRequestCreator.ClientHttp);
                AuthenticationSoapClient client = new AuthenticationSoapClient();
                (client.Endpoint.Binding as BasicHttpBinding).EnableHttpCookieContainer = true; //not sure if this is the right way to use this.      
                client.LoginCompleted += (o, e) =>
                    //Get the cookie
                    if (e.Result.ErrorCode == LoginErrorCode.NoError)
    //client.CookieContainer IS NULL HERE.

                client.LoginAsync("userid", "password");
  4. Dharmesh Trivedi
    Dharmesh Trivedi avatar
    24 posts
    Member since:
    Oct 2009

    Posted 03 Mar 2010 Link to this post

    No need to do what you describing if you creating Silverlight webpart hosted inside the sharepoint...

    Do following and it works for me
    (1) Copy ClientBin directory (which includes your XAP file) to the 12 \.... \ControlTemplates\ClientBin
    (2) Make sure you give execute script permission to  ClientBin   in IIS
    (3) make sure if you do refer the fba site web services
    (4)make sure your webpart pointing at the location 12 \.... \ControlTemplates\ClientBin\abc.xap

    let me know if you run into any other problem.
Back to Top