Skip to content

'YamlDotNet.RepresentationModel.YamlScalarNode.op_Implicit' not found. #4

@mhainfarecom

Description

@mhainfarecom

Hi

I'm trying to run very simple example of YamlDotNet.Dynamic which looks like this:

var nap = @"---
test: test1
esendpoint:
  protocol: https
  host: aa.bb.com
  port: one
  user: none
  passwd:dddfff
";
dynamic dy = new DynamicYaml(nap);
var mvi = (string)(dy.test);
Console.WriteLine(mvi);

Platform: mono 4.6.1
My nuget packages:
YamlDotNet 4.0.0
YamlDotNet.Dynamic 3.2.3
My references:
Microsoft.CSharp
System

but I'm getting following exception:

Unhandled Exception:
System.MissingMethodException: Method 'YamlDotNet.RepresentationModel.YamlScalarNode.op_Implicit' not found.
  at YamlDotNet.Dynamic.DynamicYaml.TryGetMember (System.Dynamic.GetMemberBinder binder, System.Object& result) [0x0000d] in <855090e7213d4a30bff1a2db806e39bb>:0 
  at (wrapper dynamic-method) System.Object:CallSite.Target (System.Runtime.CompilerServices.Closure,System.Runtime.CompilerServices.CallSite,object)
  at System.Dynamic.UpdateDelegates.UpdateAndExecute1[T0,TRet] (System.Runtime.CompilerServices.CallSite site, T0 arg0) [0x00127] in /private/tmp/source-mono-4.6.0/bockbuild-mono-4.6.0-branch/profiles/mono-mac-xamarin/build-root/mono-x86/mcs/class/dlr/Runtime/Microsoft.Scripting.Core/Actions/UpdateDelegates.Generated.cs:262 
  at YamlConfigExample.MainClass.Main (System.String[] args) [0x0000e] in /Users/mha/Documents/proj/devel/csharp/YamlConfigExample/YamlConfigExample/Program.cs:38 
[ERROR] FATAL UNHANDLED EXCEPTION: System.MissingMethodException: Method 'YamlDotNet.RepresentationModel.YamlScalarNode.op_Implicit' not found.
  at YamlDotNet.Dynamic.DynamicYaml.TryGetMember (System.Dynamic.GetMemberBinder binder, System.Object& result) [0x0000d] in <855090e7213d4a30bff1a2db806e39bb>:0 
  at (wrapper dynamic-method) System.Object:CallSite.Target (System.Runtime.CompilerServices.Closure,System.Runtime.CompilerServices.CallSite,object)
  at System.Dynamic.UpdateDelegates.UpdateAndExecute1[T0,TRet] (System.Runtime.CompilerServices.CallSite site, T0 arg0) [0x00127] in /private/tmp/source-mono-4.6.0/bockbuild-mono-4.6.0-branch/profiles/mono-mac-xamarin/build-root/mono-x86/mcs/class/dlr/Runtime/Microsoft.Scripting.Core/Actions/UpdateDelegates.Generated.cs:262 
  at YamlConfigExample.MainClass.Main (System.String[] args) [0x0000e] in /Users/mha/Documents/proj/devel/csharp/YamlConfigExample/YamlConfigExample/Program.cs:38

I'm able to navigate in watcher in dy structure:
image

Please, can you help me to make it work?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions