Prep the vegetables: Chop the onions, green bell peppers, and celery. Mince the garlic and set everything aside in separate bowls, ready to add in order.
Season the seafood: Season the shrimp, crabmeat, and oysters with 1 tablespoon of the seasoning mix. Set the seafood aside in the refrigerator while you build the base.
Simmer the stock and vegetables: Melt the margarine in a large pot or Dutch oven over medium heat. Add the onions, bell peppers, celery, and garlic and cook for 5 minutes, stirring often. Pour in the seafood stock and water and bring to a gentle simmer.
Stir in the tomato sauce and seasoning: Add the tomato sauce, the remaining seasoning mix, sugar, and salt. Simmer gently for 10 minutes, stirring now and then, until the flavors blend.
Thicken with file powder: Remove the pot from the heat and stir in the file powder. Do not boil the gumbo after adding file, or it can turn stringy.
Finish the seafood: Return the pot to low heat and add the shrimp, crabmeat, and oysters with their liquor. Cook gently for 5 to 7 minutes, until the shrimp turn pink and the oysters curl at the edges. Do not overcook.
Cook the rice: While the gumbo simmers, cook the white rice according to the package directions and keep it warm.
Serve: Spoon rice into warm bowls and ladle the hot gumbo over it. Sprinkle with chopped green onions and serve right away.