Error: Controltemplate not found in ~/_controltemplates/


Error: Controltemplate not found in ~/_controltemplates/<name_of_usercontrol.ascx>:  frustrating error !!!

When creating a SharePoint Control with a ControlSrc pointing to a user control, you might get an error in the ULS log saying that the control cannot be found in ~/_controltemplates/<name_of_usercontrol.ascx although the file exists in the correct directory. This happens when using SharePoint 2013 and forget to add the correct SharePoint version to the path. In our case this should be

~/_controltemplates/15/<name_of_usercontrol.ascx

there u go !! problem solved ! u’re welcome 😉

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s