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

  • SEARCH
  • Home
  • 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 6137351
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T17:42:52+00:00 2026-05-23T17:42:52+00:00

I have a LINQ model containing an entity which is populated by a stored

  • 0

I have a LINQ model containing an entity which is populated by a stored procedure. A couple of the fields returned by the procedure are nullable bit fields, so I’ve created these as nullable booleans on the model. I’d expect this to work fine, but when I run my application I get the following exception from System.Runtime.Serialization…

The formatter threw an exception while trying to deserialize the
message: There was an error while trying to deserialize parameter
urn:Nbs.PrePaidCards.ChargebackService:GetUnlinkedChargebacksAndRepresentmentsResult.
The InnerException message was ‘ValueType ‘System.Boolean’ cannot be
null.’. Please see InnerException for more details.

Now I’d understand this if I was trying to populate a regular bool field with a null, but since the property is Nullable, this has me a bit stumped!

Had anyone else had this problem and know how to fix it?

Thanks

  • 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-23T17:42:53+00:00Added an answer on May 23, 2026 at 5:42 pm

    The problem was caused by an out of date service reference on my client, so whilst the service had a nullable bool field, the proxy on the client was still expecting a regular bool field, hence the serialization exception.

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

Sidebar

Related Questions

I have a Linq-to-SQL model that uses stored procs in some places to return
I have a working LINQ to SQL model. I want to be able to
What I have: LINQ to SQL auto generated class, which corresponds to the shape
I have two LINQ objects which have exactly the same columns and I would
I have a business model called Customer which has many required properties (via DataAnnotations)
I have a Linq to Sql Model generated by VS ORD, but I want
I have 4 tables: but when I create an entity framework model, why is
I am creating a linq-to-sql model with EF, and have a class that works
I have an object model and I'm looking to populate it with a linq
I have LINQ statement that looks like this: return ( from c in customers

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.