[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now


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

Posted on 2006-04-04
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??

Question by:osiris247

Accepted Solution

enwhysee earned 2000 total points
ID: 16369740
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.

Author Comment

ID: 16374628
thanks enwhysee...

i have emailed him and wait to see.


Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

It was really hard time for me to get the understanding of Delegates in C#. I went through many websites and articles but I found them very clumsy. After going through those sites, I noted down the points in a easy way so here I am sharing that unde…
International Data Corporation (IDC) prognosticates that before the current the year gets over disbursing on IT framework products to be sent in cloud environs will be $37.1B.
In a question here at Experts Exchange (https://www.experts-exchange.com/questions/29062564/Adobe-acrobat-reader-DC.html), a member asked how to create a signature in Adobe Acrobat Reader DC (the free Reader product, not the paid, full Acrobat produ…
Despite its rising prevalence in the business world, "the cloud" is still misunderstood. Some companies still believe common misconceptions about lack of security in cloud solutions and many misuses of cloud storage options still occur every day. …
Suggested Courses

872 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question