Home » Visual StudioRSS

LC.exe was not found

I'm using Orcas beta 2, and am recieving the following error when I compile a project:

Code Snippet
Error 101 Task failed because "LC.exe" was not found, or the .NET Framework SDK v3.5 is not installed.  The task is looking for "LC.exe" in the "bin" subdirectory beneath the location specified in the InstallationFolder value of the registry key HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\.NETFramework.  You may be able to solve the problem by doing one of the following:  1.) Install the .NET Framework SDK v3.5.  2.) Manually set the above registry key to the correct location.  3.) Pass the correct location into the "ToolPath" parameter of the task. Management Suite 2

This comes after I add a third party control to a form. The licenses.licx file is created properly, but the project doesn't compile. I've done 1, but can't find the registry key for the 3.5 framework or the "ToolPath" parameter.

Is this a problem with the project, or the third party stuff?

 

13 Answers Found

 

Answer 1

Nevermind. I reinstalled the SDK again and it works now.

 

Answer 2

Where did you get the 3.5 beta  2 sdk  from? I can't find  it anywhere and I have this same issue on Vista x64
 
 

Answer 4

Wow, and I thought the .NET 3.5 installer itself was bloatware....

Ouch.

 

Answer 5

Most of it is documentation and samples. Just because something is big doesn't mean it's bloated.

 

Answer 6

Tell that to the 100+ meg install  of the .NET 3.0+ runtime... (.NET 2.0 runtime = 25 megs approximately)
 

Answer 7

I guess it's just a matter of perspective. As somebody who uses a great deal of the features across all versions of the runtime, I'm not bothered by the size.
 

Answer 8

Well Bloatware question aside and back to the original problem.

I have experienced the exact same problem  with Orcas Beta 2. The issue is that I have re-installed .NET 3.5 and I have checked the registry  key which is set  correctly. The toolpath option is confusing me and I cannot find  it. However, all things being correct  I am still unsure why it cannot find LC.exe. I have checked that it is there and it is where the registry says it is.

Now here is the question. I had to install  to a second harddrive. My C:\ drive is small and loaded and I cannot put Orcas there. All my other Visual Studio installs had no issues running from E:\ and like I said all seems to be in good order.

Does anyone know how I might go about getting around this issue? Any assistance would be wonderful!
 

Answer 9

This is necessary to compile  the license's files with extension *.licx. When this problem  appeared on my site, this is what I did to solve  it. I had the Windows SDK v6.0a already installed. This is the Vista SDK. However you can install  the Framework SDK, it should be the same. If the key  still doesn't exist, you can create it manually. In my case the key HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Microsoft SDKs\Windows\v6.0A didn't exist. it was up to the "Windows" registry  key -> HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Microsoft SDKs\Windows . You should create the key manually, then add  the "InstallationFolder" vlaue (again manually). Then set  the path to the v6.0a SDK folder.  In my case it is : C:\Program Files\Microsoft SDKs\Windows\v6.0A\
The LC.exe is located in the Bin subfolder, but it shouldn't be in the reg value. Only the root folder.

Then the next important step is to restart the Visual Studio if it is already started.

It seems that VS is taking the settings in the biginning when started. After that it should be restarted to get the new settings.

 

Answer 10

Error message was the as mentioned above - but for me under "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Microsoft SDKs\Windows\v6.0A " the "InstallationFolder" was setted to some string which was not poiting to anything.

So I went and changed the key  to point to "C:\Program Files\Microsoft SDKs\Windows\v6.0A\" and then it worked fine for me, please remember to re-start the VS after this change.

 

Answer 11

Thank you so much Geroge...

it works for me...

 

Answer 12

I faced the same problem in VS 2005 v2.0.

I noticed that the 'bin' folder containing 'lc.exe' file under 'C:\Program Files\Microsoft Visual Studio 8\SDK\v2.0\Bin' was empty. I copied and pasted all files under 'bin' folder from other machine and pasted to my machine.

It just worked;)

 

Answer 13

how to create key  manually??
 
 
 

<< Previous      Next >>


Microsoft   |   Windows   |   Visual Studio   |   Follow us on Twitter