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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 14, 20262026-06-14T13:02:42+00:00 2026-06-14T13:02:42+00:00

We have a C# DLL (let’s call it myapp.exe ) built with .NET 2.0

  • 0

We have a C# DLL (let’s call it myapp.exe) built with .NET 2.0 Framework (VS2005) and we found out that our application won’t work on machines where only .NET 4.0 or above is installed. To let our application work on .NET 4.0, I added the following some lines to myapp.exe.config by following this article Installing .NET Framework V4.0 and Running .NET 2.0/3.0/3.5/3.5Sp1 Applications

<startup>
  <supportedRuntime version="v4.0.30319"/>    
</startup>

And it is working.

Then I saw that this article also mentioned the following (especially second paragraph):

Now, I knew that you can’t just take a 3.5 Service Pack 1 application
and run it
on the V4.0 CLR. It needs a V2.0 CLR or reconfiguring with a
tag in order to bend the application to run on the V4.0 CLR and that bending might
be something that you don’t want to do.

What I hadn’t realised though was that installing .NET 4.0 wouldn’t install the
bits that you need for a 2.0/3.0/3.5/3.5Sp1 application. It would only install
the V4.0 CLR and the V4.0 assemblies and not additionally install the equivalent
of .NET Framework V3.5 Sp1. So, you’d need to install (e.g.) .NET Framework V3.5 Sp1
yourself along with .NET 4.0

From my testing it would mean that I could run my 2.0 C# application on .NET 4.0 with .NET 4.0 framework (4.0 assembly/libraries) which is contradicting to what the articles said.

Or am I missing something here? It could be helpful if someone could clarify on this. Microsoft doesn’t really make this clear at all.

  • 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-14T13:02:43+00:00Added an answer on June 14, 2026 at 1:02 pm

    From my testing it would mean that I could run my 2.0 C# application on .NET 4.0 with .NET 4.0 framework (4.0 assembly/libraries) which is contradicting to what the articles said.

    You can run your application on .NET 4 using the .NET 4 assemblies. There is always the possibility that there may be a slight change in runtime behavior, however, as you won’t be using the same runtime and framework which you used for development. I suspect the article is trying to suggest that you won’t get the exact same behavior by just installing 4.0, though, as you’ve seen, it should work.

    Doing this is likely fine, though I would recommend doing thorough testing of your application if this is going to be a standard deployment option.

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

Sidebar

Related Questions

We have a COM component (let's call it MyLib) developed in VB.NET, for our
I have a C# project (let's call it Driver) that uses an unmanaged DLL
I have DLL and application that will call some function in this dll. For
I have a .NET v2.0 Dll that exposes a few classes to COM. The
First_Layer I have a win32 dll written in VC++6 service pack 6. Let's call
I have a class library project that i have made. Let's call it ClassA.
Let's say I have written a Class Library (dll) in .Net and now I
Let’s say that I have two C# applications - game.exe (XNA, needs to support
I have a binary (let's call it DllParent) that has a reference to another
I have a native C++ library (let's call it CoreLib.dll) and it exposes two

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.