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 5991611
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 22, 20262026-05-22T23:24:44+00:00 2026-05-22T23:24:44+00:00

I was just wondering, I tried giving a POCO Object to my WF4 workflow

  • 0

I was just wondering, I tried giving a POCO Object to my WF4 workflow from my MVC Application, which worked just fine until I tried persisting it. I was loading my Object in a Using and when I persisted the workflow, it told me that it can not be persisted because the context does not exist anymore. Can anyone tell me why it needs the Context to serialize an object?

Getting my object with includes like this:

public User GetUser(string userName)
    {
        return (from user in _entities.Users.Include("Values").Include("RoleRelations")
                where user.Name == userName
                select user).FirstOrDefault();
    }
  • 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-22T23:24:45+00:00Added an answer on May 22, 2026 at 11:24 pm

    Without the context if you’re not eager loading all relevant data for your includes when you try to serialize it will try to Lazy-load them from the context. If the context has already been destroyed the POCO object cannot be fully populated, and so cannot be cleanly serialized.

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

Sidebar

Related Questions

Just wondering: I'm trying to set up an adaptive image handler in Coldfusion8, which
Just wondering is it possible to build CLI app that can be run from
I tried to make a custom LinearLayout and Button styles. I'm just wondering where
Just wondering if there's a known way of getting a Mono System.Windows.Forms application to
I'm just wondering if the seekbar changed in Android 2.1 . I tried to
I was just wondering how to get the link of the webpage which was
Just wondering if anyone has ever tried to determine the actual size of a
Just wondering, has anyone tried to run OS X in a VM environment running
I'm just wondering if omitting an argument from sprintf is going to cause any
Just wondering how I would insert the date 01/01/4000BC into oracle Have tried the

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.