Reza Shayestehpour
Reza Shayestehpour

Reputation: 1703

visual studio XAML designer not loading

I'm developing Windows phone apps on my Mac Book Pro Retina (late 2013) on a virtual machine using Parallels 9. I have Visual Studio 2012 and Windows phone 8 SDK installed and everything works fine writing code and testing it on my Lumia phone. The problem is that the XAML designer doesn't load i.e. I get the following error:

System.InvalidOperationException The document failed to open.

    at Microsoft.Expression.DesignSurface.DesignerService.CreateDesigner(IHostSourceItem item, IHostTextEditor editor, CancellationToken cancelToken)

    at Microsoft.Expression.DesignHost.IsolatedDesignerService.IsolatedDesignerView.CreateDesignerViewInfo(CancellationToken cancelToken)

Next to this error message, which is displayed instead of the designer, there's a button to reload the designer. But when I press it, it takes forever and gets no results.

I have posted my question in the Microsoft forum but it seems like a ghost town down there.

Upvotes: 7

Views: 11487

Answers (2)

DharmaTurtle
DharmaTurtle

Reputation: 8357

I also got an infinitely loading Designer. I solved it by deleting the UserControl and recreating it via source control.

Upvotes: 2

neo-av-in
neo-av-in

Reputation: 151

Steps:

  1. close all visual studio instances
  2. browse to C:\Users\<>\AppData\Local\Microsoft\VisualStudio\12.0
  3. rename or remove "ComponentModelCache"
  4. restart Visual Studio

Upvotes: 12

Related Questions