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

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

<< back to your results

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

From: Master Pages,Themes and Navigation Controls - 1/16/2006

I ran into this error in the beta of VS 2005 a few times, and now I'm expirencing it in the VS 2005 release.

My code works fine for about the first hour or so of coding, then out of the blue, when I haven't changed anything in the code I get this error:

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

After a (not so wonderfully quick) restart of VS, my code works fine again, for about another hour.  This is really annoying, and I would like to know what is going wrong.  A bug report was opened with Microsoft, and the quickly closed it because "They could not reproduce it" (or didn't really try).  I have seen others verify that this bug does exist.  Does anyone have any information about it at all?

Featured Listings

View more: Unable to cast object of type 'ASP.masterpage_master' to type 'ASP.masterpage_master'.