Parser Error Message: The base class includes the field '<field>', but its type (<type>) is not compatible with the type of control (<type2>).
Several problems can cause this error:
- .Net version missmatch between the running application and the compiler used to compile the control.
- Name conflict because the aspx generates a property with the same name as the control's ID; which can result in two fields with different types if a property already exists with that name.
- For ascx files, changing the tag CodeFile to CodeBehind changes the way the class is compiled, and can therefore clear the error.
- Could be caused by the .dll for the control appearing in multiple locations. For example: the solution is set to compile the code under App_Code instead of Content. It should be content since the ASP.Net runtime will automatically compile it.