I have an issue with custom action in SharePoint 2007, basically i have the following custom action declaration:
<Elements Id="CF60B88A-783A-44f8-A49D-43659AB51G7E" xmlns="http://schemas.microsoft.com/sharepoint/">
<CustomAction Id="MyAction.GoToGoogle"
GroupId="ActionsMenu"
Location="Microsoft.SharePoint.StandardMenu"
RegistrationType="List"
Rights="Read"
Sequence="0"
Title="Go to google"
ControlAssembly="MyProject, Version=1.0.0.0, Culture=neutral, PublicKeyToken=cd112ea8ee9f48d3"
ControlClass="MyProject.CustomActions.MyCustomAction">
<UrlAction Url="http://www.google.be"/>
</CustomAction>
</Elements>
So basically this custom action is bind to a custom class, but as i said already my action doesn't appear at all, if i delete the control class and control assambly then it is wel visible.
Maybe my delcaration is wrong? Anyone can point me to a mistake?
UPDATE:
Here is the class
namespace MyProject.CustomAction
{
public class MyCustomAction : WebControl
{
protected override void OnLoad(EventArgs e)
{
base.OnLoad(e);
}
protected override void CreateChildControls()
{
base.CreateChildControls();
}
}
}
}
