You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Test failures do not occur on all machines. But, they happen consistently on machines with .NET 4.7 installed. All failures involve unexpected RuntimeBinderExceptions. And, those Exceptions are thrown in consistent locations:
Microsoft.CSharp.RuntimeBinder.RuntimeBinderException : 'Newtonsoft.Json.Linq.JObject' does not contain a definition for 'oauth_token'
at CallSite.Target(Closure , CallSite , Object )
...
The error messages mention oauth_token in two cases (in Microsoft.AspNet.Facebook.Test.FacebookContextModelBinderTest) and ExceptionType in the remaining 14 failures (2 in System.Web.Http.ExceptionHandlingTest and 12 in System.Web.Http.IncludeErrorDetailTest).
Could workaround the ExceptionType failures, using something other than dynamic in the test code. However the FacebookClient's ParseSignedRequest(...) method internally casts a JObject instance to dynamic. (Unclear why e.g. FacebookAuthorizeFilterHookTest tests succeed while FacebookContextModelBinderTest tests fail.)
The text was updated successfully, but these errors were encountered:
- #72 and also related to #65
- v7.0.1 is the next major version after what the product code is built against (v6.0.4)
- this version corrects test failures I saw on a machine with .NET 4.7 (#72)
- add binding redirects and include the app.config files in test projects
- avoid new `TypeLoadException`s for Newtonsoft.Json that break numerous tests
- consistently disable Copy Local (aka `%(Private)` metadata) in `src` projects
- add Newtonsoft.Json references in test projects that bring it in transitively
- otherwise, product code is last to mention Newtonsoft.Json assembly
- #72 and also related to #65
- v7.0.1 is the next major version after what the product code is built against (v6.0.4)
- this version corrects test failures I saw on a machine with .NET 4.7 (#72)
- add binding redirects and include the app.config files in test projects
- avoid new `TypeLoadException`s for Newtonsoft.Json that break numerous tests
- consistently disable Copy Local (aka `%(Private)` metadata) in `src` projects
- add Newtonsoft.Json references in test projects that bring it in transitively
- otherwise, product code is last to mention Newtonsoft.Json assembly
Test failures do not occur on all machines. But, they happen consistently on machines with .NET 4.7 installed. All failures involve unexpected
RuntimeBinderException
s. And, thoseException
s are thrown in consistent locations:The error messages mention
oauth_token
in two cases (inMicrosoft.AspNet.Facebook.Test.FacebookContextModelBinderTest
) andExceptionType
in the remaining 14 failures (2 inSystem.Web.Http.ExceptionHandlingTest
and 12 inSystem.Web.Http.IncludeErrorDetailTest
).Could workaround the
ExceptionType
failures, using something other thandynamic
in the test code. However theFacebookClient
'sParseSignedRequest(...)
method internally casts aJObject
instance todynamic
. (Unclear why e.g.FacebookAuthorizeFilterHookTest
tests succeed whileFacebookContextModelBinderTest
tests fail.)The text was updated successfully, but these errors were encountered: