Visual Studio Developer Center > Visual Studio Forums > Visual Studio Setup and Installation > Visual Studio 2008 (final) installation missing tools
Ask a questionAsk a question
 

Proposed AnswerVisual Studio 2008 (final) installation missing tools

  • Tuesday, November 27, 2007 2:17 PMDan Händevik Users MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     
    I installed Visual Studio 2008 (final) and started to create a WinForms (2.0) application that calls a webservice and is deployed with clickonce. When I try to compile it (after adding the webreference) I get the following build error

    C:\WINDOWS\Microsoft.NET\Framework\v3.5\Microsoft.Common.targets(1993,9):
    error MSB3091:
    Task failed because "sgen.exe" was not found, or the correct Microsoft Windows SDK is not installed. The task is looking for "sgen.exe" in the "bin" subdirectory beneath the location specified in the InstallationFolder value of the registry key HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Microsoft SDKs\Windows\v6.0A. You may be able to solve the problem by doing one of the following:
    1) Install the 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 location.
    4) Pass the correct location into the "ToolPath" parameter of the task.


    I thought that the SDK was to be installed with VisualStudio 2008, but when looking into the SDKs folder (C:\Program Files\Microsoft Visual Studio 9.0\SDK) it contains almost nothing, only a few files in the v3.5 folder.

    When I searched for the SDK for framework 3.5 it seems that is included in the windows server 2008 platform sdk and that is only avaliable for beta2 so far...

    Regarding the registry settings, I have the SDK for v2.0 installed and since I build vs the 2.0 framework, shouldn't it look in the KEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Microsoft SDKs\Windows\v2.0 key?

    Anyway, I came around the issue by setting the
    HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Microsoft SDKs\Windows\v6.0A InstallationFolder key to the same path as the 2.0 Sdk path and compilation was successful...

    Is the VisualStudio 2008 release not final since it seems to miss the SDK or have I been sloppy installing the product?

    http://dhvik.blogspot.com/2007/11/task-failed-because-was-not-found.html

All Replies

  • Friday, December 07, 2007 10:57 AMTor Thorbergsen Users MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     

     

    I'm missing AL.exe

     

    C:\Windows\Microsoft.NET\Framework\v3.5\Microsoft.Common.targets(2083,9): error MSB3091: Task failed because "AL.exe" was not found, or the correct Microsoft Windows SDK is not installed. The task is looking for "AL.exe" in the "bin" subdirectory beneath the location specified in the InstallationFolder value of the registry key HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Microsoft SDKs\Windows\v6.0A. You may be able to solve the problem by doing one of the following: 1) Install the 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 location. 4) Pass the correct location into the "ToolPath" parameter of the task.

     

    Under HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Microsoft SDKs\ I only got .NETFramework and .NETFramework\v2.0

     

    In the key "KEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Microsoft SDKs\Windows\v2.0" I got the Value "InstallationFolder" with the value data "C:\Program Files\Microsoft Visual Studio 8\SDK\v2.0\", but in that location there is no AL.exe...

     

     

    Best regards,

    Tor Thorbergsen

  • Friday, January 04, 2008 11:29 PMozhug Users MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     

     

    Same here my install failed after installing VS2008 during installing the SDK's.

    So AL.exe could not be found

     

    I tried to repair but the SDK's are not part of the repair process.

    I found them on the disk but when you try to install from here it say's they can only be used as part of the VS2008 install (which is a complete pain)

     

    I have rebuilt this machine and will try again.

     

    Regards

     

    Mark

  • Monday, February 11, 2008 12:08 PMLaughing John Users MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     
    Are you looking in "C:\Program Files\Microsoft SDKs\Windows\v6.0A\bin" ???
  • Friday, May 16, 2008 12:59 AMlex3001 Users MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     

    I think I hav a similar problem... I can't publish from VS.NET 2008 because signtool.exe is missing.

     

    I look in C:\Program Files\Microsoft SDKs\Windows\v6.0A\bin and it is EMPTY!

     

    I never had a beta VS.NET 2008 installed, just the RTM verison... any ideas on how to fix this?

  • Thursday, May 22, 2008 12:12 PMblomkvist Users MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     

    I installed the Windows SDK for Windows Server 2008 and .NET Framework version 3.5 on my build machine and it fixed the problem. (My build missed the sgen.exe).

     

  • Monday, August 04, 2008 8:04 AMVinix Users MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     Proposed Answer
    blomkvist said:

    I installed the Windows SDK for Windows Server 2008 and .NET Framework version 3.5 on my build machine and it fixed the problem. (My build missed the sgen.exe).

    Yeah, but install 5xx~1xxxMB of unused (for me) files is not a acceptable solution for me. :P
    I still prefer modifying the registry.

    For those who don't know how to modify the registry:

    1. copy & paste following to NotePad:
    Windows Registry Editor Version 5.00

    [HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Microsoft SDKs\Windows\v6.0A]
    "InstallationFolder"="C:\\Program Files\\Microsoft Visual Studio 8\\SDK\\v2.0\\"


    Then rename the file extention to abc.reg.

    2. Double-click the file you just created then choose "Yes".

    3. You're done. :)

    • Proposed As Answer bycgishack Wednesday, January 07, 2009 3:08 PM
    •