RuntimeBinderException while using Newtonsoft Json with dynamic after installing Reactive Extensions

前端 未结 2 1164
轮回少年
轮回少年 2021-01-21 01:33

I was using the following code:

public async Task LoginAsync(string username, string password)
{
    //removed irrelevant code from snippet

    va         


        
相关标签:
2条回答
  • 2021-01-21 01:56

    I hit this exact issue in VS 2015.

    The fix was to enable "Just My Code" in Tools > Options > Debugging > General.

    0 讨论(0)
  • 2021-01-21 02:07

    Since neither the Json.NET or Rx-Main packages have any mutual dependencies outside the BCL, it is hard to see the package installation as the source of problem. This is a red herring. To be absolutely sure, check there are no Rx dlls in bin output.

    Either your code, or something else has changed. Did you add/remove any using statements that could introduce issues with extension methods? Are you sure the code hasn't changed at all? Are you sure the service response is the same? Did the Json.NET package version get changed?

    My guess is that at some point your service stopped returning the success property, and coincidentally started returning it again when you changed the code.

    0 讨论(0)
提交回复
热议问题