Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Exception thrown: 'Microsoft.CSharp.RuntimeBinder.RuntimeBinderException' in Microsoft.CSharp.dll #1

Closed
polarstern opened this issue Feb 19, 2018 · 2 comments

Comments

@polarstern
Copy link

polarstern commented Feb 19, 2018

Hi,
I use the following example from API Docs (Get Inputs Status):

public class MyClass
{   
    public static async Task Main()
    {
        var client = new ClarifaiClient("YOUR_API_KEY");
        
        await client.GetInputsStatus()
            .ExecuteAsync();
    }
}

running with Microsoft Visual Studio Community, version 15.5.27130.2027 (latest).

When I run MyClass.Main() for the first time, I get the following:

Exception thrown: 'Microsoft.CSharp.RuntimeBinder.RuntimeBinderException' in Microsoft.CSharp.dll
Exception thrown: 'Microsoft.CSharp.RuntimeBinder.RuntimeBinderException' in Microsoft.CSharp.dll
Exception thrown: 'Microsoft.CSharp.RuntimeBinder.RuntimeBinderException' in Microsoft.CSharp.dll
Exception thrown: 'Microsoft.CSharp.RuntimeBinder.RuntimeBinderException' in Microsoft.CSharp.dll
Exception thrown: 'Microsoft.CSharp.RuntimeBinder.RuntimeBinderException' in Microsoft.CSharp.dll
Exception thrown: 'Microsoft.CSharp.RuntimeBinder.RuntimeBinderException' in Microsoft.CSharp.dll
Exception thrown: 'Microsoft.CSharp.RuntimeBinder.RuntimeBinderException' in Microsoft.CSharp.dll
Exception thrown: 'Microsoft.CSharp.RuntimeBinder.RuntimeBinderException' in Microsoft.CSharp.dll

However, when I run MyClass.Main() again (second time etc.), this exception disappears. The same exception appears when using other methods, e.g. image prediction.

Does this exception appear directly in Clarifai API C# Client? If yes, what does it actually mean and how serious is it?

@rok-povsic
Copy link
Contributor

rok-povsic commented Feb 19, 2018

Hi @polarstern ,

From what I can tell, these messages appear because of some internal exceptions that happen and are handled in the JSON library we use, outside of our code. The author of the JSON library commented about it here - apparently nothing can be done about them.

Note that this only appears when you have Just My Code disabled in the Debug settings. You might want to enable it.

image

In any case, these messages should have no impact on the Clarifai C# library.

@polarstern
Copy link
Author

Thank you very much!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

2 participants