i'm trying to publish multimedia content (images) on my server from a C# Template building block. I tried the following : uri2 is the tcmUri of a folder where i want the image to be published on the server and component is the component containing the image. TcmUri uri2 = new TcmUri("tcm:123-3744-2"); StructureGroup sg = new StructureGroup(engine.GetSession(),uri2); string val = engine.PublishingContext.RenderedItem.AddBinary(component, sg).Url; With that code, i get the following error using template builder: > Invalid context Publication specified in URI: New StructureGroup > (parent: tcm:123-3744-2). Expecting: 123. Thanks for your help and advices