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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 16, 20262026-05-16T21:46:32+00:00 2026-05-16T21:46:32+00:00

We have a ASP.Net web application running in Visual Studio 2010 that is targeting

  • 0

We have a ASP.Net web application running in Visual Studio 2010 that is targeting .Net 3.5. It’s being built by TFS 2010. This web application has a couple web references, so the build creates a related XmlSerializers DLL. This DLL, however, is a .Net 4.0 assembly.

When I run this web application from the build, I get the error:

Could not load file or assembly
‘BLAH_BLAH_WEB_APPLICATION_NAME.XmlSerializers’
or one of its dependencies. This
assembly is built by a runtime newer
than the currently loaded runtime and
cannot be loaded.

We are using a msbuild .proj file that was working under TFS 2008 (using the “Upgrade Template” in the Build Definition). I saw this question and this one, but those mention using a specific SGen build step. We are not. Additionally, the proposed solution involve hard-coding the path to the 7.0A SGen, which is just…ugly.

Is there a way to force the TFS 2010 build to compile this XmlSerializers DLL as a .Net 3.5 Assembly?

  • 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-16T21:46:33+00:00Added an answer on May 16, 2026 at 9:46 pm

    The root problem was an invalid value in the registry. The SDK35ToolsPath value under HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\MSBuild\ToolsVersions\4.0 was:

    $(Registry:HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Microsoft
    SDKs\Windows\v7.0A\WinSDK-NetFx35Tools-x86@InstallationFolder)

    However, the build server had Windows SDK version 7.1. So, I corrected the value to be:

    $(Registry:HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Microsoft
    SDKs\Windows\v7.1\WinSDKNetFx35Tools@InstallationFolder)

    Then XmlSerializers DLL was now using .Net 2.0.

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

Sidebar

Related Questions

We have a asp.net 2.0 web application that is running on IIS7. It is
I am having an asp.net 2.0 web application running from Visual studio 2005. The
Possible Duplicate: Use Visual Studio web.config transform for debugging I have an asp.net application
I have built my new website in Visual Studio 2010 (C# - ASP.NET 4).
I have built an ASP.NET MVC 3 web application (with exlusively Razor/cshtml pages) that
I have built a small web application in asp.net c# in VS 2010 using
I am running Visual Studio 2010, using an ASP.Net forms application.I am trying to
I have a visual studio solution with an ASP.NET 3.5 web application (WCF host)
I have an ASP.NET 2.0 web application running on a shared server of a
I have an ASP.NET application running on multiple IIS6 web servers, with a SQL

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.