{"id":2563,"date":"2010-02-12T12:06:00","date_gmt":"2010-02-12T12:06:00","guid":{"rendered":"https:\/\/blogs.msdn.microsoft.com\/visualstudio\/2010\/02\/12\/content-load-error-breaking-changes-for-beta2-start-pages\/"},"modified":"2019-02-14T15:41:48","modified_gmt":"2019-02-14T23:41:48","slug":"content-load-error-breaking-changes-for-beta2-start-pages","status":"publish","type":"post","link":"https:\/\/devblogs.microsoft.com\/visualstudio\/content-load-error-breaking-changes-for-beta2-start-pages\/","title":{"rendered":"Content Load Error: Breaking Changes for Beta2 Start Pages"},"content":{"rendered":"<p>Visual Studio 2010 Beta2 custom Start Pages will fail to load in Visual Studio 2010 RC due to WPF namespaces changes caused by Shell assembly refactoring between the Beta2 and RC releases.&nbsp; Specifically Microsoft.VisualStudio.Shell.UI.dll has been split between Microsoft.VisualStudio.Shell.10.0.dll and a new assembly, Microsoft.VisualStudio.Shell.StartPage.dll.<\/p>\n<p>If you have created a customized Start Page with Beta2 and have installed RC, you will likely see the following error on the Start Page when Visual Studio starts.<\/p>\n<p><a href=\"https:\/\/devblogs.microsoft.com\/wp-content\/uploads\/sites\/4\/2019\/06\/image_4.png\"><img decoding=\"async\" title=\"image\" height=\"216\" alt=\"image\" src=\"https:\/\/devblogs.microsoft.com\/visualstudio\/wp-content\/uploads\/sites\/4\/2010\/02\/image_thumb_1-1.png\" width=\"742\" border=\"0\"><\/a> <\/p>\n<h2><\/h2>\n<h3>Reset to Default Start Page<\/h3>\n<p>You can fix the above Start Page load error by switching back to the default Start Page.&nbsp; <\/p>\n<p>Go to \u201cTools | Options | Environment | Startup | Customize Start Page\u201d and select \u201c(Default Start Page)\u201d from the dropdown.<\/p>\n<p><a href=\"https:\/\/devblogs.microsoft.com\/wp-content\/uploads\/sites\/4\/2019\/06\/image_6.png\"><img decoding=\"async\" title=\"image\" height=\"432\" alt=\"image\" src=\"https:\/\/devblogs.microsoft.com\/visualstudio\/wp-content\/uploads\/sites\/4\/2010\/02\/image_thumb_2-1.png\" width=\"742\" border=\"0\"><\/a>&nbsp;<\/p>\n<h3>Migrating Beta2 Start Pages to RC<\/h3>\n<p>If you would like to migrate your custom Start Page from Beta2 to RC, update the WPF namespaces in your Start Page XAML as detailed below.<\/p>\n<p>Remove the Shell.UI namespace:<\/p>\n<blockquote>\n<p>xmlns:vs=&#8221;clr-namespace:Microsoft.VisualStudio.PlatformUI;assembly=Microsoft.VisualStudio.Shell.UI&#8221; <\/p>\n<\/blockquote>\n<p>and replace it with these two namespaces:<\/p>\n<blockquote>\n<p>xmlns:sp=&#8221;clr-namespace:Microsoft.VisualStudio.PlatformUI;assembly=Microsoft.VisualStudio.Shell.StartPage&#8221;<\/p>\n<\/blockquote>\n<blockquote>\n<p>xmlns:vs=&#8221;clr-namespace:Microsoft.VisualStudio.PlatformUI;assembly=Microsoft.VisualStudio.Shell.10.0&#8243;<\/p>\n<\/blockquote>\n<p>Once you have updated the namespaces, you will need to update the following URIs and types in the XAML.<\/p>\n<p>The StartPageResources dictionary and images are now located in Microsoft.VisualStudio.Shell.StartPage.dll. <\/p>\n<p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;ResourceDictionary Source=&#8221;\/Microsoft.VisualStudio.Shell.<strong>StartPage<\/strong>;component\/Styles\/startpageresources.xaml&#8221; \/&gt; <\/p>\n<blockquote>\n<p>ImageNormal=&#8221;pack:\/\/application:,,,\/Microsoft.VisualStudio.Shell.<strong>StartPage<\/strong>;component\/Images\/StartPage\/OpenProject.png&#8221; <\/p>\n<\/blockquote>\n<p>The VsCommands, RssCommands and the MruListBox control are now located in Microsoft.VisualStudio.Shell.StartPage.dll.<\/p>\n<blockquote>\n<p>Command=&#8221;{x:Static <strong>sp<\/strong>:VSCommands.ExecuteCommand}&#8221; CommandParameter=&#8221;File.NewProject&#8221; <\/p>\n<\/blockquote>\n<p>Additionally if you wish to reuse the default Start Page Tab Control styling in your custom page, you must now specify these style explicitly.<\/p>\n<blockquote>\n<p>&lt;TabControl <strong>Style='{DynamicResource StartPage.TabControlStyle<\/strong>}&#8221;<\/p>\n<\/blockquote>\n<blockquote>\n<p>&lt;TabItem Header=&#8221;Get Started&#8221; Height=&#8221;Auto&#8221; <strong>Style='{DynamicResource StartPage.TabItemStyle}&#8217;<\/strong><\/p>\n<\/blockquote>\n<h3>Other Start Page RC Changes<\/h3>\n<p>The behavior of the Start Page tool window has changed slightly in RC as well.&nbsp; The tool window will no longer automatically refresh when changes are made to a custom Start Page under development.&nbsp; You will need to either restart Visual Studio or switch between Start Pages through the Customize Start Page dropdown to reload the your start page.<\/p>\n<p>Visual Studio will no longer look in a StartPageAssemblies directory for custom assemblies referenced from a Start Page.&nbsp; Additional assemblies should now go into another folder on the Visual Studio probing path such as PrivateAssemblies.<\/p>\n<p><strong>Greg Van Liew<\/strong> \u2013 Developer, Visual Studio Shell Team<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Visual Studio 2010 Beta2 custom Start Pages will fail to load in Visual Studio 2010 RC due to WPF namespaces changes caused by Shell assembly refactoring between the Beta2 and RC releases.&nbsp; Specifically Microsoft.VisualStudio.Shell.UI.dll has been split between Microsoft.VisualStudio.Shell.10.0.dll and a new assembly, Microsoft.VisualStudio.Shell.StartPage.dll. If you have created a customized Start Page with Beta2 and [&hellip;]<\/p>\n","protected":false},"author":13,"featured_media":255385,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[155],"tags":[133],"class_list":["post-2563","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-visual-studio","tag-xaml"],"acf":[],"blog_post_summary":"<p>Visual Studio 2010 Beta2 custom Start Pages will fail to load in Visual Studio 2010 RC due to WPF namespaces changes caused by Shell assembly refactoring between the Beta2 and RC releases.&nbsp; Specifically Microsoft.VisualStudio.Shell.UI.dll has been split between Microsoft.VisualStudio.Shell.10.0.dll and a new assembly, Microsoft.VisualStudio.Shell.StartPage.dll. If you have created a customized Start Page with Beta2 and [&hellip;]<\/p>\n","_links":{"self":[{"href":"https:\/\/devblogs.microsoft.com\/visualstudio\/wp-json\/wp\/v2\/posts\/2563","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/devblogs.microsoft.com\/visualstudio\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/devblogs.microsoft.com\/visualstudio\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/visualstudio\/wp-json\/wp\/v2\/users\/13"}],"replies":[{"embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/visualstudio\/wp-json\/wp\/v2\/comments?post=2563"}],"version-history":[{"count":0,"href":"https:\/\/devblogs.microsoft.com\/visualstudio\/wp-json\/wp\/v2\/posts\/2563\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/visualstudio\/wp-json\/wp\/v2\/media\/255385"}],"wp:attachment":[{"href":"https:\/\/devblogs.microsoft.com\/visualstudio\/wp-json\/wp\/v2\/media?parent=2563"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/visualstudio\/wp-json\/wp\/v2\/categories?post=2563"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/visualstudio\/wp-json\/wp\/v2\/tags?post=2563"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}