Adding User Control "Could not load type 'SitefinityWebApp.Controls.xxx'" - General Discussions - General Discussions - Progress Community

Adding User Control "Could not load type 'SitefinityWebApp.Controls.xxx'"

 General Discussions

Adding User Control "Could not load type 'SitefinityWebApp.Controls.xxx'"

  • Adding User Control "Could not load type 'SitefinityWebApp.Controls.xxx'"
  • I followed the instructions in the documentation word for word, and when I drag the control from the side bar to the page content editor, the error: "Could not load type 'SitefinityWebApp.Controls.xxx'" pops up.
    The user control is blank except for text, no extra logic -> created in visual studio, added text, that's it....
    ? Am I missing something, do I have to use a different base class than System.Web.UI.UserControl, or add some reference to the project? Totally lost one why this is happening when I followed the doc...
  • Hello Chris,

    Most probably the control has not been registered properly or you have not build the application after the changes you made.

    Regards,
    Ivan Dimitrov
    the Telerik team
  • Had to rebuild the solution. Go figure :S  Thanks!
  • use CodeFile='abc.ascx.cs' instead of CodeBehind='abc.ascx.cs' this will compile the file as it loads it
    http://stackoverflow.com/questions/73022/codefile-vs-codebehind 
  • Thanks Ofir.  I am adding my control to a live site and can't build the solution. Was banging my head on this. Thanks again for the real world solution.