07 Jul 2010
05 Aug 2011
Link to this post
We're having problems adding user controls to Sitefinity 4.1. We're using the procedure described in: http://www.sitefinity.com/40/help/developers-guide/sitefinity-essentials-controls-adding-controls-to-the-toolbox.html
Here's the process:
1. Added a folder to the Sitefinity site's file structure named UserControls,
2. Copy the control, in its folder named TestControl, to the web site,
3. Use the administration back-end to register information about the control with Sitefinity,
When we drag the control to a page or a template we get this error: Could not load type 'SitfinityWebApp.UserControls.TestControl.TestControl'
In our research we found that this can be caused by an incompletely compiled .Net web site. As a test we downloaded the site to a local workstation, did steps 1 and 2 as described above, then built the project. (CTRL+SHIFT+B) Then we copied the site back to the server and repeated step 3 to register the control. Now the control is available.
Surely this isn't how it's supposed to work.
What are we doing wrong?