We help IT Professionals succeed at work.

We've partnered with Certified Experts, Carl Webster and Richard Faulkner, to bring you a podcast all about Citrix Workspace, moving to the cloud, and analytics & intelligence. Episode 2 coming soon!Listen Now


Unable to cast object of type 'ASP.masterpage_master' to type 'MasterPage'.

osiris247 asked
Medium Priority
Last Modified: 2010-05-18

I get this error every now and again.  It seems to be mainly when i change something on a usercontrol which is on the master page.

I get this error on this line of code trying to access a property on the master page, which then changes another property on the user control.

Master.PageTitle = "View - Summary";

Master page
public string PageTitle
        get { return Header1.PageTitle; }
        set { Header1.PageTitle = value; }

user control
public string PageTitle
        get { return lblPageTitle.Text; }
        set { lblPageTitle.Text = value; }

the only way i can stop this error is to close VS 2005 and open project again.

any ideas??

Watch Question

This is a known bug in the product. Check out this thread on ASP.NET forums:

Somebody from Microsoft (jamesche at microsoft.com) posted the following instructions for obtaining a fix:

<< We now have a fix available for this issue.  If you need the fix, you will need to call PSS and get a case created so that we can track distribution of the fix. The case is a no-charge case for delivery of a hotfix.

You can call (800) 936-5800 and tell them that you are calling for an ASP.NET hotfix.  The KB for the fix has not yet been published, but you can ask for the hotfix for issue 915782.  The support engineer can look up that fix internally and send it to you. You might want to let them know as well that you are calling because you saw this post from me. That way, they can ping me if they need any assistance.

Please use that method first, but if you have difficulties because of the unpublished KB, please contact me directly at jamesche@microsoft.com and I'll get you the fix. This is a pretty popular issue, so please do use the 800 number first!  If everyone e-mails me, it will take longer. I promise you that.  :)

The KB will hopefully be published soon.

Not the solution you were looking for? Getting a personalized solution is easy.

Ask the Experts


thanks enwhysee...

i have emailed him and wait to see.

Access more of Experts Exchange with a free account
Thanks for using Experts Exchange.

Create a free account to continue.

Limited access with a free account allows you to:

  • View three pieces of content (articles, solutions, posts, and videos)
  • Ask the experts questions (counted toward content limit)
  • Customize your dashboard and profile

*This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.


Please enter a first name

Please enter a last name

8+ characters (letters, numbers, and a symbol)

By clicking, you agree to the Terms of Use and Privacy Policy.