Solved

Error in setup project.

Posted on 2012-04-12
5
320 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

How our DevOps Teams Maximize Uptime

Our Dev teams are like yours. They’re continually cranking out code for new features/bugs fixes, testing, deploying, responding to production monitoring events and more. It’s complex. So, we thought you’d like to see what’s working for us. Read the use case whitepaper.

Question has a verified solution.

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

Suggested Solutions

Flash (http://en.wikipedia.org/wiki/Adobe_Flash) has evolved over the years to where it has become a masterful tool for displaying content screen.  It has excellent layout placement, UI precision as well as rendering capabilities. This, along with t…
Real-time is more about the business, not the technology. In day-to-day life, to make real-time decisions like buying or investing, business needs the latest information(e.g. Gold Rate/Stock Rate). Unlike traditional days, you need not wait for a fe…
With Secure Portal Encryption, the recipient is sent a link to their email address directing them to the email laundry delivery page. From there, the recipient will be required to enter a user name and password to enter the page. Once the recipient …
Are you ready to implement Active Directory best practices without reading 300+ pages? You're in luck. In this webinar hosted by Skyport Systems, you gain insight into Microsoft's latest comprehensive guide, with tips on the best and easiest way…

730 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