Xaml Editor Crashes after Visual Studio 2008 SP1
- 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.
Respostas
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.- Marcado como RespostaJeff Odell quinta-feira, 14 de agosto de 2008 14:31
- Marcado como RespostaJeff Odell quinta-feira, 14 de agosto de 2008 14:33
- Marcado como RespostaJeff Odell quinta-feira, 14 de agosto de 2008 14:34
- Marcado como RespostaJeff Odell quinta-feira, 14 de agosto de 2008 14:34
Todas as Respostas
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.- Marcado como RespostaJeff Odell quinta-feira, 14 de agosto de 2008 14:31
- Marcado como RespostaJeff Odell quinta-feira, 14 de agosto de 2008 14:33
- Marcado como RespostaJeff Odell quinta-feira, 14 de agosto de 2008 14:34
- Marcado como RespostaJeff Odell quinta-feira, 14 de agosto de 2008 14:34
- 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:
- I opened up Visual Studio 2008 SP1.
- I opened up and pinned the Toolbox pane.
- I opened up the project where the XAML editor was failing.
- I opened up one of the XAML files, and, as Michael described, it spun a little bit. In my case - maybe 8-10 seconds.
- 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!- EditadoJeff Odell quinta-feira, 14 de agosto de 2008 14:32spelling
- 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
- 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
- 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?
- 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
- Sugerido como RespostaNick McCready terça-feira, 26 de agosto de 2008 20:24
- 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- EditadoKarin P segunda-feira, 8 de setembro de 2008 5:13typo
- Do you have other third party applications? If so try removing them. Otherwise I would contact Microsoft Technical Support.
- 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 - 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.
- 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/
- 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 - 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 .
Thanks Nick! Works for me. I am not going back to Visual studio editor for XAML.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.- 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.

