Note that there are some explanatory texts on larger screens.

plurals
  1. POMigrating from ASP.NET 4 website project to web application project in Visual Studio 2010 Causing all controls to throw error?
    primarykey
    data
    text
    <p>I recently updated my VS2010 website project from .NET 3.5 to 4.0. Everything was working fine in the website project. Today I decided to migrate the website to a web application project as I have learned this is the best way to work in .NET. I split out all my class files into a separate class library and copied all my other content into my new project. Then I updated all the references and web.config. </p> <p><strong>When I build the class library, everything works great.</strong> </p> <p>The problem is happening when I try to build/debug the web application project. It is acting like all the controls are missing and it is also throwing a bunch of compile errors about the public properties I have in my master pages.</p> <p>Control errors:</p> <blockquote> <p>"The name 'INSERT CONTROL NAME HERE' does not exist in the current context"</p> </blockquote> <p>Master page errors:</p> <blockquote> <p>'System.Web.UI.MasterPage' does not contain a definition....</p> </blockquote> <p>It is giving these errors for every single control and master page property in my entire solution.</p> <p>I notice when I add a new web.form to this project, it also adds a filename.aspx.designer.cs file in addition to the .aspx and .aspx.cs file. My existing files do not have these extra files since they were created in a different .NET version.</p> <p>Anyone have an idea on how to overcome these issues? </p> <p><strong>UPDATE:</strong> It seems I was missing the step where I need to right click on the new application folder and select "Convert to web application". I just did that and it seems to be a little bit better... </p> <p>Now it is choking on Literals that are inside single quotes:</p> <pre><code>&lt;div class='&lt;asp:Literal ID="CssClassLiteral" runat="server"&gt;&lt;/asp:Literal&gt;'&gt; </code></pre> <p>It doesn't see this literal when it does the conversion... Is the above valid code or should I implement that functionality another way?</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload