This is a migrated thread and some comments may be shown as answers.

RadPageView met Task could not find LC.exe SdkToolsPath

3 Answers 541 Views
PageView
This is a migrated thread and some comments may be shown as answers.
Chris
Top achievements
Rank 1
Veteran
Iron
Iron
Chris asked on 09 Nov 2015, 03:44 AM
HI

I have met a big problem.

I have new a TelerikWinFormsApp1 and the build process is normal.

but after drag/drop a RadPageView into Form1 the build process throw the error :

SeverityProjectCodeDescriptionFileLine
ErrorTelerikWinFormsApp1
Task could not find "LC.exe" using the SdkToolsPath "" or the registry key 
"HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Microsoft SDKs\NETFXSDK\4.6\WinSDK-NetFx40Tools-x86". 
Make sure the SdkToolsPath is set and the tool exists in the correct processor specific 
location under the SdkToolsPath and that the Microsoft Windows SDK is installed

Just a simple Telerik control drag/drop...
I need to install the Windows 10 SDK ?
(https://dev.windows.com/en-us/downloads/windows-10-sdk)
If need, Why ???

*Registry key "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Microsoft SDKs\NETFXSDK\
 is not exists in my windows registry.
*My C:\Program Files\Microsoft SDKs\Windows\ have no 'v10.0A' folder.
*If drag/drop the radButton1, the build process is normal.

Environment:
Windows 7
Visual Studio 2015 Enterprise 
Telerik DevCraft 2015 Q2

Best regards

Chris

3 Answers, 1 is accepted

Sort by
0
Hristo
Telerik team
answered on 11 Nov 2015, 09:44 AM
Hi Chris,

Thank you for writing.

So far, we had a couple reports for such error, but for the time being, we were unable to reproduce it on our end and we were unable to investigate it. 

What usually helps is rebuilding the solution or restarting Visual Studio. You can also try deleting the licenses. file.

Another thing you can try is to run Visual Studio in Safe Mode and see if the problem is still reproducible. If so, some extension might be causing it.

I have also found a couple threads on the matter that you might find useful:
http://stackoverflow.com/questions/3269191/lc-exe-file-not-found-during-build-for-net-4
http://stackoverflow.com/questions/26442450/why-is-visual-studio-2013-using-the-wrong-sdktoolspath-for-lc-exe (see Hans comment)
http://www.msigman.com/telerik-msbuild-task-find-lc-exe-sdktoolspath/
https://msdn.microsoft.com/en-us/library/mt584218.aspx?f=255&MSPPError=-2147217396

I tested the described behavior on a Windows 7 machine with Visual Studio 2015 and I could not reproduce the error. 

I hope this helps. Should you have further questions please do not hesitate to write back.

Regards,
Hristo Merdjanov
Telerik
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
0
Chris
Top achievements
Rank 1
Veteran
Iron
Iron
answered on 16 Nov 2015, 03:50 AM

HI

The problem solved after 'SDK for Windows xx' installed :

。。。for Visual Studio 2015。。。

Error
TelerikWinFormsApp1
Task could not find "LC.exe" using the SdkToolsPath "" or 
the registry key "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Microsoft SDKs\NETFXSDK\4.6\WinSDK-NetFx40Tools-x86". 
Make sure the SdkToolsPath is set and the tool exists in the correct processor specific location 
under the SdkToolsPath and that the Microsoft Windows SDK is installed

------------------------------------------------------

Windows Software Development Kit (SDK) for Windows 10
https://dev.windows.com/en-us/downloads/windows-10-sdk

run sdksetup.exe, Select the features you want to install :

  .NET Framework 4.6 Software Development Kit (check this only, if you do not want install other features or disk spaces insufficient)

AFTER INSTALL

1.folders/files created :

C:\Program Files\Microsoft SDKs\Windows\

  v10.0A\
    bin\
      NETFX 4.6 Tools
        ...
        lc.exe
        ...

2.Windows Registry key created :

"HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Microsoft SDKs\NETFXSDK\4.6\WinSDK-NetFx40Tools-x86"


。。。for Visual Studio 2012。。。

Error
TelerikWinFormsApp1
Task could not find "LC.exe" using the SdkToolsPath "" or the registry key 
"HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Microsoft SDKs\Windows\v8.0A\WinSDK-NetFx40Tools-x86". 
Make sure the SdkToolsPath is set and the tool exists in the correct processor specific location 
under the SdkToolsPath and that the Microsoft Windows SDK is installed

https://msdn.microsoft.com/en-us/windows/desktop/hh852363.aspx

------------------------------------------------------

run sdksetup.exe, Select the features you want to install :

  .NET Framework 4.5 Software Development Kit (check this only, if you do not want install other features or disk spaces insufficient)

AFTER INSTALL

1.folders/files created :

C:\Program Files\Microsoft SDKs\Windows\

  v8.0A\
    bin\
      NETFX 4.0 Tools
        ...
        lc.exe
        ...

2.Windows Registry key created :

"HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Microsoft SDKs\Windows\v8.0A\WinSDK-NetFx40Tools-x86"


Other

If the error contains 'v8.1A' then install :

Windows Software Development Kit (SDK) for Windows 8.1
https://msdn.microsoft.com/en-us/windows/desktop/bg162891.aspx

download/install steps are similar.

Reference

  Telerik MSBuild Task could not find “LC.exe” using the SdkToolsPath
  http://www.msigman.com/telerik-msbuild-task-find-lc-exe-sdktoolspath/
  ...
  You have two choices to resolve this error:
    1.Install the Windows SDK on your build server.
  ...

  License File | UI for ASP.NET AJAX Documentation
  http://docs.telerik.com/devtools/aspnet-ajax/licensing/license-file
  ...
  As of Q1 2015, ...
  ...

---------------------------------------------------------------

I have uninstalled/reinstalled .NET Framework 4.6 before,
this is maybe the reason (reinstallation makes NetFx folder/registry removed) but I'm not sure.

Best regards

Chris

  

 

0
Hristo
Telerik team
answered on 16 Nov 2015, 11:13 AM
Hello Chris,

Thank you for writing back.

I am glad that you have managed to resolve this issue. We also thank you for sharing this additional information with our community.

Should you have further questions please do not hesitate to write back.

Regards,
Hristo Merdjanov
Telerik
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
Tags
PageView
Asked by
Chris
Top achievements
Rank 1
Veteran
Iron
Iron
Answers by
Hristo
Telerik team
Chris
Top achievements
Rank 1
Veteran
Iron
Iron
Share this question
or