WebApiContrib / WebApiContrib.Formatting.ProtoBuf

Web API formatter based on ProtoBuf
http://nuget.org/packages/WebApiContrib.Formatting.ProtoBuf
MIT License
30 stars 19 forks source link

Experiencing type incompatible error when we add ProtoBufFormatter to HttpConfiguration Formatters #6

Open vdhubala opened 8 years ago

vdhubala commented 8 years ago

HttpConfiguration.Formatters.Insert(0, new ProtoBufFormatter()); (OR) HttpConfiguration.Formatters.Add(new ProtoBufFormatter());

Exception: Attempted to access an element as a type incompatible with the array. .NET Frame work: 4.5 WebApi Package: Microsoft.Owin - 3.0.1, System.Net.Http.Formatting- 5.2.3, Visual Studio - Ultimate 2013, Name of the Nuget package for Protobuf: WebApiContrib.Formatting.ProtoBuf

JayShahInd commented 7 years ago

hello, getting same error. Did anyone solve this ?