Ask a questionAsk a question
 

AnswerVS 2008 SP1 and VS 2010 Beta1 on the same machine problem

  • Thursday, June 18, 2009 12:38 PMchemist007 Users MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     
    Hello Everybody, I'm facing a lot of problems with Visual Studio 2010 Beta1 on my development machine with Visual studio 2008 SP1. I can not create WPF projects in VS 2008 SP1, When i try to do so, Visual Studio Closes without any notification. And also, I'm not able to Open Expression Studio 2, Or Expression Blend 3 Mix09 Preview. When I run, it says: cannot load file or assembly 'PresentationFramework.dll version=3.0.0.0 ...' etc and closes. And in my GAC I've version 4.0. something of this file. Please Help Me. I'm Seriously thinking to go on to the JAVA Way (Just Joking!).
    Nothing
    • Moved byKarel ZikmundMSFTWednesday, June 24, 2009 6:31 PMLooks like installation issue (From:.NET Framework 4 Application Compatibility - Beta 1)
    •  

Answers

  • Sunday, June 28, 2009 4:53 AMKarel ZikmundMSFTUsers MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     Answer
    Hello Chemist,

    As I mentioned in my last reply:
        This looks like an installation issue. I'll move it to that forum ... hopefully someone can get some info from the logs.
    This is beoynd my expertise. I don't know much about troubleshooting .NET Framework setup failures. I hoped that someone on this forum could help you ... (That's the best thing I can think of ...)

    To answer your last 2 questions:
    (a) I don't know, you could try it ... then repair 3.5 installation, check if everything is allright and maybe try to install VS 2010 Beta1 again. If I had time, I would try it ... It depends on how much you want/need VS 2010 Beta1 and how much time you want to spend testing it ...
    (b) I think you should be able to build them. Did you try it?
    And one additional:
    (c) Maybe someone on this forum will help you with your installation problem ...

    -Karel

