Adding User Control "Could not load type 'Sitefinit

Posted by Community Admin on 03-Aug-2018 19:48

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

All Replies

Posted by Community Admin on 21-Feb-2011 00:00

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...

Posted by Community Admin on 21-Feb-2011 00:00

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

Posted by Community Admin on 21-Feb-2011 00:00

Had to rebuild the solution. Go figure :S  Thanks!

Posted by Community Admin on 22-Feb-2012 00:00

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 

Posted by Community Admin on 08-Aug-2012 00:00

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.

This thread is closed