Custom control of SharePoint fields: Media Player
I am trying to implement a custom Media Player control described in this MSDN article: http://msdn.microsoft.com/en-us/library/aa981226.aspx
I created my own site column (Link type) in a custom content type and followed all the steps to deploy the solution to SharePoint and added the control to the page layout.
However, when I create a page based on a page layout that uses this field control, nothing appears in either edit mode or page view.
I dug in the SharePoint logs and during page load I see the following error in ULS:
The "MediaPlayerFieldControl" control template does not exist.
If you implemented this control, did you need to implement anything other than what is the details of the article? Obviously I don't need the ASCX here because the control is handled by the media player.
thank
source to share
Found it out ...
I first added the SafeControl entry manually to my web.config and for some reason it didn't work. I now include it in manifest.xml like this:
<Assembly DeploymentTarget="GlobalAssemblyCache" Location="MyControlAssembly.dll">
<SafeControls>
<SafeControl Assembly="MyControlAssembly, Version=1.0.0.0, Culture=neutral, PublicKeyToken=07085c2a3fb711ee" Namespace="MyControlAssembly" TypeName="*" Safe="True" />
</SafeControls>
</Assembly>
Don't know what the difference is, but it did the trick
source to share