All Replies

  • Monday, June 22, 2009 8:55 PMKarel ZikmundMSFTUsers MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     

    Did you look after the DLL using gacutil?

    Setup your command line environment: "%ProgramFiles%\Microsoft Visual Studio 8\SDK\v2.0\Bin\sdkvars.bat"
    And run "gacutil.exe /l PresentationFramework". The result should be something like this:
        The Global Assembly Cache contains the following assemblies:
          PresentationFramework, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35, processorArchitecture=MSIL
        Number of items = 1

    Alternatively check all files and subdirectories in this directory: %WinDir%\assembly\GAC_MSIL\PresentationFramework
    It should contain 2 entries:
        3.0.0.0__31bf3856ad364e35\PresentationFramework.dll
        4.0.0.0__31bf3856ad364e35\PresentationFramework.dll

    To troubleshoot this, you can try to repair .NET Framework 3.5 installation.
    If it doesn't help, try to run a small 3.0/3.5 application which will load PresentationFramework DLL and list all its types (or something like that). Does that work?

    -Karel

  • Tuesday, June 23, 2009 1:46 PMchemist007 Users MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     
    Hi Karel, Thanks for reply. No folder "GAC_MSIL" exists in assembly folder. Please help Me. Be quick.

    Do not Visit my Blog
  • Tuesday, June 23, 2009 3:41 PMKarel ZikmundMSFTUsers MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     
    Did you try gacutil? Did you try to repair .NET Framework 3.5 installation? Did you try a small app?
  • Wednesday, June 24, 2009 2:25 AMchemist007 Users MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     
    Yes, I've repaired .NET Framework 3.5 "Successfully" two times but all in vain. Service packs are also applied. when I open blend 2 or 3 preview I get this screen:
    <a href="http://tinypic.com/view.php?pic=289x8h5&s=5 " target="_blank">Screen 1</a>
    When I debug it with VS2008 or 2010, I get this exception:
    <a href="http://i42.tinypic.com/10ne1wn.png" target="_blank">Screen 2</a>
    Thanks
    Do not Visit my Blog
  • Wednesday, June 24, 2009 5:04 AMKarel ZikmundMSFTUsers MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     

    Please try all steps I gave you at once ... that will save you time. You still didn't answer 2 of my original questions:
    1) Did you try gacutil? (see steps above) What was the result?
    2) Did you try a small app loading PresentationFramework DLL? What happened?

    And a new additional question:
    3) When you looked after GAC_MSIL directory, did you look for it in command line window (command "dir %WinDir%\assembly\GAC_MSIL") and not in Windows Explorer? If it doesn't exist, what is in the %WinDir%\assembly directory then ("dir %WinDir%\assembly")?

  • Wednesday, June 24, 2009 11:16 AMchemist007 Users MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     
    (1): Here is the GacUtil.exe, only version 4.0.0.0
    Microsoft (R) .NET Global Assembly Cache Utility.  Version 4.0.20506.1
    Copyright (c) Microsoft Corporation.  All rights reserved.

    The Global Assembly Cache contains the following assemblies:
      PresentationFramework, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35, processorArchitecture=MSIL

    Number of items = 1

    (2):
    I created WPF 3.5 Project in VS 2008 and it closed everytime I tried. And in VS 2010 a WPF Project doesn't compile. 1 Error and 77 Warnings.

    Here are the errors:

    Warning    1    The primary reference "System" with the .NET fusion name of "System, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" could not be resolved because it has a public key token of "B77A5C561934E089" and has been located in the GAC or AssemblyFolders search locations. The assembly has been added to an exclusion list. Assemblies with this public key token should not be resolved from the GAC or the Assemblyfolders search locations. If this reference is required change the reference include to a fusion name and set <SpecificVersion> metadata to true.    WpfApplication2
    Warning    2    The primary reference "System.Data" with the .NET fusion name of "System.Data, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" could not be resolved because it has a public key token of "B77A5C561934E089" and has been located in the GAC or AssemblyFolders search locations. The assembly has been added to an exclusion list. Assemblies with this public key token should not be resolved from the GAC or the Assemblyfolders search locations. If this reference is required change the reference include to a fusion name and set <SpecificVersion> metadata to true.    WpfApplication2
    Warning    3    The primary reference "System.Xml" with the .NET fusion name of "System.Xml, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" could not be resolved because it has a public key token of "B77A5C561934E089" and has been located in the GAC or AssemblyFolders search locations. The assembly has been added to an exclusion list. Assemblies with this public key token should not be resolved from the GAC or the Assemblyfolders search locations. If this reference is required change the reference include to a fusion name and set <SpecificVersion> metadata to true.    WpfApplication2
    Warning    4    The primary reference "System.Data" could not be resolved because it has an indirect dependency on the .NET Framework assembly "mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" which has a public key token of "B77A5C561934E089" and has been located in the GAC or AssemblyFolders search locations. The assembly has been added to an exclusion list. Assemblies with this public key token should not be resolved from the GAC or the Assemblyfolders search locations. If this reference is required change the reference include to a fusion name and set <SpecificVersion> metadata to true.    WpfApplication2

    ... (more duplicate warnings stripped)

    Warning    69    Could not resolve this reference. Could not locate the assembly "WindowsBase". Check to make sure the assembly exists on disk. If this reference is required by your code, you may get compilation errors.    WpfApplication2
    Warning    70    Could not resolve this reference. Could not locate the assembly "PresentationCore". Check to make sure the assembly exists on disk. If this reference is required by your code, you may get compilation errors.    WpfApplication2
    Warning    71    Could not resolve this reference. Could not locate the assembly "PresentationFramework". Check to make sure the assembly exists on disk. If this reference is required by your code, you may get compilation errors.    WpfApplication2
    Error    72    The "Microsoft.Build.Tasks.Windows.MarkupCompilePass1" task could not be loaded from the assembly PresentationBuildTasks, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35. Could not load file or assembly 'PresentationBuildTasks, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its dependencies. The system cannot find the file specified. Confirm that the <UsingTask> declaration is correct, that the assembly and all its dependencies are available, and that the task contains a public class that implements Microsoft.Build.Framework.ITask.    WpfApplication2
    Warning    73    The referenced component 'System' could not be found.    
    Warning    74    The referenced component 'System.Data' could not be found.    
    Warning    75    The referenced component 'System.Xml' could not be found.    
    Warning    76    The referenced component 'WindowsBase' could not be found.    
    Warning    77    The referenced component 'PresentationCore' could not be found.    
    Warning    78    The referenced component 'PresentationFramework' could not be found.    

    Thanks
    • Edited byKarel ZikmundMSFTWednesday, June 24, 2009 6:12 PMKeep only important lines
    •  
  • Wednesday, June 24, 2009 11:16 AMchemist007 Users MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     
    (3): here is the "dir %windir%\assembly\GAC_MSIL" output

     Directory of C:\Windows\assembly\GAC_MSIL

    ... (more dirs stripped) ...
    05/19/2009  03:47 PM    <DIR>          PresentationFramework
    05/19/2009  03:47 PM    <DIR>          PresentationFramework.Aero
    05/19/2009  03:47 PM    <DIR>          PresentationFramework.Classic
    05/19/2009  03:47 PM    <DIR>          PresentationFramework.Luna
    05/19/2009  03:47 PM    <DIR>          PresentationFramework.Royale
    05/19/2009  03:47 PM    <DIR>          PresentationUI
    ... (more dirs stripped) ...
                   0 File(s)              0 bytes
                 636 Dir(s)   5,028,597,760 bytes free
    Do not Visit my Blog
    • Edited byKarel ZikmundMSFTWednesday, June 24, 2009 5:56 PMKeep only important lines
    •  
  • Wednesday, June 24, 2009 5:47 PMBen Cline1MVPUsers MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     
    I think I saw this too using the VS 2010 CTP. I had VS 2008 and VS 2010 installed side-by-side so I could do a compat test of BizTalk 2009 with VS 2010. I had found that the VS 2008 version was only BIDS and not the full version. I went through and installed VS 2008 Pro full and I think I was still getting the problem when trying to use the WPF project types. Here is a blog post I did on my test although this does not refer to the WPF issue: http://msinnovations.spaces.live.com/blog/cns!62E68922E47BC425!590.entry

     
    I did not identify a workaround because I assumed this was just a CTP issue. It seemed like a problem with the extensions loaded on 2 different VS versions.

    Thanks,
    If this answers your question, please use the "Answer" button to say so | Ben Cline
  • Wednesday, June 24, 2009 6:30 PMKarel ZikmundMSFTUsers MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     
    The warnings in (2) are weird ... it might be related to this report: https://connect.microsoft.com/VisualStudio/feedback/ViewFeedback.aspx?FeedbackID=459230&wa=wsignin1.0
    (3) has expected results.
    (1) shows that your PresentationFramework 3.0.0.0 is missing in the GAC. That is bad. I would expect 3.0/3.5 Framework repair to fix this.

    Out of curiosity, can you please try:
    4) gacutil /l PresentationFramework.Aero
        gacutil /l PresentationUI
        gacutil /l System
    Are also these assembly versions missing? (3.0 for Presentation* and 2.0 for System)

    This looks like an installation issue. I'll move it to that forum ... hopefully someone can get some info from the logs.

    -Karel
  • Thursday, June 25, 2009 1:57 AMchemist007 Users MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     
    Hi, Karel, Thanks. I've Tried .NET Framework 3.5 Repair two times. Every time it succeeds. But the problem persists.

    (1): gacutil /l PresentationFramework.Aero
    Microsoft (R) .NET Global Assembly Cache Utility.  Version 4.0.20506.1
    Copyright (c) Microsoft Corporation.  All rights reserved.

    The Global Assembly Cache contains the following assemblies:
      PresentationFramework.Aero, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35, processorArchitecture=MSIL

    Number of items = 1

    (2): gacutil /l PresentationUI
    Microsoft (R) .NET Global Assembly Cache Utility.  Version 4.0.20506.1
    Copyright (c) Microsoft Corporation.  All rights reserved.

    The Global Assembly Cache contains the following assemblies:

    Number of items = 0
    (3): gacutil /l System
    Microsoft (R) .NET Global Assembly Cache Utility.  Version 4.0.20506.1
    Copyright (c) Microsoft Corporation.  All rights reserved.

    The Global Assembly Cache contains the following assemblies:
      System, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089, processorArchitecture=MSIL
      System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089, processorArchitecture=MSIL

    Number of items = 2

    Do not Visit my Blog
  • Thursday, June 25, 2009 3:20 AMchemist007 Users MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     
    Thanks Ben, but I'm experiencing problem regarding WPF. I think .NET 3.5 is not installed correctly, but I've repaired it twice, and it doesn't work.
    Do not Visit my Blog
  • Thursday, June 25, 2009 6:14 AMBen Cline1MVPUsers MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     
    I actually think it is related to the Visual Studio extensions getting mixed up between the 2 different versions of VS. .NET 3.5 is likely not the problem - it is more likely to be the .NET 4 stuff that results in a different version of WPF extensions. I would anticipate that VS 2008 tries to load the .NET 4 based WPF extension and it does not work.

    I just had the same symptom as you in my post above when trying to use the WPF extensions.

    Thanks,
    If this answers your question, please use the "Answer" button to say so | Ben Cline
  • Saturday, June 27, 2009 6:37 AMchemist007 Users MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     
    Hi Karel Zikmund , Where have you gone? My problem is not solved yet.
    (a): Should I remove VS 2010 Beta1?
    (b): Can I build my routine projects targeting .NET 2.0 and 3.5 in VS 2010 Beta1?

    Please Help me. Otherwise I will not have an option but to remove the .NET 4.0 and VS 2010 beta1. Thanks

    Do not Visit my Blog
  • Sunday, June 28, 2009 4:53 AMKarel ZikmundMSFTUsers MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     Answer
    Hello Chemist,

    As I mentioned in my last reply:
        This looks like an installation issue. I'll move it to that forum ... hopefully someone can get some info from the logs.
    This is beoynd my expertise. I don't know much about troubleshooting .NET Framework setup failures. I hoped that someone on this forum could help you ... (That's the best thing I can think of ...)

    To answer your last 2 questions:
    (a) I don't know, you could try it ... then repair 3.5 installation, check if everything is allright and maybe try to install VS 2010 Beta1 again. If I had time, I would try it ... It depends on how much you want/need VS 2010 Beta1 and how much time you want to spend testing it ...
    (b) I think you should be able to build them. Did you try it?
    And one additional:
    (c) Maybe someone on this forum will help you with your installation problem ...

    -Karel
  • Sunday, June 28, 2009 2:45 PMchemist007 Users MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     
    Thanks Karel, Thanks Ben for giving me some time from your a lot of "spare time".