'How to fix Error : Entries cannot be opened multiple times in Update mode. at PresentationBuilder.BuildPresentation OpenXmlPowerTool

I try to build my presentation with ( PresentationBuilder.BuildPresentation) but got Error : "Entries cannot be opened multiple times in Update mode".

        try
        {
            PresentationBuilder.BuildPresentation(slides.ToList(), outputFile) ;
        }catch (Exception ex)
        {
            Console.WriteLine(ex.Message);
        }


Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source