Skip to main content
How are we doing? Please help us improve Stack Overflow. Take our short survey
Filter by
Sorted by
Tagged with
2 votes
1 answer
92 views

I seem to be having trouble serializing a Nullable, ImmutableArray which I had thought would work out of the box. e.g., void Main() { var x = new Test() { Field = null }; var stream = new ...
mike's user avatar
  • 3,214
1 vote
1 answer
92 views

I'm upgrading from protobuf-net 2.2.1.0 to 3.2.26, and I've noticed that callback methods decorated with [ProtoBeforeSerialization] and [ProtoAfterDeserialization] are no longer invoked during ...
Sudheer Kumar's user avatar
1 vote
1 answer
80 views

I configured the .csproj file as follows: <Project Sdk="Microsoft.NET.Sdk"> <PropertyGroup> <OutputType>Exe</OutputType> <TargetFramework>...
  iluxa1810's user avatar
1 vote
1 answer
132 views

I have an ASP.NET Core 8 project and followed this article: https://learn.microsoft.com/en-us/aspnet/core/grpc/json-transcoding-binding?view=aspnetcore-8.0 import "google/api/annotations.proto&...
arch's user avatar
  • 49
0 votes
1 answer
47 views

I have some very specific requirements for a serialization C# library: I need it be able to handle circular references or multiple references to the same object, be capable of deserializing into an ...
Lahzey's user avatar
  • 413
1 vote
0 answers
85 views

I'm using Protobuf-net version 3.2.52 Classes B, C and D below contain a field of type Wplane, all of which have the same instance. In the WPlane class, I transform the Plane property (this type comes ...
Yannick's user avatar
  • 323
0 votes
0 answers
55 views

I'm using Protobuf-net version 3.2.52 During deserialization, a method call occurs unexpectedly. How can Protobuf call this method when it's only referenced 15 times in the entire solution and I've ...
Yannick's user avatar
  • 323
0 votes
1 answer
86 views

I'm using Protobuf-net version 3.2.52 While serializing, I get this exception: Possible recursion detected (offset: 3 level(s)): Loop_Protobuf.Core_E.Part I've read all the posts about this error on ...
Yannick's user avatar
  • 323
0 votes
1 answer
42 views

I have the following inheritance structure: [ProtoContract] public class User : UserCommon<User, Database.User> [ProtoContract] public abstract partial class UserCommon<T, T2> : ...
Tom Gullen's user avatar
  • 61.9k
0 votes
0 answers
37 views

I have a WPF library (myLibrary) that uses the protobuf-net libraries. The protobuf-net libraries are in a subfolder. I'm doing this because another nuget package references protobuf-net but with an ...
Yannick's user avatar
  • 323
0 votes
0 answers
38 views

I am trying to serialize the following class with the latest version of Protobuf.net: [ProtoContract(SkipConstructor = true)] public class ObservableList<T> : IEnumerable<T> { [...
Wolfgang's user avatar
  • 2,358
0 votes
0 answers
60 views

Maybe this is a nobrainer. I have a tabular data structure where each row is represented by an object[]. The data structure implements ITypedList so I can even tell the exact type of each object in ...
Wolfgang's user avatar
  • 2,358
0 votes
1 answer
71 views

I am using generic WebSocket client (System.Net.WebSockets) to connect to Azure Web PubSub service and communicate between two parties. I referred this official document. I was able to communicate ...
deathrace's user avatar
  • 1,135
1 vote
1 answer
77 views

I use Visual Studio 2022 and MS Test. To generate code from proto file I use Grpc.Tools (2.69.0) and Google.Protobuf (3.29.3) nugets. I don't know how DynamicData feature works under the hood, but it ...
theateist's user avatar
  • 14.5k
0 votes
0 answers
105 views

We have the FHIR JSON model which needs to be serialized using protobuf but we are not able to serialize it as the JSON is not getting parsed to the generated google fhir models. https://github.com/...
Varun's user avatar
  • 597
0 votes
0 answers
92 views

I'm using c#.net cote 8.0. I have a protobuf object syntax = "proto3"; option csharp_namespace = "Application.Messages"; message ApplicationConfig { string domain = 1; int32 ...
Amir M's user avatar
  • 560
1 vote
1 answer
94 views

I'm trying to take advantage of Protobuf-net's client factory method AddCodeFirstGrpcClient to create client in a testing context using WebApplicationFactory<TEntryPoint>. The issue is with the ...
Shimmy Weitzhandler's user avatar
1 vote
1 answer
207 views

I'm trying to establish interprocess communication between .net framework (4.8) and .net (8) with protobuf-net.grpc. The communication between client/server in .net 8 works according to the ...
Patrick's user avatar
  • 11
0 votes
0 answers
99 views

System.Collections.Immutable 7.0.0 is dependent on <dependency id="System.Runtime.CompilerServices.Unsafe" version="6.0.0" exclude="Build,Analyzers" /> and System....
soumya sambit Kunda's user avatar
0 votes
0 answers
55 views

Recently we changed our serializer and deserializer to Protobuff-net from BinaryFormatter. In this, I'm facing some problems, after deserializing some of the values are still getting as null. The Core....
Pradeep's user avatar
  • 40
1 vote
1 answer
132 views

I'm new to the this Protobuf.net, we have many classes and it is inherited with parent classes, some times it is multi-level inherited. we can't add [ProtoInclude()] everywhere. I don't know we really ...
Pradeep's user avatar
  • 40
1 vote
0 answers
214 views

I am trying to consume Kafka messages using C# but getting an error: Merge an unknown field of end-group tag, indicating that the corresponding start-group was missing. When I try to save these ...
user9377735's user avatar
-1 votes
1 answer
50 views

I have a DataGrid with auto-generated columns and data context bound to a protobuf class. The protobuf class is auto-generated and one of its properties is of type Timestamp. Others are just plain ...
Igor's user avatar
  • 316
0 votes
0 answers
89 views

In our .NET application, the classes are generated dynamically and it has multi-level inheritance. We are facing problems - after deserializing ProtoContract class some values are set to null (we are ...
Pradeep's user avatar
  • 40
1 vote
1 answer
312 views

I have a .proto file that I have traditionally been using with protogen.exe to generate a .cs file for the relevant class. The class generated implements Protobuf.IExtensible. However, I now need to ...
Philip Atz's user avatar
0 votes
0 answers
279 views

I have a Web API written with ASP.NET Core 8.0, and it's configured to work with Http1 and Http2: "Kestrel": { "EndpointDefaults": { "Protocols": "...
ExtremeSwat's user avatar
1 vote
1 answer
177 views

I have a C# GRPC library that I am converting, I have complex protobuf-net objects (defined in C#) using features like inheritance. How can I convert these objects to native .proto files? If possible, ...
0xSingularity's user avatar
0 votes
0 answers
68 views

We are using gRPC in our app and it works great, now suddenly we got the error below on iOS, the exact same code works great on Android and Windows. The error: TypeInitialization_Type, ...
Smith5727's user avatar
  • 835
0 votes
0 answers
56 views

I have an interface, and I can serialize a class that has that as a member. Ie, this works: static void testSerializeInterface() { var ai = new anImplemntation(); ai.aVal = 101;...
mcmillab's user avatar
  • 2,816
0 votes
1 answer
343 views

I'm building a microservice. I have some working REST endpoints securized by JWT generated by Microsoft Azure. Here is how the token is verified : builder.Services .AddAuthentication(...
M. Ozn's user avatar
  • 1,238
0 votes
1 answer
270 views

When I run: dotnet publish -c Release -o out I get: google/protobuf/Timestamp.proto : error : File not found. [/app/StorageService.GRPC.Server/StorageService.GRPC.Server.csproj] Protos/candidate....
akbar's user avatar
  • 793
0 votes
1 answer
95 views

I'm using protobuf-net to serial/deserialize the data to work with my Kafka cluster. Is there any way to generate the class-name.proto from the C# class with decorators like the one below? Thanks ...
John Dang's user avatar
0 votes
0 answers
90 views

I'm working on a .NET project where I need to use Protobuf and gRPC for serialization and communication. My classes use interfaces and the [DataContract] attribute. I'm having trouble getting ...
Justin CI's user avatar
  • 2,741
1 vote
2 answers
112 views

I am creating a protobuffer from a json and json strcture loooks like this: { "answerUpdateRequest": { "entity": { "type": "ORGANIZATION&...
Xi12's user avatar
  • 1,263
0 votes
1 answer
260 views

I am trying to write a custom protobuf-net serializer to put a property of type object to the wire. [ProtoContract(Serializer=typeof(ChangeRecordSerializer))] public class ChangeRecord { public ...
Wolfgang's user avatar
  • 2,358
1 vote
1 answer
239 views

I am in the middle of converting serialization in our huge project from BinarySerializers to ProtoBuf, using protobuf-net library. I have some classes where members have the type object, which needs ...
Wolfgang's user avatar
  • 2,358
0 votes
2 answers
203 views

I am trying to add my protos to an existing common library so my clients and servers can import it and stay in sync with any changes. I added Grpc.AspNetCore, Google.Protobuf, and Grpc.Tools to the ...
Scott Baker's user avatar
  • 10.5k
0 votes
0 answers
286 views

Until now, I was using protobuf-netGrpc to use gPRC to transmit data between service and client. It works, I can create an interface as contract between the service and the client and I can use ...
Álvaro García's user avatar
2 votes
1 answer
238 views

public struct Candle //88 bytes struct { [DataMember(Order = 1)] public long TimeStamp { get; } [DataMember(Order = 2)] public decimal Open { get; } [DataMember(Order = 3)] public ...
Men's user avatar
  • 101
0 votes
0 answers
61 views

I'm new to WCF and Protobuf. So recently I upgraded the version of protobuf library used in our WCF service to version 3.0.101. I've a WCF client which uses an older version of Protobuf library, 2.0.0....
Pooja's user avatar
  • 1
0 votes
0 answers
954 views

I am using gRPC protobuf-net to facilitate communication between a client application and a service. The client can send a command to retrieve an entity by its ID. On the server side, the service ...
Álvaro García's user avatar
1 vote
0 answers
122 views

Starting from https://johnkoerner.com/csharp/IPC-in-net-core-using-protobuf/, I am trying to establish a two-way communication. I have also seen this SO post on the subject, but still I cannot make it ...
Franco Tiveron's user avatar
1 vote
1 answer
49 views

It seems there is a hard runtime dependency on protobuf-net version 2.4.0.0 despite the Nuget package declaring the dependency as >= 2.4.0.0. I need version 3.2.30 in my app.
John Holliday's user avatar
0 votes
0 answers
264 views

google.protobuf.Type Type = 1; Using below code I am trying to assign the value which is system.type to WellKnownTypes.Type. scanParameter.Type = (Google.Protobuf.WellKnownTypes.Type)parameter....
user1855437's user avatar
0 votes
0 answers
384 views

Need a little help. I am using code first approach to gRPC. Here is my service definition: [ServiceContract] public interface IFileStorageService { [OperationContract] Task<...
Branislav B.'s user avatar
2 votes
0 answers
46 views

We recently made the decision to update the version of protobuf-net used in some projects. With the update we noticed that the Dynamic Type feature was discontinued. We would like to continue using ...
WARLEY ANDRADE's user avatar
0 votes
1 answer
90 views

We use the library protobuf-net in our project and based on a customer request we are trying to figure out If the library communicates over to Internet any time during the course of operations? It ...
Harshvir's user avatar
0 votes
1 answer
390 views

We are using protobuf to make several systems inter-communicate. Some of them use protobuf.net, some use other languages and libraries. Our application-level messages consist of a header and a body. ...
Nomada's user avatar
  • 373
1 vote
0 answers
39 views

I have some customs exceptions that I am using to use the same exceptions in all the layers of the application, so sometimes I need to pass an exception from the server to the client. For example, ...
Álvaro García's user avatar
-1 votes
1 answer
56 views

In my project I use protobuf c for the server and protobuf-net for the client. But protobuf c cannot decode classes where the client uses the "ProtoInclude" attribute. This is the client ...
YueYuHai's user avatar

1
2 3 4 5
37