Solved

Error in setup project.

Posted on 2012-04-12
5
321 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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

PeopleSoft Has Never Been Easier

PeopleSoft Adoption Made Smooth & Simple!

On-The-Job Training Is made Intuitive & Easy With WalkMe's On-Screen Guidance Tool.  Claim Your Free WalkMe Account Now

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

In my previous two articles we discussed Binary Serialization (http://www.experts-exchange.com/A_4362.html) and XML Serialization (http://www.experts-exchange.com/A_4425.html). In this article we will try to know more about SOAP (Simple Object Acces…
For those of you who don't follow the news, or just happen to live under rocks, Microsoft Research released a beta SDK (http://www.microsoft.com/en-us/download/details.aspx?id=27876) for the Xbox 360 Kinect. If you don't know what a Kinect is (http:…
In this video, viewers are given an introduction to using the Windows 10 Snipping Tool, how to quickly locate it when it's needed and also how make it always available with a single click of a mouse button, by pinning it to the Desktop Task Bar. Int…
Add bar graphs to Access queries using Unicode block characters. Graphs appear on every record in the color you want. Give life to numbers. Hopes this gives you ideas on visualizing your data in new ways ~ Create a calculated field in a query: …

707 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