After upgrading to Visual Studio 2010 - The type or namespace name 'xxxxxxxxx_ascx' does not exist in the namespace 'ASP'
<p>We recently upgraded our website project to Visual Studio 2010.</p>

<p>I am now getting this error whenever I try to Publish the Website with the "Allow this precompiled site to be updatable" checked.</p>

<p>This worked previously using Visual Studio 2008 so I am not sure why it is not working now.</p>

<pre><code>The type or namespace name 'xxxxxxxxx_ascx' does not exist in the namespace 'ASP' 
(are you     missing an assembly reference?)
</code></pre>

<p>The lines causing the error are all doing this sort of thing.</p>

<pre><code>ASP.content_Controls_Info_ascx infoControl = new ASP.content_Controls_Info_ascx();
infoControl.Stages =  query.ToList();
PlaceHolder1.Controls.Add(infoControl);
</code></pre>

<p>I have not upgraded anything else so the dot net framework is still 3.5</p>

<p>The site builds fine and a publish works without "Allow this precompiled site to be updatable" checked. The content_Controls_Info_ascx part of the code also highlights the class name so it is finding it.</p>
