locked
VS2012 Express target platform 4.5 not available on W7Ultimate 64bit RRS feed

  • 问题

  • Hi

    I'm aware of opening a thread which was answered before. But all the answers didnt workout in my case.
    Although .net 4.5 and vs2012 express are installed correct I cant adjust 4.5 in target platform (its not visible).
    I tried repair reinstallation and reinstallation but it does not help.
    First installation was on f: disk.
    I found some forums saying to install it on c: disk. So I did, but it does not help.
    Maybe the f: disk installation messed up my system?
    I tried everything possible found in all kind of forums, but no luck.

    If somebody can give some advice would be great.
    Thanks
    Vik

    2013年1月6日 16:11

全部回复

  • Hi,

    To determine if this issue is related to .NET Frameworks or not, please use .NET Framework Setup Verification Tool to verify .NET Framework 4.5: http://blogs.msdn.com/b/astebner/archive/2008/10/13/8999004.aspx

    Please post the result here after running the tool for each installed framework. For each run, the first ~15 lines of tool output will show all .NET Frameworks found. The last ~15 lines will show you the verification results.

    Btw, what project did you create?

    Best regards,


    Ego [MSFT]
    MSDN Community Support | Feedback to us
    Develop and promote your apps in Windows Store
    Please remember to mark the replies as answers if they help and unmark them if they provide no help.

    2013年1月7日 8:07
  • Thanks for the suggestion.
    I was trying to create a wpf project. But I tried different types without sccess.
    The result of the verification tool:

    [01/08/13,21:16:08] Beginning of new SetupVerifier activity logging session
    [01/08/13,21:16:08] Activity log file location: C:\Users\Vik\AppData\Local\Temp\setupverifier_main_01-08-13_21.16.08.txt
    [01/08/13,21:16:09] Error log file location: C:\Users\Vik\AppData\Local\Temp\setupverifier_errors_01-08-13_21.16.08.txt
    [01/08/13,21:16:09] Build created on September 10, 2012
    [01/08/13,21:16:09] Detected operating system: Windows 7 (x64)
    [01/08/13,21:16:09] For more information about repairing the .NET Framework, see http://support.microsoft.com/kb/2698555 and http://go.microsoft.com/fwlink/?LinkID=246062
    [01/08/13,21:16:09] Install state for .NET Framework 1.0: not installed.
    [01/08/13,21:16:09] Install state for .NET Framework 1.1: not installed.
    [01/08/13,21:16:09] Install state for .NET Framework 2.0: installed with service pack 2.
    [01/08/13,21:16:09] Install state for .NET Framework 3.0: installed with service pack 2.
    [01/08/13,21:16:09] Install state for .NET Framework 3.5: installed with service pack 1.
    [01/08/13,21:16:09] Install state for .NET Framework 4 Client: installed with no service packs.
    [01/08/13,21:16:09] Install state for .NET Framework 4 Full: installed with no service packs.
    [01/08/13,21:16:09] Install state for .NET Framework 4.5: installed with no service packs.
    [01/08/13,21:16:09] Windows directory: C:\Windows
    [01/08/13,21:16:09] System directory: C:\Windows\system32
    [01/08/13,21:16:09] Program Files directory: C:\Program Files
    [01/08/13,21:16:09] Common Files directory: C:\Program Files (x86)\Common Files
    ...........................

    [01/08/13,21:16:31] Section [Registry - .NET Framework 4 Full (Wow6432Node)] - stop parsing entries
    [01/08/13,21:16:31] Not running action 'Registry - .NET Framework 4.5 (32-bit)' for product '.NET Framework 4.5' because the OS condition does not match
    [01/08/13,21:16:31] Section [Registry - .NET Framework 4.5 (64-bit)] - start parsing entries
    [01/08/13,21:16:31] Section [Registry - .NET Framework 4.5 (64-bit)] - stop parsing entries
    [01/08/13,21:16:31] Section [Registry - .NET Framework 4.5 (Wow6432Node)] - start parsing entries
    [01/08/13,21:16:31] Key: HKLM\SOFTWARE\Microsoft\NET Framework Setup\NDP\v4\Full
        Value: Release
        Actual Data:    REGISTRY VALUE FOUND
    [01/08/13,21:16:31] Section [Registry - .NET Framework 4.5 (Wow6432Node)] - stop parsing entries
    [01/08/13,21:16:31] Processing custom action 'Custom Action - .NET Framework 4.0 test application'
    [01/08/13,21:16:31] ExecutablePath = 'Netfx40TestApplication.exe'
    [01/08/13,21:16:31] FriendlyName = '.NET Framework 4 test application'
    [01/08/13,21:16:31] TimeoutSeconds = '300'
    [01/08/13,21:16:31] WaitOnExit = 'true'
    [01/08/13,21:16:31] Silent = 'true'
    [01/08/13,21:16:31] Launching process 'Netfx40TestApplication.exe' now
    [01/08/13,21:16:31] Process successfully launched. Waiting 300 seconds for it to complete.
    [01/08/13,21:16:32] Process 'Netfx40TestApplication.exe' exited with return code 0
    [01/08/13,21:16:32] Verification succeeded for product .NET Framework 4.5

    Regards
    Vik

    2013年1月8日 20:30
  • Hi Vik,

    From the log, I found the .Net Framework 4.5 installed.

    In my computer, I can't reproduce your issue. I think you can try a test:

    • Unload the project(right click the project->click Unload Project)
    • Edit the project file(right click the project->click Edit ...)
    • Set the TargetFrameworkVersion as v4.5
    • Reload the project
    • Rebuild it

    Can this project build? Please show the result here.

    Best regards,


    Ego [MSFT]
    MSDN Community Support | Feedback to us
    Develop and promote your apps in Windows Store
    Please remember to mark the replies as answers if they help and unmark them if they provide no help.

    2013年1月9日 9:39
  • Hi Ego

    I did as suggested.
    If I reload the project I run into the dialog
    "Project Target Framework Not Installed" with the options
    Change the target to to .NET 4.5.You can change back to...
    Download the targeting pack for for ".NETFramework,Versionv4.5"...
    Do not load the project..

    Continued by building project. Ending up with output:

    1>------ Build started: Project: WpfApplication1, Configuration: Debug Any CPU ------
    1>C:\Windows\Microsoft.NET\Framework\v4.0.30319\Microsoft.Common.targets(983,5): warning MSB3644: The reference assemblies for framework ".NETFramework,Version=v4.5" were not found. To resolve this, install the SDK or Targeting Pack for this framework version or retarget your application to a version of the framework for which you have the SDK or Targeting Pack installed. Note that assemblies will be resolved from the Global Assembly Cache (GAC) and will be used in place of reference assemblies. Therefore your assembly may not be correctly targeted for the framework you intend.
    1>C:\Windows\Microsoft.NET\Framework\v4.0.30319\Microsoft.Common.targets(1578,5): warning MSB3270: There was a mismatch between the processor architecture of the project being built "MSIL" and the processor architecture of the reference "C:\Windows\Microsoft.NET\Framework\v4.0.30319\mscorlib.dll", "x86". This mismatch may cause runtime failures. Please consider changing the targeted processor architecture of your project through the Configuration Manager so as to align the processor architectures between your project and references, or take a dependency on references with a processor architecture that matches the targeted processor architecture of your project.
    1>C:\Windows\Microsoft.NET\Framework\v4.0.30319\Microsoft.Common.targets(1578,5): warning MSB3270: There was a mismatch between the processor architecture of the project being built "MSIL" and the processor architecture of the reference "PresentationCore", "AMD64". This mismatch may cause runtime failures. Please consider changing the targeted processor architecture of your project through the Configuration Manager so as to align the processor architectures between your project and references, or take a dependency on references with a processor architecture that matches the targeted processor architecture of your project.
    1>C:\Windows\Microsoft.NET\Framework\v4.0.30319\Microsoft.Common.targets(1578,5): warning MSB3270: There was a mismatch between the processor architecture of the project being built "MSIL" and the processor architecture of the reference "System.Data", "AMD64". This mismatch may cause runtime failures. Please consider changing the targeted processor architecture of your project through the Configuration Manager so as to align the processor architectures between your project and references, or take a dependency on references with a processor architecture that matches the targeted processor architecture of your project.
    1>  WpfApplication1 -> G:\Users\Vik\Documents\Visual Studio 2012\Projects\WpfApplication1\WpfApplication1\bin\Debug\WpfApplication1.exe

    Because of the message ...mismatch between the processor architecture...
    I added in Configuration manager Platform x64 and try to build again. Now running in Output

    1>------ Rebuild All started: Project: WpfApplication1, Configuration: Debug x64 ------
    1>C:\Windows\Microsoft.NET\Framework\v4.0.30319\Microsoft.Common.targets(983,5): warning MSB3644: The reference assemblies for framework ".NETFramework,Version=v4.5" were not found. To resolve this, install the SDK or Targeting Pack for this framework version or retarget your application to a version of the framework for which you have the SDK or Targeting Pack installed. Note that assemblies will be resolved from the Global Assembly Cache (GAC) and will be used in place of reference assemblies. Therefore your assembly may not be correctly targeted for the framework you intend.
    1>C:\Windows\Microsoft.NET\Framework\v4.0.30319\Microsoft.Common.targets(1578,5): warning MSB3270: There was a mismatch between the processor architecture of the project being built "AMD64" and the processor architecture of the reference "C:\Windows\Microsoft.NET\Framework\v4.0.30319\mscorlib.dll", "x86". This mismatch may cause runtime failures. Please consider changing the targeted processor architecture of your project through the Configuration Manager so as to align the processor architectures between your project and references, or take a dependency on references with a processor architecture that matches the targeted processor architecture of your project.
    1>CSC : warning CS1607: Assembly generation -- Referenced assembly 'mscorlib.dll' targets a different processor
    1>  WpfApplication1 -> G:\Users\Vik\Documents\Visual Studio 2012\Projects\WpfApplication1\WpfApplication1\bin\x64\Debug\WpfApplication1.exe
    ========== Rebuild All: 1 succeeded, 0 failed, 0 skipped ==========

    Does it say .NET 4.5 is not in GAC?

    Best regards
    Vik

    2013年1月9日 20:13

  •  i was installing the visual studio c++ 2012 ultimate

     and i get a msg of .NETFramework4.5 Fatal error during instalation

    i run the verification then which is

    ======================================================================
    [01/10/13,02:05:47] Beginning of new SetupVerifier activity logging session
    [01/10/13,02:05:47] Activity log file location: C:\Users\ADMINI~1\AppData\Local\Temp\setupverifier_main_01-10-13_02.05.47.txt
    [01/10/13,02:05:47] Error log file location: C:\Users\ADMINI~1\AppData\Local\Temp\setupverifier_errors_01-10-13_02.05.47.txt
    [01/10/13,02:05:47] Build created on September 10, 2012
    [01/10/13,02:05:47] Detected operating system: Windows 7 (x64)
    [01/10/13,02:05:47] For more information about repairing the .NET Framework, see http://support.microsoft.com/kb/2698555 and http://go.microsoft.com/fwlink/?LinkID=246062
    [01/10/13,02:05:47] Install state for .NET Framework 1.0: not installed.
    [01/10/13,02:05:47] Install state for .NET Framework 1.1: not installed.
    [01/10/13,02:05:47] Install state for .NET Framework 2.0: installed with service pack 2.
    [01/10/13,02:05:47] Install state for .NET Framework 3.0: installed with service pack 2.
    [01/10/13,02:05:47] Install state for .NET Framework 3.5: installed with service pack 1.
    [01/10/13,02:05:47] Install state for .NET Framework 4 Client: not installed.
    [01/10/13,02:05:47] Install state for .NET Framework 4 Full: not installed.
    [01/10/13,02:05:47] Install state for .NET Framework 4.5: not installed.
    [01/10/13,02:05:47] Windows directory: C:\Windows
    [01/10/13,02:05:47] System directory: C:\Windows\system32
    [01/10/13,02:05:47] Program Files directory: C:\Program Files (x86)
    [01/10/13,02:05:47] Common Files directory: C:\Program Files (x86)\Common Files
    [01/10/13,02:05:47] Not adding product '.NET Framework 1.0' because it is not currently installed
    [01/10/13,02:05:47] Not adding product '.NET Framework 1.1' because it is not currently installed
    [01/10/13,02:05:47] Not adding product '.NET Framework 1.1 SP1' because it is not currently installed
    [01/10/13,02:05:47] Not adding product '.NET Framework 2.0' because it is not currently installed
    [01/10/13,02:05:47] Not adding product '.NET Framework 2.0 SP1' because it is not currently installed
    [01/10/13,02:05:47] Not adding product '.NET Framework 3.0' because it is not currently installed
    [01/10/13,02:05:47] Not adding product '.NET Framework 3.0 SP1' because it is not currently installed
    [01/10/13,02:05:47] Not adding product '.NET Framework 3.5' because it is not currently installed
    [01/10/13,02:05:47] Not adding product '.NET Framework 4 Client' because it is not currently installed
    [01/10/13,02:05:47] Not adding product '.NET Framework 4 Full' because it is not currently installed
    [01/10/13,02:05:47] Not adding product '.NET Framework 4.5' because it is not currently installed
    [01/10/13,02:06:02] Starting verification for product .NET Framework 2.0 SP2
    [01/10/13,02:06:02] Section [Files - .NET Framework 2.0 (Common)] - start parsing entries
    [01/10/13,02:06:02] File C:\Windows\system32\mscoree.dll (version 2.0.50727.4927) is installed on the system
    [01/10/13,02:06:02] File C:\Windows\system32\dfshim.dll (version 2.0.50727.4927) is installed on the system
    [01/10/13,02:06:02] File C:\Windows\system32\mscorier.dll (version 2.0.50727.4927) is installed on the system
    [01/10/13,02:06:02] File C:\Windows\system32\mscories.dll (version 2.0.50727.4927) is installed on the system
    [01/10/13,02:06:02] File C:\Windows\system32\MUI\0409\mscorees.dll (version 2.0.50727.4927) is installed on the system
    [01/10/13,02:06:02] File C:\Windows\Assembly\GAC_32\CustomMarshalers\2.0.0.0__b03f5f7f11d50a3a\CustomMarshalers.dll (version 2.0.50727.4927) is installed on the system
    [01/10/13,02:06:02] File C:\Windows\Assembly\GAC_32\ISymWrapper\2.0.0.0__b03f5f7f11d50a3a\ISymWrapper.dll (version 2.0.50727.4927) is installed on the system
    ------------------------------------

    [01/10/13,02:06:48] Section [Registry GE - .NET Framework 3.5 SP1 (Common)] - stop parsing entries
    [01/10/13,02:06:48] Not running action 'Registry GE - .NET Framework 3.5 SP1 (32-bit)' for product '.NET Framework 3.5 SP1' because the OS condition does not match
    [01/10/13,02:06:48] Section [Registry GE - .NET Framework 3.5 SP1 (64-bit)] - start parsing entries
    [01/10/13,02:06:48] Section [Registry GE - .NET Framework 3.5 SP1 (64-bit)] - stop parsing entries
    [01/10/13,02:06:48] Section [Registry GE - .NET Framework 3.5 SP1 (Wow6432Node)] - start parsing entries
    [01/10/13,02:06:48] Key: HKLM\SOFTWARE\Microsoft\NET Framework Setup\NDP\v3.5
    Value: SP
    Expected Data: 1
    Actual Data: 1
    [01/10/13,02:06:48] Section [Registry GE - .NET Framework 3.5 SP1 (Wow6432Node)] - stop parsing entries
    [01/10/13,02:06:48] Section [Files - .NET Framework 3.0 SP1AndLater (Common)] - start parsing entries
    [01/10/13,02:06:48] Section [Files - .NET Framework 3.0 SP1AndLater (Common)] - stop parsing entries
    [01/10/13,02:06:48] Processing custom action 'Custom Action - .NET Framework 2.0 test application'
    [01/10/13,02:06:48] ExecutablePath = 'Netfx20TestApplication.exe'
    [01/10/13,02:06:48] FriendlyName = '.NET Framework 2.0 test application'
    [01/10/13,02:06:48] TimeoutSeconds = '300'
    [01/10/13,02:06:48] WaitOnExit = 'true'
    [01/10/13,02:06:48] Silent = 'true'
    [01/10/13,02:06:48] Launching process 'Netfx20TestApplication.exe' now
    [01/10/13,02:06:48] Process successfully launched. Waiting 300 seconds for it to complete.
    [01/10/13,02:06:48] Process 'Netfx20TestApplication.exe' exited with return code 0
    [01/10/13,02:06:48] Not running action 'Files - .NET Framework netfxperf.dll' for product '.NET Framework 3.5 SP1' because the OS condition does not match
    [01/10/13,02:06:48] Verification succeeded for product .NET Framework 3.5 SP1

    2013年1月10日 0:27
  • Hi Vik,

    I am trying to involve someone familiar with this topic to further look at this issue. There might be some time delay. Appreciate your patience.
     
    Thank you for your understanding and support.

    Best regards,


    Ego [MSFT]
    MSDN Community Support | Feedback to us
    Develop and promote your apps in Windows Store
    Please remember to mark the replies as answers if they help and unmark them if they provide no help.

    2013年1月10日 2:06
  • Hi Oldbird,

    Please create a new thread for your question.

    Thanks,


    Ego [MSFT]
    MSDN Community Support | Feedback to us
    Develop and promote your apps in Windows Store
    Please remember to mark the replies as answers if they help and unmark them if they provide no help.

    2013年1月10日 2:10
  • Hi Ego

    Thanks for the feedback.
    Investigated further and found Microsoft Windows SDK for Windows 7(7.1) is still installed on F: disk.
    Therefor reinstalled it on C: disk. But still the same problem.

    Best regards

    Vik

    2013年1月10日 13:06
  • Hello Vik, the problem is caused by the machine missing the Microsoft .NET Framework 4.5 Multi-Targeting Pack.  The Multi-Targeting pack for 4.5 is installed as part of the initial install of VS2012 and is not available as a separate download.  If you have the full express image ISO you can find the install package by the name of NetFx45_DTP.msi.  You can install it from there.  Alternatively you can uninstall VS2012 and then install it again.

    2013年1月14日 22:42
  • Hi Kelvin

    I installed as suggested NetFx45_DTP.msi. The problem still exists.
    I did already the full reinstallation with no success.

    Best regards
    Vik

    2013年1月15日 20:28
  • Please check if the folder and\OR file FrameworkList.xml is present on the machine. 

    "C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.5\RedistList\”


    2013年1月15日 22:36
  • Hi Kelvin

    I can confirm the existence of the file.
    Enclosed the root element of the file:

    <FileList  Redist="Microsoft-Windows-CLRCoreComp.4.0" Name=".NET Framework 4" RuntimeVersion="4.0" ToolsVersion="4.0">
    ...
    A lot of elements <file> referencing assemblies
    ...
    </FileList>

    Regards
    Vik

    2013年1月16日 20:05
  • Hi Vik, actually we need to look for the following - corrected original ask :)

    "C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.5\RedistList\”



    2013年1月18日 15:39
  • Hi Kelvin

    Confirmed. This too exists.

    Root-element:
    <FileList  Redist="Microsoft-Windows-CLRCoreComp.4.5" Name=".NET Framework 4.5" RuntimeVersion="4.5" ToolsVersion="4.0" ShortName="Full">
    again a lot of <file> elements referencing assemblies.

    Regards
    Vik

    Investigated more:
    I can see target frameworks 2.0, 3.0, 3.5.
    For 2.0 I cant find the RedistList.
    But for 3.0 and 3.5 the RedistList is in a slightly different location
    C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\v3.5\RedistList
    Maybe that's the problem?

    Regards
    Vik

    2013年1月18日 21:53
  • Thank you Vik,  I am sure we are close.  If you cause any kind of corruption with that folder location on a working machine you will see the symptoms you described.   The Multi-Targeting pack is normally installed during the installation of Visual Studio 2012 not after the fact.  As we have a problem with it we could try and uninstall VS2012, rename the C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.5\RedistList\ and then install VS2012 again.  Confirm after the install that the files and folder location are created and see if the issue is resolved.  If it is not we could try monitoring the Visual Studio process with Procmon to see which registry and files are accessed to narrow it down further.  If this doesn't help please consider contacting us via a support case

    2013年1月21日 17:08
  • 26.1.2013

    Hi Kelvin
    Here the results:

    Uninstalled VS2012
    Renamed C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.5\RedistList\
    Installed VS2012
    Same problem. Note: The renamed folder is not created during installation.

    So I tried this:
    Deinstalled VS2012
    Deinstalled .Net Framework 4.5
    Deinstalled .Net Framework 4.5 SDK
    Deinstalled .Net Framework 4 Multi-Targeting Pack
    Deinstalled .Net Framework 4.5 Multi-Targeting Pack
    Deleted everything below C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework

    Installed VS2012
    Same problem

    Checked
    .Net Framework 4.5
    .Net Framework 4.5 SDK
    .Net Framework 4.5 Multi-Targeting Pack
    Is installed with VS2012

    Now I tried Procmon and recorded the start of WDExpress.
    Found about 40'000 events.
    Filtered for 4.5 and found two events:
    open and close registry key
    HKLM\SOFTWARE\Wow6432Node\Microsoft\.NETFramework\v4.0.30319\SKUs\.NETFramework,Version=v4.5
    No errors.
    Can you give me a clue what to search for?

    Thanks a lot for your help
    Regards

    Vik



    29.1.2013
    Investigated further and found in a forum the Microsoft Log Collection Tool.
    Downloaded and run. Got a lot of logfiles.
    Checked the files Summary_xxxxxxx_VSExpress_10.0.txt but found not errors.
    Maybe here are some locations to check?

    Regards
    Vik

    2013年1月26日 10:05