Cannot apply an object of type "X" to type "X" - ASP.NET

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?

+5
source share
5 answers

IIS , .

0

ASP.NET( C:\Windows\Microsoft.NET\Framework\v2.0.50727\ ASP.NET) ... .

+8

, , .

. , , - DLL . , , ASP.Net . , , DLL.

+2

Eurekaaa!! ... ...

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.

-1
source

All Articles