[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 324
  • Last Modified:

Error in setup project.

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
peterkiers
Asked:
peterkiers
  • 2
  • 2
1 Solution
 
BardobraveCommented:
Have you tried to do what the message suggests?
0
 
peterkiersAuthor Commented:
I know it has to do something with the launching conditions!
And I know there is a Prerequisites button.

Peter
10-frame.gif
0
 
BardobraveCommented:
Check this and this

Maybe any of those links will help you to solve your problem.
0
 
Jacques Bourgeois (James Burger)Commented:
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
 
peterkiersAuthor Commented:
Thanks JamesBurger for the info.

Peter
0

Featured Post

Hire Technology Freelancers with Gigs

Work with freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely, and get projects done right.

  • 2
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now