Ask a questionAsk a question
 

Answererror when i edit claim rule

  • Thursday, October 29, 2009 11:36 AMMelcocha Users MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     

    Hi, I configure and add a custom Attribute Store with MySQL but when i edit claim rule with:
    => issue(store = "MySql", types = ("http://schemas.xmlsoap.org/ws/2005/05/identity/claims/estado"), query = "name={0};estado", param = "Idoya");
    I have a error:

    "The Federation Service encountered a serious error while processing the WS-Trust request.
    Request type: http://schemas.xmlsoap.org/ws/2005/02/trust/RST/Issue
    Additional Data
    Exception details:
    System.NullReferenceException: Object reference not set to an instance of an object.
    at Microsoft.IdentityModel.Threading.AsyncResult.End(IAsyncResult result)
    at Microsoft.IdentityModel.Threading.TypedAsyncResult`1.End(IAsyncResult result)
    at Microsoft.IdentityModel.Protocols.WSTrust.WSTrustServiceContract.WSTrustServiceContractAsyncResult.EndRST(WSTrustServiceContractAsyncResult result)
    at Microsoft.IdentityModel.Protocols.WSTrust.WSTrustServiceContract.WSTrustServiceContractAsyncResult.End(IAsyncResult ar)
    at Microsoft.IdentityModel.Protocols.WSTrust.WSTrustServiceContract.EndCore(IAsyncResult ar, String requestAction, String responseAction, String trustNamespace)"

    Please help me!
    Thanks

Answers

  • Thursday, October 29, 2009 6:25 PMBalaji _Microsoft_MSFTUsers MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     Answer
    Hi
      From your post, I understand that you have implemented a custom attribute store? In that case, you may want to begin by debugging your custom attribute store code as most likely the error is thrown from there.

    More information on implementing custom attribute store can be found at

    https://connect.microsoft.com/Downloads/DownloadDetails.aspx?SiteID=642&DownloadID=18933

    You can also look at the event log and see if any other error is logged + turn on tracing (by turning on the trace settings in Microsoft.Identityserver.servicehost.exe.config file and see where the exact failure occurs). Tracing will not show errors in your attribute store implementation but might point to any problems when the issuance pipeline tries to process the query using your attribute store..

    Also, please note that there is a built-in SQL attribute store that you can use to talk to any SQL Database store if all you want to do is pass in a SQL query to issue claims. If it does not satisfy your requirements, you may choose to implement your own attribute store.

    Also, you may want to take a look at for claims rule language specifics including samples..  http://technet.microsoft.com/en-us/library/dd807118(WS.10).aspx

    Hope this helps.

    Thanks
    -Balaji

    • Marked As Answer byMelcocha Wednesday, November 04, 2009 11:07 AM
    •  
  • Monday, November 02, 2009 11:40 AMMelcocha Users MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     Answer

    Thank you. I found the problem in the program code.

    Regards,

    Melcocha

    • Marked As Answer byMelcocha Wednesday, November 04, 2009 11:08 AM
    •  

All Replies

  • Thursday, October 29, 2009 6:25 PMBalaji _Microsoft_MSFTUsers MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     Answer
    Hi
      From your post, I understand that you have implemented a custom attribute store? In that case, you may want to begin by debugging your custom attribute store code as most likely the error is thrown from there.

    More information on implementing custom attribute store can be found at

    https://connect.microsoft.com/Downloads/DownloadDetails.aspx?SiteID=642&DownloadID=18933

    You can also look at the event log and see if any other error is logged + turn on tracing (by turning on the trace settings in Microsoft.Identityserver.servicehost.exe.config file and see where the exact failure occurs). Tracing will not show errors in your attribute store implementation but might point to any problems when the issuance pipeline tries to process the query using your attribute store..

    Also, please note that there is a built-in SQL attribute store that you can use to talk to any SQL Database store if all you want to do is pass in a SQL query to issue claims. If it does not satisfy your requirements, you may choose to implement your own attribute store.

    Also, you may want to take a look at for claims rule language specifics including samples..  http://technet.microsoft.com/en-us/library/dd807118(WS.10).aspx

    Hope this helps.

    Thanks
    -Balaji

    • Marked As Answer byMelcocha Wednesday, November 04, 2009 11:07 AM
    •  
  • Monday, November 02, 2009 11:40 AMMelcocha Users MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     Answer

    Thank you. I found the problem in the program code.

    Regards,

    Melcocha

    • Marked As Answer byMelcocha Wednesday, November 04, 2009 11:08 AM
    •