Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Unable to cast object of type 'X' to type 'X' - ASP.NET

I am currently working with a ASP.NET Web site project in Visual Studio 2008 and everytime I make a change to code behind page for a user control and browse to page that is using the user contorl I get the following error:

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

I have to rebuild my entire solution to order to resolve this error. Has anyone else experienced this error and do they know how to resolve it?

like image 361
Michael Kniskern Avatar asked Feb 04 '09 16:02

Michael Kniskern


1 Answers

Deleting your temporary ASP.NET files (everything in C:\Windows\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files) makes this go away... for a while.

like image 100
teedyay Avatar answered Nov 14 '22 23:11

teedyay