MSDN > 論壇首頁 > Visual Studio Setup and Installation > Xaml Editor Crashes after Visual Studio 2008 SP1
發問發問
 

已答覆Xaml Editor Crashes after Visual Studio 2008 SP1

  • 2008年8月13日 下午 09:53Jeff Odell 使用者勳章使用者勳章使用者勳章使用者勳章使用者勳章
     
    After installation of the Service Pack 1, opening existing XAML files in Visual Studio results in a hard crash of Visual Studio 2008.  It attempts to open the XAML editor, the Visual Studio 2008 disappears.

    The event log as the following entry:

    .NET Runtime version 2.0.50727.3053 - Fatal Execution Engine Error (6FE55E00) (80131506)

    I've not found any reference to this specific error on any error report to date.

    The environment is:

    • Vista SP1 x64
    • Direct Upgrade from Visual Studio 2008 (no betas of Service pack 1)
    • No SilverLight Beta
    • NO KB944899 Hot Fix on the machine
    • Clean install as far as I can tell.

    Unlike some other reports, I'm unable to create and edit a new XAML file either.  Editing and existing file or creating a new file immediately crashes the IDE.

    What steps can I take to debug this problem?  I have 5 other developers with the same set-up and I don't want to turn them loose on the upgrade until we get to the bottom of the problem.

解答

  • 2008年8月14日 上午 01:03Michael Ford 使用者勳章使用者勳章使用者勳章使用者勳章使用者勳章
     已答覆

    I also had the same issue. I heard that using Windows Update helped, but on trying it, it still did not work.

    I found that opening the toolbox panel before opening a project helped. This still caused the IDE to stop responding for a few minutes, but it eventually sorted itself out. Opening a project afterwards showed that it had indeed been fixed.

    • 已標示為解答Jeff Odell 2008年8月14日 下午 02:31
    • 已標示為解答Jeff Odell 2008年8月14日 下午 02:33
    • 已標示為解答Jeff Odell 2008年8月14日 下午 02:34
    • 已標示為解答Jeff Odell 2008年8月14日 下午 02:34
    •  

