It looks like I come across a bug on Tridion API's, while working on DotNet Templating using Tridion 2011 SP1.
ICollection<PublishInfo> publishInfos = PublishEngine.GetPublishInfo(mIdentifiableObject);
GetPublishInfo for Component Template, method returns
PublishInfo has properties like
RenderedWith returns of type
When we execute
RenderedWith property will have
Component as value (which is correct).
RenderedWith supports only of type
Due to this, we get error as
Unable to cast object of type 'Tridion.ContentManager.ContentManagement.Component' to type 'Tridion.ContentManager.CommunicationManagement.Template'
Now my question is,
Is anyone come across with this problem. If so, how you fixed?