I recently installed silverlight 3 tools to my VS 2008 SP1 environment, now when I open xaml files the designer fails to load saying (if I drag the panel up):
Load Cancelled Loading of the visual designer was cancelled. Resume loading the designer
If I click on the resume loading link the designer will load, however the XAML and Design tabs do not appear at the split window junction. I can see the swap panes button, but it does not function if I click it.
VS shows this error:
Failed to load metadata assembly System.Windows.Controls.Data.Design, Version=2.0.5.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35. Exception message: Unable to load one or more of the requested types. Retrieve the LoaderExceptions property for more information.. Stack Trace: at System.Reflection.Module._GetTypesInternal(StackCrawlMark& stackMark) at System.Reflection.Assembly.GetTypes() at MS.Internal.Package.MetadataLoader.RegisterDesignTimeMetadata(Assembly assembly, LogCallback logger)Failed to load metadata assembly System.Windows.Controls.Data.Input.Design, Version=2.0.5.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35. Exception message: Unable to load one or more of the requested types. Retrieve the LoaderExceptions property for more information.. Stack Trace: at System.Reflection.Module._GetTypesInternal(StackCrawlMark& stackMark) at System.Reflection.Assembly.GetTypes() at MS.Internal.Package.MetadataLoader.RegisterDesignTimeMetadata(Assembly assembly, LogCallback logger)An exception of type ArgumentNullException was caught when calling IRegisterMetadata on type System.Windows.Controls.Data.Input.VisualStudio.Design.MetadataRegistration. Exception Message: Value cannot be null. Parameter name: type. Stack Trace: at Microsoft.Windows.Design.Metadata.AttributeTableBuilder.AddCallback(Type type, AttributeCallback callback) at System.Windows.Controls.Data.Input.VisualStudio.Design.MetadataRegistration.AddAttributes(AttributeTableBuilder builder) at System.Windows.Controls.Design.Common.MetadataRegistrationBase.BuildAttributeTable() at System.Windows.Controls.Data.Input.VisualStudio.Design.MetadataRegistration.Register() at MS.Internal.Package.MetadataLoader.RegisterDesignTimeMetadata(Assembly assembly, LogCallback logger)
Has anyone experienced this? Is there a work around or fix? I have tried removing all silverlight related programs from my machine and re-installed, but the result has been the same?
Here's some vs installed components/versions if that helps:
- Microsoft Visual Studio 2008 Version 9.0.30729.4108 QFE Microsoft .NET Framework Version 3.5 SP1
- Installed Edition: Enterprise
- Microsoft Silverlight Projects 2008 91899-270-9195657-60457 Microsoft Silverlight Projects 2008 Version 9.0.30730.126 ...
- Microsoft Visual Studio Team System 2008 Database Edition GDR 91899-270-9195657-60457 Microsoft Visual Studio Team System 2008 Database Edition GDR Version 9.1.31124.01