所有回覆

  • 2008年8月14日 上午 01:03Michael Ford 使用者勳章使用者勳章使用者勳章使用者勳章使用者勳章
     已答覆

    I also had the same issue. I heard that using Windows Update helped, but on trying it, it still did not work.

    I found that opening the toolbox panel before opening a project helped. This still caused the IDE to stop responding for a few minutes, but it eventually sorted itself out. Opening a project afterwards showed that it had indeed been fixed.

    • 已標示為解答Jeff Odell 2008年8月14日 下午 02:31
    • 已標示為解答Jeff Odell 2008年8月14日 下午 02:33
    • 已標示為解答Jeff Odell 2008年8月14日 下午 02:34
    • 已標示為解答Jeff Odell 2008年8月14日 下午 02:34
    •  
  • 2008年8月14日 下午 02:31Jeff Odell 使用者勳章使用者勳章使用者勳章使用者勳章使用者勳章
     
    Admittedly, when I first read Michael's fix using the the Toolbox pane, the solution seemed unlikely.  But I tried it this morning and it worked!  To clarify:

    1. I opened up Visual Studio 2008 SP1.
    2. I opened up and pinned the Toolbox pane.
    3. I opened up the project where the XAML editor was failing.
    4. I opened up one of the XAML files, and, as Michael described, it spun a little bit.  In my case - maybe 8-10 seconds.
    5. The designer pane filled in with my XAML form displayed.

    As of this point forward, I can open up the project with or without the Toolbox pane open and the designer works fine.  Something about the procedure resets that pane and allows it to work properly.

    Thank you Michael!

    • 已編輯Jeff Odell 2008年8月14日 下午 02:32spelling
    •  
  • 2008年8月14日 下午 04:53Nick McCready 使用者勳章使用者勳章使用者勳章使用者勳章使用者勳章
     
    Hi Guys,

    I have the exact same problem as explained above, but the solutions are not working. When I first installed it everything was fine, but now out of the blue all XAML files crash VS 2008 Sp1 hard. HELP!

    NEM
  • 2008年8月14日 下午 05:13Nick McCready 使用者勳章使用者勳章使用者勳章使用者勳章使用者勳章
     
    Ok I got it fixed. I had to blow away my import export custom settings, and reload them. Then close every component window in Visual Studio (Solution Explorer, Team Explorer ETC).  Then reopened what I needed and that fixed it.

    NEM
  • 2008年8月14日 下午 11:54Nick McCready 使用者勳章使用者勳章使用者勳章使用者勳章使用者勳章
     
    BTW this keeps happening and now my fix is no longer working all the time. What the heck is going on with VS 2008 SP1? 
  • 2008年8月15日 下午 06:49Nick McCready 使用者勳章使用者勳章使用者勳章使用者勳章使用者勳章
     提議的解答
    As it turns out through Microsoft support it is Power Commands 2008 that causes the problem for me. As soon as it was uninstalled the errors when away. They are looking into now and searching for hot fixes or workarounds. So Power Commands 2008 has compatibility problems with VS 2008 SP1 . Hope this helps some one!

    Another thread on this.

    http://forums.msdn.microsoft.com/en-US/vssetup/thread/e2434065-9921-4861-b914-9cc9d6c55553


    NEM
  • 2008年9月8日 上午 05:12Karin P 使用者勳章使用者勳章使用者勳章使用者勳章使用者勳章
     
    I'm having the same problem. I can't open any XAML files unless they are pure ResourceDictionaries. I could for a while open other files as well but now... It just crashes.

    I uninstalled the Power Commands before installing VS2008 SP1 so that is not the cause of the crash for me. This is not good!
    Karin, Stockholm
    • 已編輯Karin P 2008年9月8日 上午 05:13typo
    •  
  • 2008年9月8日 下午 02:03Nick McCready 使用者勳章使用者勳章使用者勳章使用者勳章使用者勳章
     
    Do you have other third party applications? If so try removing them. Otherwise I would contact Microsoft Technical Support.
  • 2008年9月9日 上午 07:10Karin P 使用者勳章使用者勳章使用者勳章使用者勳章使用者勳章
     
    I must have done something wrong when applying the steps described above. Now it is fixed.  If I take a clean project and make sure no files are opened when the studio starts I'm fine. I still can't use the designer, but I know why and I never use it anyhow. I started with XAML before the designer worked ok so I'm fine with writing the XAML directly. It's just a shame that I need to still have it in the background in order for code-assist to work. It takes too long to load.
    Karin, Stockholm
  • 2008年9月9日 下午 05:16Nick McCready 使用者勳章使用者勳章使用者勳章使用者勳章使用者勳章
     
    Not sure if you have done this already, as I do not use the designer in VS 2008. Go to Tools/Options/TextEditor/XAML/Miscellaneous, check the "Always open open documents in full XAML view"

    Now you should be directed to straight XAML and the designer loads in the background.

    This is slightly faster, but I agree waiting for the designer to load is annoying, especially if all you need it for is code completion.
  • 2009年2月16日 下午 02:12Philipp.Munin 使用者勳章使用者勳章使用者勳章使用者勳章使用者勳章
     
  • 2009年2月25日 上午 08:36KristoferA - Huagati Systems 使用者勳章使用者勳章使用者勳章使用者勳章使用者勳章
     
     
    Philipp.Munin said:

    I have this problem and nothing helps me. Here is my problem http://social.msdn.microsoft.com/Forums/en-US/vswpfdesigner/thread/6c7a9c6c-d565-46ae-83ed-d39998c0fd41/



    Hi Philipp,

    I have written an add-in that attempts to work around one common cause of VS crashes by preloading referenced assemblies when opening solutions/projects (and allowing the load order to be changed if necessary). You can read more (and download it) from http://www.huagati.com/ProjectLoader/

    If you try it out, please report back whether it fixes (or doesn't fix) the problem for you.

    Best regards,
    Kristofer
    Kristofer - Huagati Systems Co., Ltd. - web: www.huagati.com - blog: blog.huagati.com - twitter: twitter.com/KristoferA
  • 2009年2月25日 下午 03:19Nick McCready 使用者勳章使用者勳章使用者勳章使用者勳章使用者勳章
     
    With regards to my previous post in this thread about "Always Open Documnets in full XAML view" this solution is way better and faster.

    ////////////////////

    Have you tried disabling VS2008 from opening in Design View. The design view is not good anyway for XAML which is why you should get blend or just do it manually.

    To do this I suggest going here :  http://weblogs.asp.net/fmarguerie/archive/2009/01/29/life-changer-xaml-tip-for-visual-studio.aspx  .
  • 2009年4月28日 下午 04:02Shariq Abbasi 使用者勳章使用者勳章使用者勳章使用者勳章使用者勳章
     

    Thanks Nick! Works for me. I am not going back to Visual studio editor for XAML.
  • 2009年4月29日 下午 06:49Philipp.Munin 使用者勳章使用者勳章使用者勳章使用者勳章使用者勳章
     

    I did it without WPF designer, read the post carefully:
    http://social.msdn.microsoft.com/Forums/en-US/vswpfdesigner/thread/6c7a9c6c-d565-46ae-83ed-d39998c0fd41/

    >> 1) open just 3 primitive XAML files in XAML editor (not WPF designer)

    More over i noticed this bug not with XAML only but with App.Config too! If i close app.config with another editors many times - i'll get invisible intellisense, until VS2008 restarts. So i guess the problem is in XML editor.

  • 2009年6月1日 下午 02:54very bad horse 使用者勳章使用者勳章使用者勳章使用者勳章使用者勳章
     
    I also have had this problem.  I always resolve it by removing and then re-adding references to PresentationFramework and PresentationCore.  That has consistently eliminated the issue for me...until the next time I re-open Visual Studio.