WIF Error: ID4254



ID4254: The AttributeValueXsiType of a SAML Attribute must be a string of the form
‘prefix#suffix’, where prefix and suffix are non-empty strings. Parameter name: value

Remove the Issued by claim, resolved the problem.

new Claim("//blah/UserID#",//here the '#' is o.k.
 "1"//, ConfigurationManager.AppSettings["LocalURLofThisService"]
     );
Advertisements

About Larry Louisiana

I'm a Microsoft Partner Consultant.
This entry was posted in Programming and tagged , , , . Bookmark the permalink.

4 Responses to WIF Error: ID4254

  1. Pingback: WIF Errors & Fixes Index | Ely Bob's space

  2. Pingback: WIF Error: ID4213 | Ely Bob's space

  3. david m. chinn says:

    I had the same error. I compared the code I used to construct Claim with that which was in the example “Ex1-ClaimEnableASPNET” in the IdentityTrainingKitVS2010. I noticed then that there was an overload to the constructor that seemed pertinent, given the error message wording which included ‘AttributeValueXsiType’

    where I was using: new Claim (string claimType, string value, string issuer)

    the example was using: new Claim (string claimType, string value, string valueType, string issuer).

    When I included the valueType argument to the constructor, the error was resolved.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s