Exception: The predecessors of a summary task must have a finish-to-start or start-to-start dependency (C# .NET)

I am getting this error:
Aspose.Tasks.TasksException: The predecessors of a summary task must have a finish-to-start or start-to-start dependency.

Is there a way to turn off this type of check and allow any type of predecessor relationship - if not what are the “rules” imposed around predecessor relationships?

@mallain2323

Can you please share source file along with complete working sample code so that we may further investigate to help you out.