none
Item 'Microsoft.Net.Framework.3.5.SP1' could not be located in 'C:\Program Files (x86)\Microsoft SDKs\Windows\v6.0A\Bootstrapper\'.

    Question

  • Hello,

    i'm trying to publish a project in VS 2008. A build gos OK, but when I try to publish I get

    Warning 1 Item 'Microsoft.Net.Framework.3.5.SP1' could not be located in 'C:\Program Files (x86)\Microsoft SDKs\Windows\v6.0A\Bootstrapper\'.

    It has built perfectly earlier and I have done nothing else than installing MS patches.

    Anyone got any ideas? 

    I know similar questions have been asked before, but I'm a terrible newbie at VS2008 and need more or less baby talk to finding my way to a solution.

    I may be in the wrong forum. Please redirect me in that case.

    Running:

    Windows 7 (x64) all patches

    VS2008SP1

    Regards

    Hans


    Edited:

    Forgot to say that in Project Properties - Publish - Prerequisites the item .NET Framwork 3.5 SP1 has a yellow triangle in front of it

    Regards

    Hans

    Sunday, May 15, 2011 10:14 AM

Answers

  • Hello,

     

    I had the same problem as you. There are 2 solutions. One in which you change the deployment manifest, and the other in which you adapt the folder to the manifest.

    The normal way is not to change the manifest found in the v6.0A\Bootstrapper\Packages\DotNetFX35SP1. There you will find a product.xml file. If you open it, you will see all the folders that are required to be there. To achieve that, simply download from the internet the .Net framework SP1, and extract all the folders there, near the manifest. Restart the application and check to see if the yellow mark is still there. If not, then everything is ok.

     

    The other way is to download the .net framework 3.5 sp1, and put the exe in the folder, near the manifest. Do not extract it. Open the manifest and remove all the entries except that which refers to the 3.5SP1 . It will look like this:

     

    <?xml version="1.0" encoding="utf-8" ?>
    
    <Product
     xmlns="http://schemas.microsoft.com/developer/2004/01/bootstrapper"
     ProductCode="Microsoft.Net.Framework.3.5.SP1"
    >
    
      <!-- Defines list of files to be copied on build -->
      <PackageFiles CopyAllPackageFiles="IfNotHomeSite">
    		<PackageFile Name="dotNetFx35setup.exe" HomeSite="DotNetFX35SP1Exe" PublicKey="3082010A0282010100A2DB0A8DCFC2C1499BCDAA3A34AD23596BDB6CBE2122B794C8EAAEBFC6D526C232118BBCDA5D2CFB36561E152BAE8F0DDD14A36E284C7F163F41AC8D40B146880DD98194AD9706D05744765CEAF1FC0EE27F74A333CB74E5EFE361A17E03B745FFD53E12D5B0CA5E0DD07BF2B7130DFC606A2885758CB7ADBC85E817B490BEF516B6625DED11DF3AEE215B8BAF8073C345E3958977609BE7AD77C1378D33142F13DB62C9AE1AA94F9867ADD420393071E08D6746E2C61CF40D5074412FE805246A216B49B092C4B239C742A56D5C184AAB8FD78E833E780A47D8A4B28423C3E2F27B66B14A74BD26414B9C6114604E30C882F3D00B707CEE554D77D2085576810203010001" />
    	</PackageFiles>
    
      <RelatedProducts>
    
        <EitherProducts>
          <DependsOnProduct Code="Microsoft.Windows.Installer.3.1" />
          <DependsOnProduct Code="Microsoft.Windows.Installer.4.5" />
        </EitherProducts>
    
        <IncludesProduct Code="Microsoft.Net.Framework.2.0" />
        <IncludesProduct Code="Microsoft.Net.Framework.2.0.SP2.X86" />
        <IncludesProduct Code="Microsoft.Net.Framework.3.0.SP2" />
        <IncludesProduct Code="Microsoft.Net.Client.3.5" />
        <IncludesProduct Code="Microsoft.Net.Framework.3.5" />
      </RelatedProducts>
    
    </Product>
    
    

    Note: dotnetFX35setup.exe is the name of the file downloaded. You can change it. I do not remember it that was the exact name.

    Hope on of this two will help you.

     

    Best regards,

    Silviu.

     


    http://www.rosoftlab.net/
    Monday, May 16, 2011 6:24 AM
  • Hi yxza,

     

    Thanks for posting in the MSDN Forum.

     

    I think you can find the right folder which store the DotNetFX35SP1 via the register hive “HKLM\Software\Microsoft\GenericBootstrapper\3.5” please check it.

     

    I hope it can help you.

     

    Have a good day,

     

    Tom

     

    PS:

    Add Custom Prerequisites: http://msdn.microsoft.com/en-us/library/ms165429(v=VS.90).aspx
    Tom Xu [MSFT]
    MSDN Community Support | Feedback to us
    Get or Request Code Sample from Microsoft
    Please remember to mark the replies as answers if they help and unmark them if they provide no help.

    • Marked as answer by Bruce Song Tuesday, June 07, 2011 11:20 AM
    Tuesday, June 07, 2011 3:08 AM

