Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 4111840
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 20, 20262026-05-20T22:07:04+00:00 2026-05-20T22:07:04+00:00

I recently updated my VS2010 website project from .NET 3.5 to 4.0. Everything was

  • 0

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.

When I build the class library, everything works great.

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.

Control errors:

“The name ‘INSERT CONTROL NAME HERE’ does not exist in the current context”

Master page errors:

‘System.Web.UI.MasterPage’ does not contain a definition….

It is giving these errors for every single control and master page property in my entire solution.

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.

Anyone have an idea on how to overcome these issues?

UPDATE: 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…

Now it is choking on Literals that are inside single quotes:

<div class='<asp:Literal ID="CssClassLiteral" runat="server"></asp:Literal>'>

It doesn’t see this literal when it does the conversion… Is the above valid code or should I implement that functionality another way?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-20T22:07:05+00:00Added an answer on May 20, 2026 at 10:07 pm

    Yes – one of the main differences between the website project and a web application project in Visual Studio is that the web application project defines a designer.cs file for every page/user control.

    So, let’s say you have a page in a website with a codebehind:

    Default.aspx
    Default.aspx.cs
    

    In a web application, the designer is now required:

    Default.aspx
    Default.aspx.designer.cs
    Default.aspx.cs
    

    The designer file is auto-generated, but you may need to “touch” each page to generate.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I've recently updated an application to the 3.5 framework (from 2.0). The app links
I recently uploaded my ASP.NET MVC 2 Preview 2/.NET 4 application (Built using VS
I am working on extending the spell checker that has recently been updated on
I have a project I recently upgraded to VS2010 - the project/solution files are
I have a database project in my VS2010 solution. I recently changed a view
We recently updated our Tomcat web service. The only things we really updated were
I've recently updated from HTMLUnit 2.4 to 2.5 (we'd go for the latest version
I've recently updated my Internet Explorer version from 8 to 9. Now, I'm getting
i recently updated from GWT 2.0.4 to 2.1.0. Since then I cannot compile my
I recently updated Eclipse, and now when I go to create a new project

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.