Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 3783486
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 19, 20262026-05-19T11:13:55+00:00 2026-05-19T11:13:55+00:00

I am trying to use protobuf-net to serialize a dataset but getting the below

  • 0

I am trying to use protobuf-net to serialize a dataset but getting the below error:

Unhandled Exception:
System.InvalidOperationException: No
suitable Default DataSet encoding
found. at
ProtoBuf.Serializer.ThrowNoEncoder(DataFormat
format, Type valueType) at
ProtoBuf.Property.PropertyFactory.CreateProperty[T](Type
type, DataFormat& format,
MemberSerializationOptions options)
at
ProtoBuf.Property.PropertyFactory.Create[T](MemberInfo
member) at
ProtoBuf.Serializer`1.Build()

Below is the code being used

    [ProtoContract]
    public class Packet
    {
        [ProtoMember(1)]
        public DataSet Data { get; set; }

        [ProtoMember(2)]
        public string Name { get; set; }

        [ProtoMember(3)]
        public string Description { get; set; }
    }


    using (var fs = new FileStream("test0.txt", FileMode.Create))
    {
       Serializer.Serialize(fs, packet);
       Console.WriteLine("Total bytes with protobuf-net = " + fs.Length);
    }
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-19T11:13:55+00:00Added an answer on May 19, 2026 at 11:13 am

    DataSet is not really a data-contract, and there is no supported implementation in “v1” (the code available as pre-built dll). I have, however, done some playing in “v2” here that may be of interest, including a range of metrics for comparison / decision-making.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm trying to serialize a model using the great Protobuf-NET. I cannot use the
I'm trying to serialize some objects with protobuf-net , but unfortunately they make liberal
I have been trying to use protobuf-net with MonoTouch but I have no idea
I'm trying to use protobuf in a C# project, using protobuf-net, and am wondering
I'm trying to use ProtoBuf-NET in my project (it's mostly Silverlight 4 project). I'm
Trying to use a guid as a resource id in a rest url but
I am trying to migrate existing code that uses XmlSerializer to protobuf-net due to
I'm trying use Lift and CalendarMonthView widget to build a appointment system. CalendarMonthView works
I'm trying to consume a WCF webservice using the RPC capabilities of the Protobuf-net.
I am trying use filehelpers class builder but I am kinda confused on what

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.