All replies

  • Hello,

     

    I had the same problem as you. There are 2 solutions. One in which you change the deployment manifest, and the other in which you adapt the folder to the manifest.

    The normal way is not to change the manifest found in the v6.0A\Bootstrapper\Packages\DotNetFX35SP1. There you will find a product.xml file. If you open it, you will see all the folders that are required to be there. To achieve that, simply download from the internet the .Net framework SP1, and extract all the folders there, near the manifest. Restart the application and check to see if the yellow mark is still there. If not, then everything is ok.

     

    The other way is to download the .net framework 3.5 sp1, and put the exe in the folder, near the manifest. Do not extract it. Open the manifest and remove all the entries except that which refers to the 3.5SP1 . It will look like this:

     

    <?xml version="1.0" encoding="utf-8" ?>
    
    <Product
     xmlns="http://schemas.microsoft.com/developer/2004/01/bootstrapper"
     ProductCode="Microsoft.Net.Framework.3.5.SP1"
    >
    
      <!-- Defines list of files to be copied on build -->
      <PackageFiles CopyAllPackageFiles="IfNotHomeSite">
    		<PackageFile Name="dotNetFx35setup.exe" HomeSite="DotNetFX35SP1Exe" PublicKey="3082010A0282010100A2DB0A8DCFC2C1499BCDAA3A34AD23596BDB6CBE2122B794C8EAAEBFC6D526C232118BBCDA5D2CFB36561E152BAE8F0DDD14A36E284C7F163F41AC8D40B146880DD98194AD9706D05744765CEAF1FC0EE27F74A333CB74E5EFE361A17E03B745FFD53E12D5B0CA5E0DD07BF2B7130DFC606A2885758CB7ADBC85E817B490BEF516B6625DED11DF3AEE215B8BAF8073C345E3958977609BE7AD77C1378D33142F13DB62C9AE1AA94F9867ADD420393071E08D6746E2C61CF40D5074412FE805246A216B49B092C4B239C742A56D5C184AAB8FD78E833E780A47D8A4B28423C3E2F27B66B14A74BD26414B9C6114604E30C882F3D00B707CEE554D77D2085576810203010001" />
    	</PackageFiles>
    
      <RelatedProducts>
    
        <EitherProducts>
          <DependsOnProduct Code="Microsoft.Windows.Installer.3.1" />
          <DependsOnProduct Code="Microsoft.Windows.Installer.4.5" />
        </EitherProducts>
    
        <IncludesProduct Code="Microsoft.Net.Framework.2.0" />
        <IncludesProduct Code="Microsoft.Net.Framework.2.0.SP2.X86" />
        <IncludesProduct Code="Microsoft.Net.Framework.3.0.SP2" />
        <IncludesProduct Code="Microsoft.Net.Client.3.5" />
        <IncludesProduct Code="Microsoft.Net.Framework.3.5" />
      </RelatedProducts>
    
    </Product>
    
    

    Note: dotnetFX35setup.exe is the name of the file downloaded. You can change it. I do not remember it that was the exact name.

    Hope on of this two will help you.

     

    Best regards,

    Silviu.

     


    http://www.rosoftlab.net/
    Monday, May 16, 2011 6:24 AM
  • Hello,

    thanks for your answer. I've been away for a few weeks and have not had a chance to test your suggestions.

    But looking into my directories, there is no v6.0A\Bootstrapper\Packages\DotNetFX35SP1 folder. I have a few others

    and a v6.0A\Bootstrapper\Packages\DotNetFX35. I'm certain I had it before. mmmm?

    Also when I open VS 2008, Project properties, Publish, Prerequisites - the line .NET Framwork 3.5 SP1 with the yellow triangel is

    gone. mmmm????

    And all of a sudden I can publish my project with no problems. mmmm????

     

    I have not changed anything except that some patches may have installed.

     

    Anyway, thanks for your effort and I keep my fingers crossed that everything continues to function. As I said, Visual Studio is a

    totally new and different experience to me.

     

    Regards

    Hans

    Monday, June 06, 2011 8:52 AM
  • Hi yxza,

     

    Thanks for posting in the MSDN Forum.

     

    I think you can find the right folder which store the DotNetFX35SP1 via the register hive “HKLM\Software\Microsoft\GenericBootstrapper\3.5” please check it.

     

    I hope it can help you.

     

    Have a good day,

     

    Tom

     

    PS:

    Add Custom Prerequisites: http://msdn.microsoft.com/en-us/library/ms165429(v=VS.90).aspx
    Tom Xu [MSFT]
    MSDN Community Support | Feedback to us
    Get or Request Code Sample from Microsoft
    Please remember to mark the replies as answers if they help and unmark them if they provide no help.

    • Marked as answer by Bruce Song Tuesday, June 07, 2011 11:20 AM
    Tuesday, June 07, 2011 3:08 AM
  • Hello Tom,

    just for "fun's" sake I don't even have that registry hive. I can find the "GenericBootstrapper" in HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Microsoft\GenericBootstrapper\3.5

    but in C:\Program Files (x86)\Microsoft SDKs\Windows\v6.0A\Bootstrapper\3.5 which is pointed out  there is nothing mentioning SP1

     

    This environment gives me headaches. I can publish now, it's a very simple application, my wife is satisfied, everybody smiles, including me.

    Thanks for all your efforts, I wish I could have understood and used it, but .... I'm used to assembly (and a little C) programming. This way of programming

    could drive me nuts.

     

    Regards

    Hans

    Tuesday, June 07, 2011 7:50 PM