protobuf-net version -3.0.73 ,SaveContractsToZipStream method is breaking with error: System.MissingMethodException

1
Method not found: 'System.String ProtoBuf.Meta.TypeModel.GetSchema(System.Type, ProtoBuf.Meta.ProtoSyntax)'.'
 Stack Trace:
System.MissingMethodException
  HResult=0x80131513
  Message=Method not found: 'System.String ProtoBuf.Meta.TypeModel.GetSchema(System.Type, ProtoBuf.Meta.ProtoSyntax)'.
  Source=Components.ProtoBuf.Generator
  StackTrace:
   at Components.ProtoBuf.Generator.ProtoDefinitionGenerator.GetProto3Definition(Type type, RuntimeTypeModel typeModel)
   at Components.ProtoBuf.Generator.ProtoDefinitionGenerator.CreateProtoDefinition(Type type, IReadOnlyCollection`1 dependencies, RuntimeTypeModel typeModel)
   at Components.ProtoBuf.Generator.SerializationUtility.<>c__DisplayClass5_0.<GenerateProtoDefinitionsOfUsedTypes>b__1(KeyValuePair`2 e)
   at System.Linq.Enumerable.ToDictionary[TSource,TKey,TElement](IEnumerable`1 source, Func`2 keySelector, Func`2 elementSelector, IEqualityComparer`1 comparer)
   at System.Linq.Enumerable.ToDictionary[TSource,TKey,TElement](IEnumerable`1 source, Func`2 keySelector, Func`2 elementSelector)
   at Components.ProtoBuf.Generator.SerializationUtility.GenerateProtoDefinitionsOfUsedTypes(IReadOnlyCollection`1 contractContainers, HashSet`1 excludedMethods, RuntimeTypeModel typeModel)
   at Components.ProtoBuf.Generator.SerializationUtility.SaveContractsToZipStream(RuntimeTypeModel typeModel, IReadOnlyCollection`1 contractContainers, HashSet`1 excludedMethods)
   at WebApi.Controllers.ContractsController.Get() in Controllers\ContractsController.cs:line 38
   at Microsoft.Extensions.Internal.ObjectMethodExecutor.Execute(Object target, Object[] parameters)
   at Microsoft.AspNetCore.Mvc.Infrastructure.ActionMethodExecutor.SyncActionResultExecutor.Execute(IActionResultTypeMapper mapper, ObjectMethodExecutor executor, Object controller, Object[] arguments)
   at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.InvokeActionMethodAsync()
   at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.Next(State& next, Scope& scope, Object& state, Boolean& isCompleted)
   at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.InvokeNextActionFilterAsync()
c#
serialization
protobuf-net
asked on Stack Overflow Jan 15, 2021 by Krystal • edited Jan 15, 2021 by dbc

0 Answers

Nobody has answered this question yet.


User contributions licensed under CC BY-SA 3.0