We had similar problems before, unfortunately, I do not remember the exact solution.
If you are using a Web site project (without a project file), start by checking that both your page and your control set the ClassName property on the first line of your aspx / ascx file and specify the fully qualified name of the class, including the namespace.
Example:
<@Control Language = "VB" AutoEventWireup = "false" NameClass = "YourProjectName.YourUserControl" Inherits = "YourProjectName.YourUserControl" CodeFile = "YourUserControl.ascx.vb"%>
Many times not installing them all will work, but you will get errors and compiler behavior in VS.
If you are using a website application project, try deleting the designer file manually, then right-click on your project and select Convert From Web Application. This should recreate the designer file for you.
My only other suggestion is to recreate the page and / or user control from scratch.
jColeson
source share