Skip to main content

Hi,


    In one project in my company, we created role provider for Oracle. In once case I have created a role in K2 and assigned users from a smart object. This smart object is engineered to bring the user details from a view in the oracle database.


Our custom oracle provider is be using "TPOTSEC" as "security label". I created a role in K2 with the name "NCRApprovers" and my smart object as "ApproversSmartObject". So NCRApprovers internally used ApproversSmartObject to get the users.


I executed the smart object under Smart Object Tester and it it resulting the details. The user name that i am using is "TPOTSEC:pradeepy". Here TPOTSEC is my security label and pradeepy is the login name in my database.


I consumed the role in one workflow and this is throwing an exception which is as follows;


"Message: Exception has been thrown by the target of an invocation. An unexpected
error has occured while trying to resolve a value for Resolver ID
D84B95DF-0BAE-412d-A7F1-27286E47108A. An unexpected error has occured while
trying to resolve a value for Resolver ID 66F48A37-7CC5-49ca-985E-E9B58E0C9C86.
Exception of type 'SourceCode.SmartObjects.Client.SmartObjectException' was
thrown.; ServiceName: URMService; ServiceGuid:
4c2f62ea-be8d-4600-a2b5-185902bdd20a; InnerExceptionMessage: ;"


What i am feeling is K2 is unable to retrieve the data from my role provider. Please help me to resolve this issue.

The only help i can provide is the following


1. Read carefully Chapter 17 of the "Professional K2 BlackPearl". here is a link to chapter 17


http://books.google.com/books?id=kSSQSJZU-oIC&pg=SA16-PA25&lpg=SA16-PA25&dq=roleprovider+k2&source=bl&ots=wW6_gk6Oyl&sig=1IWqwzNQDLqardjR_CTSXtnpNgA&hl=en&ei=cL_IToKSIYOHhQfWvuzcDw&sa=X&oi=book_result&ct=result&resnum=1&ved=0CB4Q6AEwAA#v=onepage&q=roleprovider%20k2&f=false 


2. download Chapter 17 code and example and Try to implement the Examle on your k2 server


http://www.wrox.com/WileyCDA/WroxTitle/Professional-K2-blackpearl.productCd-0470293055,descCd-DOWNLOAD.html 


 


3. Compare between the steps you did on oracle and the steps you did on the ADAM


4. Here are some links that i gathered while searching on applying a  Custom security provider for K2


http://www.k2underground.com/cfs-file.ashx/__key/CommunityServer.Components.PostAttachments/00.00.03.15.87/SQLSecManager.rar


http://www.k2underground.com/blogs/pitchblack/archive/2008/05/01/how-to-implement-a-custom-security-provider-example-for-k2-blackpearl.aspx


http://p2p.wrox.com/asp-net-2-0-professional/56745-problem-custom-membership-provider.html


http://wiki.service-now.com/index.php?title=Active_Directory_Application_Mode_(ADAM)


 



http://help.k2.com/en/KB000186.aspx


http://help.k2.com/helppages/k2blackpearl1370/webframe.html?page=Steps_to_configure_a_Custom_User_Manager.html


http://help.k2.com/helppages/k2blackpearl1370/webframe.html?page=Step_1__Security_Labels.html


http://help.k2.com/helppages/k2blackpearl1370/webframe.html?page=Step_2__Change_the_Connection_String.html


http://help.k2.com/helppages/k2blackpearl1370/webframe.html?page=Configure_Custom_UM_and_K2_Workspace.html


http://help.k2.com/helppages/k2blackpearl1370/webframe.html?page=User_Manager__Environment_Library.html


http://help.k2.com/helppages/k2blackpearl1370/webframe.html?page=User_Manager__Workflow_Server.html


http://help.k2.com/helppages/k2blackpearl1370/webframe.html?page=User_Manager__SmartObject_Service_Instance.html


 


http://help.k2.com/helppages/k2blackpearl1370/webframe.html?page=Set_Custom_User_Manger_as_default_User_Manager.html


 


 


http://msdn.microsoft.com/en-us/library/879kf95c.aspx


http://www.laschinger.net/?p=192


 


 


http://help.k2.com/en/kb000331.aspx


http://help.k2.com/en/kb000186.aspx


 


Thanks Bashar A,


              We already solved the problem, and yes the problem existis in the role provider record in K2 Database. We missed to enter the xml data for AuthInit and RoleInit. Once we entered those details, we are on.


Thanks for your help.


Best Regards,


You are most welcomed ...man


Reply