A task failure occurs because lc.exe is not found or the correct Microsoft Windows SDK is not installed.

Source: Internet
Author: User

An error occurred while installing. Net framwork 3.5 for vs2008.net.

Open the previousProgram, Build failed.

Some solutions have been found on the Internet, most of which are to reinstall vs2008, as shown below:

Error 1
A task failure occurs because lc.exe is not found or the correct Microsoft Windows SDK is not installed.
The task is checking for lclc.exe in the corresponding binning folder in the installationfolder value of the registry item HKEY_LOCAL_MACHINE \ SOFTWARE \ Microsoft \ microsoft sdks \ windows \ v6.0a ".
You can solve this problem by performing one of the following operations:
1) install Microsoft Windows SDK for Windows Server 2008 and. NET Framework 3.5.
2) install Visual Studio 2008.
3) manually set the above registry key to the correct position.
4) Pass in the correct position to the "toolpath" parameter of the task.
Ttgo. Asians. Website
========================================================== ==================================
In the prompt, we can see that a value in the Registry points to the C: \ Program Files \ microsoft sdks \ windows \ v6.0aexample, and lc.exe should also be in the bin directory of this path, but find this path for development, the bin directory is empty!
Let's take a look at the Registry. As of HKEY_LOCAL_MACHINE \ SOFTWARE \ Microsoft \ microsoft sdks \ windows, there is no more here. It turns out that there was a problem during vs2008 installation, so the installation was not completed, in this case, after reinstalling, OK!

 

You have found another solution to install. net framwork fails. Generally, in c: \ Program Files \ microsoft sdks \ windows \ v6.0a, the bin directory is empty and three directories, fxcop, include, and Lib, are missing. The solution is as follows:

Find another machine that has been successfully installed and copy the files and directories in the c: \ Program Files \ microsoft sdks \ windows \ v6.0a directory to overwrite your local v6.0a, then, in start-> Run, enter regedit, find HKEY_LOCAL_MACHINE \ SOFTWARE \ Microsoft \ microsoft sdks \ windows \ v6.0a in the registry, right-click to export, then run the registration file on your own machine. Open vs2008 again, open the project, build the project, and solve the problem.

Note: The installation directory of another machine that has been successfully installed on vs2008 should be the same as yours to ensure the success. I have no experiment in different directories and I personally feel that it should fail.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.