问题描述
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,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()
解决方法
暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!
如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。
小编邮箱:dio#foxmail.com (将#修改为@)