Solved

Error in setup project.

Posted on 2012-04-12
5
316 Views
Last Modified: 2012-04-12
Hi,

I made a Setup project. And after building it I receive this error:

"The target version of the .NET Framework in the project does not match the .NET Framework launch condition version ' .NET Framework 4 client profile'. Update the version of the .NET Framework launch condition to match the target version of the .NET Framework in the Advanced compile options Dialog Box(vb) or the Application page(C#, F#)."

What can I do about this?

Peter
0
Comment
Question by:peterkiers
  • 2
  • 2
5 Comments
 
LVL 19

Expert Comment

by:Bardobrave
ID: 37838298
Have you tried to do what the message suggests?
0
 
LVL 1

Author Comment

by:peterkiers
ID: 37838375
I know it has to do something with the launching conditions!
And I know there is a Prerequisites button.

Peter
10-frame.gif
0
 
LVL 19

Expert Comment

by:Bardobrave
ID: 37838455
Check this and this

Maybe any of those links will help you to solve your problem.
0
 
LVL 40

Accepted Solution

by:
Jacques Bourgeois (James Burger) earned 500 total points
ID: 37838506
First of all, unless you have good reasons do to so, you should set the option to download the prerequisites from the vendor's web site. The user won't see nothing, but the framework will be installed from the Microsoft web site if it is not already present on the user's computer. This makes sure that nothing will be missing and that you will get the latest version with all the patches.. Otherwise, you have to distribute the framework with your application. This takes up space in the installation package.

Then, there has been a mixup somewhere.

The error message points to framework 4.0, which means that part of your application uses some code written in Visual Studio 2010.

But the screenshot you show us seems to come from Visual Studio 2005. Is that the one you use.

If so, your project possibly uses a dll that requires framework 4.0. This did not exist in 2005 and is thus not available as an option for ClickOnce deployment.

The best solution would be to move to Visual Studio 2010, where you will have the framework 4 as an option.

If you are stuck with Visual Studio 2005, then simply uncheck the framework as a prerequisite.

The love of my life does not do much on her computer, I never installed any of my applications on it, and she has framework 4. It simply slipped through a Windows Update. Unless your users live in a limbo, they might well already have framework 4 installed on their station, so the dll that need it will work. And unless you did very special things in your programming, Visual Studio 2005 application also work well with that version of the framework.

If, for some reason the framework 4 is not installed, they will receive an error message at some point. They can easily install the thing manually from Microsoft web site: http://www.microsoft.com/download/en/details.aspx?id=17851
0
 
LVL 1

Author Comment

by:peterkiers
ID: 37838550
Thanks JamesBurger for the info.

Peter
0

Featured Post

Better Security Awareness With Threat Intelligence

See how one of the leading financial services organizations uses Recorded Future as part of a holistic threat intelligence program to promote security awareness and proactively and efficiently identify threats.

Join & Write a Comment

IP addresses can be stored in a database in any of several ways.  These ways may vary based on the volume of the data.  I was dealing with quite a large amount of data for user authentication purpose, and needed a way to minimize the storage.   …
A basic question.. “What is the Garbage Collector?” The usual answer given back: “Garbage collector is a background thread run by the CLR for freeing up the memory space used by the objects which are no longer used by the program.” I wondered …
Excel styles will make formatting consistent and let you apply and change formatting faster. In this tutorial, you'll learn how to use Excel's built-in styles, how to modify styles, and how to create your own. You'll also learn how to use your custo…
This tutorial demonstrates a quick way of adding group price to multiple Magento products.

760 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

22 Experts available now in Live!

Get 1:1 Help Now