473,387 Members | 1,485 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

How to run an application built for .net v2 on .net v4 client profile

I have created a simple 'hello world' windows form in VB.net using visual studio 10. In the compile tab of the project I have targeted .net framework V2.0. The application runs on my development machine which has all versions of the framework installed. If I copy it to an XP machine with ONLY .net v4.0 client profile installed it will not run but errors immediately with a msgbox "To run this application You must first install one of the following versions of the .net framework: v2.0.50727"

My understanding is that later versions are backward compatible with earlier versions of .net so it should run without needing any config files mentioned below

http://msdn.microsoft.com/en-us/library/9w519wzk
says
"The version of the .NET Framework that an application runs on is determined as follows:

If the version of the .NET Framework that the application was built against is present on the computer, the application runs on that version.

If the version of the .NET Framework that the application was built against is not present and a configuration file does not specify a version in a <supportedRuntime> Element, the application runs on the latest version of the .NET Framework that is present on the computer.

If the version of the .NET Framework that the application was built against is not present and the configuration file specifies a version in a <supportedRuntime> Element, the application runs on the latest version that is specified in the application configuration file and is present on the computer."
Can anyone tell me how to make it run without having to build explicitly for .net v4 please ?
May 16 '12 #1
1 3244
May have come across the answer myself - this chap has an answer

http://blogs.msdn.com/b/astebner/arc...0/9557946.aspx
Aaron Stebner
25 Sep 2011 10:06 PM

Hi Leo - By default, the .NET Framework 4 does not allow all applications built for earlier verisons of the .NET Framework to migrate forward and run on it if the earlier versions are not installed. If you are using any applications that were built with any version of the .NET Framework before version 4, then I would recommend leaving both the .NET Framework 3.5 SP1 and 4 installed.
Anyone confirm this ? can this default be turned off?
May 16 '12 #2

Sign in to post your reply or Sign up for a free account.

Similar topics

0
by: Rudy | last post by:
Hello All, I'm hoping someone can point me in the right direction. I want to have a client application, and a server application to be able to control certain function of the client...
0
by: Chad A. Beckner | last post by:
Hi everyone, I have a common class library (call it common_library) that I include/reference in my projects. In this class library, I would like to have it save certain settings to the...
2
by: Suresh | last post by:
Hi All I have DB2 UDB 8.1 Enterprise Server Installed on Linux machine. I am connecting to that from Windows2000 Machine by using Windows client for DB2 UDB. Now I want to install DB2...
0
by: Anonieko | last post by:
A lot of times, web hostings for ASPNET 2.0 will offer only MS Access DB for database for basic plan, a question often asked is how can I use the membership services, role, web parts services, etc ...
0
by: Shibu Raj | last post by:
Hi, I installed the application dev client fix pack 10 and the installation went fine. But when I tried to create a project, it asks for the location and then hangs. Its is not doing any thing....
1
by: janman | last post by:
I am trying to create stored procedures but I get an error SQL10013N The specified library "db2udp" could not be loaded. SQLSTATE=42724 1. How would I find out the type of the client...
4
by: snare88 | last post by:
I have a question regarding a VB.NET 2003 application which was built on a Windows XP machine with Office 2002 installed. The software does some interfacing with Microsoft Excel. I now want to...
0
by: Amit | last post by:
Hi,I am new to .net 2.0 and have just built one web application and deployed the application on web server. The problem which i am facing is that if i make any changes in the .cs files or aspx...
1
by: nelsonbrodyk | last post by:
Hey All, I am trying to create a new installer that only depends on the .NET Client Profile. This is a new feature to VS 2008 Service Pack 1. I have seen articles where it says you can customize the...
2
by: Sendil kumar | last post by:
Hi All, I'm working for a software company which primarily deals with the semiconductor manufacturing. Earlier we have our server applications built using VS2005 compiler. Now started to migrate...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.