I am currently working with an ASP.NET website project in Visual Studio 2008 and every time I make changes to the code page by page for the user control and view the page using the user code, I get the following error:
Cannot start object of type 'ASP.basepage_master' to enter type 'ASP.basepage_master'.
I need to rebuild my entire solution to solve this problem. Has anyone else experienced this error and know how to resolve it?
IIS , .
ASP.NET( C:\Windows\Microsoft.NET\Framework\v2.0.50727\ ASP.NET) ... .
, , .
. , , - DLL . , , ASP.Net . , , DLL.
:
http://professionalaspnet.com/archive/2007/04/09/Unable-to-cast-object-of-type-_2700_ASP.masterpage_5F00_master_2700_-to-type-_2700_ASP.masterpage_5F00_master_27002E00_.aspx
Eurekaaa!! ... ...
LoadControl, "" . . this.LoadControl("~/MyUserControl.ascx");
LoadControl
this.LoadControl("~/MyUserControl.ascx");
, . aspx.
ββVS2005 VS 2008.
Answer me if this does not work or needs further explanation. Also, be sure to mark this as an answer.