title: Root element is missing when trying to Publish
body: <p>It has been a while since I've published my app to Azure. During that time frame, I've upgraded my system from 32-bit to 64-bit meaning a fresh install of Windows and Visual Studio. And Visual Studio Update 3 came out and was applied. When I went to publish an update today, I received the following:</p>
  
  <p><em>The following exception was thrown trying to publish: Root element is missing.</em></p>
  
  <p>My web.config file looks fine so I don't think it's <a href="http://mgadler777.wordpress.com/2013/03/25/microsoft-lightswitch-2012-root-element-is-missing-error/" rel="nofollow">this issue</a>. </p>
  
  <p>The app works fine in debug mode so I don't think it's any of the .lsml files as is mentioned <a href="http://social.msdn.microsoft.com/Forums/vstudio/en-US/ceb03f75-11a9-4bf7-a771-d964a5827821/root-element-is-missing-get-after-receive-out-of-memory-message-in-vis-studio" rel="nofollow">here</a>.</p>
  
  <p>And I tried <a href="https://blogs.msdn.com/b/david_kidder/archive/2012/12/05/declaring-lightswitch-publish-wizard-bankruptcy.aspx?Redirected=true" rel="nofollow">this procedure</a> to hand edit the .ls3proj file but it didn't seem to help.</p>
  
  <p>I previously had an issue trying to publish when I upgraded from the standalone LightSwitch 2011 to Visual Studio 2012. I was able to overcome that issue using the method described in <a href="http://social.msdn.microsoft.com/Forums/vstudio/en-US/7bcdee0f-046d-48b8-9584-6411f64dbcb1/no-longer-able-to-publish" rel="nofollow">this thread</a>. </p>
  
  <p>Attempting to use this same method resulted in my new project has a full screen error saying "<em>There are critical errors in the application definition metadata...</em>" and 210 individual errors (max errors reached).</p>
  
  <p>The first error, "<em>Cannot create unknown type '{<a href="http://schemas.microsoft.com/LightSwitch/2010/xaml/model" rel="nofollow">http://schemas.microsoft.com/LightSwitch/2010/xaml/model</a>}GlobalAttributeGroup'.</em>" Doesn't make sense because that line in the .lsml is identical from the old project to the new project.</p>
  
  <p>The second error, "<em>Could not find any application definition in the project.</em>" Which I do not understand at all.</p>
  
  <p>I am able to publish a simple "Hello, world" style app to my Azure account.</p>
  
  <p>What could be causing this? How can I get more information about exactly which element is causing the issue? The log produced by running <code>devenv /log</code> was not helpful.</p>