Nick Swan's SharePoint Blog

a day in the life of a Sharepoint and .NET guy!

My Links

News




Post Categories

Archives

Blog Stats

Blogroll

Books

VB-tech website

VB-tech work

Xbox

The base class includes the field 'WebUserControl1', but its type (common_WebUserControl) is not compatible with the type of control (ASP.common_webusercontrol_ascx)

Annoying problem of the day sorted. Was doing a little bit of work on a project today. I don’t know whether it was upgraded from ASP.NET 1.1 to 2.0 but either way I was getting this annoying error:

The base class includes the field 'WebUserControl1', but its type (common_WebUserControl) is not compatible with the type of control (ASP.common_webusercontrol_ascx)

Turns out the CodeFile attribute in the top line of the usercontrol html (ascx) file should now be CodeBehind.

Strange thing is I’m pretty sure this project wasn’t originally in ASP.NET 1.1!

posted on Wednesday, June 07, 2006 9:05 PM

Get email alerts when this blog is updated!

Feedback

# re: The base class includes the field 'WebUserControl1', but its type (common_WebUserControl) is not compatible with the type of control (ASP.common_webusercontrol_ascx) 10/18/2006 2:56 PM Jeremy

WOW! I can only imagine I might have one day stumbled onto this solution randomly... thank you, thank you, thank you for saving me pointless hours and days of frustration!!

Title  
Name  
Url
Comments - All Comments are moderated and will not be displayed until approved by this blog's author    
Enter the code you see: