<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Invalid Code on DVLUP</title><link>/en/tags/invalid-code/</link><description>Recent content in Invalid Code on DVLUP</description><generator>Hugo</generator><language>en-US</language><lastBuildDate>Mon, 04 Aug 2014 00:00:00 +0000</lastBuildDate><atom:link href="/en/tags/invalid-code/index.xml" rel="self" type="application/rss+xml"/><item><title>Invalid XAML error updating from WP7</title><link>/en/blog/2014.08.04-invalid-xaml-error-updating-from-wp7/</link><pubDate>Mon, 04 Aug 2014 00:00:00 +0000</pubDate><guid>/en/blog/2014.08.04-invalid-xaml-error-updating-from-wp7/</guid><description>&lt;p&gt;We are now seeing the beginning of the fast decline of Windows Phone 7 as it exits the market over the next several months, many of you will need to act to update your app to at least Windows Phone 8.  I did this for all of my WP7 apps and there was one error that was In just about every upgrade:&lt;/p&gt;&#10;&lt;p&gt;An error on this XAML namespace declaration:&lt;/p&gt;&#10;&lt;pre tabindex="0"&gt;&lt;code&gt;xmlns:controls=&amp;#34;clr-namespace:Microsoft.Phone.Controls;assembly=Microsoft.Phone.Controls&amp;#34;&#10;&#10;```Previous to Windows Phone 8, the Pivot and Panorama controls were part of a toolkit. The Windows Phone team did a solid by included these in the OS, they also added new controls like the LongListSelector to replace the toolkit&amp;#39;s ListPicker . These controls are now found in the Phone namespace.&#10;&#10;It&amp;#39;s a very frustrating problem if you&amp;#39;re seeing it for the first time. Don&amp;#39;t worry, there is a really easy fix... Delete the xmlns:controls line and use only the xmlns:phone one or edit it and remove the &amp;#34;.Contols&amp;#34; part of the assembly pointer. Here is what it will look like after doing the edit option:&#10;&lt;/code&gt;&lt;/pre&gt;&lt;p&gt;xmlns:controls=&amp;ldquo;clr-namespace:Microsoft.Phone.Controls;assembly=Microsoft.Phone&amp;rdquo;&lt;/p&gt;</description></item></channel></rss>