New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
System.IO.IOException: 'Entries cannot be opened multiple times in Update mode.' #24962
Comments
I have the same issue. After investigation I have found the problem. It seems, that in .net core the implementation of the |
/cc @ianhays @ViktorHofer this is more related to compression. |
@pjanotti this should go to the System.IO.Packaging owner(s) or to System.Xml.XmlTextWriter, per the debugging notes from @Luciferius /cc @krwq |
@Luciferius the code for @joshfree |
@pjanotti My fault. It was only a guess, that this is the root cause. I did not check with the sources. The cause you found seems logical too. |
Including callstacks for future reference
@pjanotti yes, this should get routed to the System.IO.Packaging owner to investigate why Flush was changed as part of the original port-to-core; |
@bartonjs could you load balance this one please? thanks |
The change in PartBasedPackageProperties.Flush() looks correct. If you trace backward far enough you find that Package._isStreaming was always false. So the other branch wasn't executed. Still looking for the divergent behavior. |
I am moving an application from .net to core. When I run core version I got System.IO.IOException: 'Entries cannot be opened multiple times in Update mode.'
I use System.IO.Packaging library to create packages.
Here is the AddProperties function:
After this I call the AddCoreAndHash function:
I get error while accessing the stream of corePart.
I have attached sample files to reproduce the issue
Files.zip
The text was updated successfully, but these errors were encountered: