Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Loading…

Intermittent InvalidCastException from Identifier or Realm to String #109

Closed
AArnott opened this Issue · 1 comment

2 participants

@AArnott
Owner

See http://pastebin.com/KHuxmdma

I believe this is because the conversion may be registered in a static constructor that hasn't executed yet at the time of the failure.

@AArnott AArnott was assigned
@StuFraser

Found this bug on stackoverflow, just wanted to add also seeing this on 'openid.realm', as far as I can trace back its failing in Messaging\Reflection\MessagePart.cs when trying to do a Convert.

Im using ASP.Net (4) no MVC and its not intermittent.

Error while reading message 'DotNetOpenAuth.OpenId.Messages.CheckIdRequest' parameter 'openid.claimed_id' with value 'http://miicard-dev1.miicard.com:82/card/stuart'. Invalid cast from 'System.String' to 'DotNetOpenAuth.OpenId.Identifier'. (Contact: , Reference: )

thx

@AArnott AArnott closed this issue from a commit
@AArnott AArnott Fixes InvalidCastExceptions for Identifier and Realm conversions
that can result from receiving a message before the static constructors for those types have executed.

This corrects the regression introduced in v4.0.0.

Fixes #109
57a6ac0
@AArnott AArnott closed this in 57a6ac0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.