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 7500297
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 29, 20262026-05-29T20:07:52+00:00 2026-05-29T20:07:52+00:00

EDIT: The main problem seemed to be that I was just doing Add Existing

  • 0

EDIT: The main problem seemed to be that I was just doing “Add Existing Item” from an old web site project into an ASP.NET Web Application project. This caused so much trouble I just started from scratch, except that instead of adding existing items, I added new Master Pages and aspx pages to the project then populated them. The same problem persists.

I have a legacy project that is just a standard web site. I’ve started a new project as a web application and have transplanted in all the pages I need. However, I’m receiving 100+ errors that are comprised mostly of slightly different permutations of the following:

  • 'System.Web.UI.MasterPage does not contain a definition for 'headerImage' (I get this in code-behind)
  • 'MasterPage' does not contain a definition for 'imgHeader' (also this is in code-behind)

Regarding the first error, it’s as though the project is not comprehending that the master page is set. I set the master page at the top of each one of my aspx pages like:

<%@ page language="C#" masterpagefile="~/MasterPages/MasterPage.master" autoeventwireup="true" inherits="Equipment.aspx.cs" title="Untitled Page" %>
<%@ MasterType VirtualPath="~/MasterPages/MasterPage.master"  %>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
<!-- some content -->
</asp:Content>

Also, I clearly expose a headerImage property in the ~/MasterPages/MasterPage.master code-behind:

   public partial class MasterPage : System.Web.UI.MasterPage
   {
      #region Properties

      private string _headerImage;
      public string headerImage
      {
         get
         {
            return _headerImage;
         }
         set
         {
            _headerImage = (string)value;
         }

      }

      // other stuff
   }

And yet VS is still looking for this property in the System.Web.UI.MasterPage base class!

I’ve already checked out this post and it didn’t solve my problem.

Thoughts? All feedback is appreciated. Thanks guys.

  • 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-29T20:07:57+00:00Added an answer on May 29, 2026 at 8:07 pm

    Good morning when you added the existing files to your new web application did you recreate them all from scratch or did you do a literal “Add Existing Item”? If so, then you should right click on each of the files and click the “Convert To Web Application” option.

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

Sidebar

Related Questions

Edit: I've come to realize the main problem I'm facing is that I want
Edit: From another question I provided an answer that has links to a lot
I am working on a multithread QT project. The main problem is on a
I've recently inherited a fairly large web site. The project is set up as
Ok, i have 2 edit controls and a button in my main window; in
Backdrop: There are two forms, the main application form and a form to edit
EDIT: Learned that Webmethods actually uses NLST, not LIST, if that matters Our business
So, I've just started working with a new Joomla site, and something we've added
I use FireFox as my main browser, especially when testing out my site, Avoru
My main problem is storing the data which is not supported by Core Data.

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.