Setup program needs framework 4.0 - But it's already installed

纵然是瞬间 提交于 2019-12-20 02:09:23

问题


I created a service which I now want to install to test. When running the setup program it prompts me to download and install .net fw 4.0, but I already have it installed. I did try to just install the file that I get pointed to (4.0 cliet), but not only does it still not work, it causes vs2010 to throw an unknown error and can't open.

I've now uninstalled everything and started afresh with VS2010, framework 4.0 and win 7 but it still prompts me to install fw 4.0 when I try to run the setup. Can anyone please point me in the right direction?

Thanx in advance Willem


回答1:


Here are some ideas:

  1. I assume you have rebooted your machine; if not, do this and try again.
  2. See this page about verifying your .NET 4.0 installation.
  3. Using IE, go to http://whatsmyuseragent.com/ and ensure that .NET 4.0 is shown.
  4. In VS 2010, write a small console app that outputs Environment.Version.ToString(). This is the .NET CLR version. Run this app from outside VS 2010, and ensure it works as expected.
  5. At this point the problem is most likely with the installer used to create the service. Please add more information about it.


来源:https://stackoverflow.com/questions/2749757/setup-program-needs-framework-4-0-but-its-already-installed

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!