[Lab] Building Forms in K2 Studio Designer

Last post 05-06-2008, 7:57 PM by bkashefipour. 10 replies.
Sort Posts: Previous Next
  •  10-24-2007, 2:03 AM 19351

    [Lab] Building Forms in K2 Studio Designer

    In Lab 1, Exercise 1, Step 4, configure a SQL DataSource to the Region SmartObject

    Under point 25, when I click Test Query, I got an error,

    "There was an error executing the query. Please check the syntax of the command and if persent, the types and values of the parameters and ensure they are correct.

    The request failed with HTTP status 401: Unauthorized."

    All I have done in lab was adding 4 Items under a list in WSS, and created smartObject to access it. Then I open a ASP.NET Form and added SQLDataSource and connect to that SmartObject.

     



    Regards
    Ken Lin, Kam Hung
    Founder and VP of Hong Kong .NET User Group(http://HKNetUG.com)
    MCP, MCP+I, MCDST, MCSA, MCSE, MCITP
    MCSE+I, MCDBA, MCSD, MCAD
    Microsoft Community Star(Hong Kong & Taiwan)
    Microsoft Most Valuable Professional(.NET since 2003)
    MCT2004 - 2008
    Filed under: , , ,
  •  10-24-2007, 9:47 PM 19373 in reply to 19351

    Re: [Lab] Building Forms in K2 Studio Designer

    It sounds like the user credentials aren't being passed to SharePoint.  Does your web app have anonymous turned off, Windows Integrated turned on in IIS and Identity Impersonate=true in whe web.config?
    The statements and opinions made in my postings are my own, and do not reflect the opinions of SourceCode Technology Holdings, Inc. or its subsidiaries. All information is provided as is with no warranties, express or implied, and grants no rights or licenses.
  •  10-24-2007, 10:18 PM 19374 in reply to 19373

    Re: [Lab] Building Forms in K2 Studio Designer

    I already turn off the Anonymous and enabled Windows Integrated.


    Regards
    Ken Lin, Kam Hung
    Founder and VP of Hong Kong .NET User Group(http://HKNetUG.com)
    MCP, MCP+I, MCDST, MCSA, MCSE, MCITP
    MCSE+I, MCDBA, MCSD, MCAD
    Microsoft Community Star(Hong Kong & Taiwan)
    Microsoft Most Valuable Professional(.NET since 2003)
    MCT2004 - 2008
  •  10-24-2007, 10:26 PM 19376 in reply to 19374

    Re: [Lab] Building Forms in K2 Studio Designer

    Is  <identity impersonate="true"/> set in the web.config?

    Is the client you are browsing from, the web app, K2 and SharePoint all on different machines?


    The statements and opinions made in my postings are my own, and do not reflect the opinions of SourceCode Technology Holdings, Inc. or its subsidiaries. All information is provided as is with no warranties, express or implied, and grants no rights or licenses.
  •  10-24-2007, 10:29 PM 19377 in reply to 19376

    Re: [Lab] Building Forms in K2 Studio Designer

    Web Forms application in my computer, K2 Server and Workspaces one one server and WSS in antoher server
    Regards
    Ken Lin, Kam Hung
    Founder and VP of Hong Kong .NET User Group(http://HKNetUG.com)
    MCP, MCP+I, MCDST, MCSA, MCSE, MCITP
    MCSE+I, MCDBA, MCSD, MCAD
    Microsoft Community Star(Hong Kong & Taiwan)
    Microsoft Most Valuable Professional(.NET since 2003)
    MCT2004 - 2008
  •  10-25-2007, 7:49 AM 19387 in reply to 19377

    Re: [Lab] Building Forms in K2 Studio Designer

    I think Kerberos may me needed here since the AD credentials have to go from your machine to the K2 Server to the SharePoint server.  In these "double hop" scenarios Kerberos is usually the answer.

     


    The statements and opinions made in my postings are my own, and do not reflect the opinions of SourceCode Technology Holdings, Inc. or its subsidiaries. All information is provided as is with no warranties, express or implied, and grants no rights or licenses.
  •  10-25-2007, 9:24 AM 19394 in reply to 19387

    Re: [Lab] Building Forms in K2 Studio Designer

    I second Bob's answer.
  •  10-25-2007, 8:12 PM 19407 in reply to 19394

    Re: [Lab] Building Forms in K2 Studio Designer

    I checked K2 Server's event log, I was already using Kerberos to access to K2 Server from my Client machine.

     Update: check from the sharepoint server log, found out that the smartobject is trying to get data in SharePoint from K2, and the log showing that K2 is using Anonymous Logon to K2.


    Regards
    Ken Lin, Kam Hung
    Founder and VP of Hong Kong .NET User Group(http://HKNetUG.com)
    MCP, MCP+I, MCDST, MCSA, MCSE, MCITP
    MCSE+I, MCDBA, MCSD, MCAD
    Microsoft Community Star(Hong Kong & Taiwan)
    Microsoft Most Valuable Professional(.NET since 2003)
    MCT2004 - 2008
  •  10-25-2007, 9:43 PM 19408 in reply to 19407

    Re: [Lab] Building Forms in K2 Studio Designer

    Which confirms credentials aren't being passed. It sounds like you have Kerberos setup between your web app and K2, which is a good start, but Windows will prohibit those credentials to be passed on to the next hop to SharePoint unless you enabled Kerberos on SharePoint also.  Below is a link to a Microsoft KB article that describes how to enable it in SharePoint.

    http://support.microsoft.com/kb/832769


    The statements and opinions made in my postings are my own, and do not reflect the opinions of SourceCode Technology Holdings, Inc. or its subsidiaries. All information is provided as is with no warranties, express or implied, and grants no rights or licenses.
  •  10-25-2007, 10:28 PM 19409 in reply to 19408

    Re: [Lab] Building Forms in K2 Studio Designer

    Kerberos was already enabled to be using in the WSS. Any other chance? Do I need to do anything in K2 Server?
    Regards
    Ken Lin, Kam Hung
    Founder and VP of Hong Kong .NET User Group(http://HKNetUG.com)
    MCP, MCP+I, MCDST, MCSA, MCSE, MCITP
    MCSE+I, MCDBA, MCSD, MCAD
    Microsoft Community Star(Hong Kong & Taiwan)
    Microsoft Most Valuable Professional(.NET since 2003)
    MCT2004 - 2008
  •  05-06-2008, 7:57 PM 23648 in reply to 19351

    Re: [Lab] Building Forms in K2 Studio Designer

    Did you ever resolve this issue?

    I am having the same problem!

View as RSS news feed in XML