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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 16, 20262026-06-16T23:14:10+00:00 2026-06-16T23:14:10+00:00

After installing studio 2012, building an application that targets framework 4.0. I am getting

  • 0

After installing studio 2012, building an application that targets framework 4.0.
I am getting the error:

Type 'System.Threading.Tasks.Task' cannot be serialized. 
Consider marking it with the DataContractAttribute attribute, and marking all of its members you want serialized with ....

I have regenerated the service reference using svcutil.
Is there any way of specifying that all the asynchronous stuff is excluded from the reference?

?

  • 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-06-16T23:14:11+00:00Added an answer on June 16, 2026 at 11:14 pm

    As far as I know you can’t use WCF task based asynchronous pattern on .NET 4.0 (you could but you need to install the Async Targeting Pack for Visual Studio 2012), you need to upgrade to .NET 4.5 to get it working.

    I suspect that you were using some kind of extension (like the AsynCTP) on Visual Studo 2010.

    Here you can see which asynchronous patterns are supported on each framework version:

    • Synchronous and Asynchronous Operations .NET Framework 4

    • Synchronous and Asynchronous Operations .NET Framework 4.5

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

Sidebar

Related Questions

After installing Visual Studio 2012 and opening/upgrading a Visual Studio 2010 solution from Team
After installing Debugger Canvas and restarting Visual Studio, I get this error for each
After installing the F# September CTP (1.9.6.2), Visual Studio 2008 frequently gives an error
After installing Visual Studio 2012 and opening my solution I get a series of
After installing VS2012 and .NET 4.5 both Visual Studio 2010 and 2012 started hanging
After installing SP1 for Visual Studio 2008, various fields are frozen e.g. in Find
After installing Dreamweaver CS6, the syntax highlighting of razor in visual studio 2010 removed
Does installing the Windows SDK alter an existing installation of Visual Studio 2010? After
After installing and configuring cluetip, i realized that the urls you hover over to
After installing Monobjc and playing around with the Monobjc Application Project under C# in

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.