Skip to content

ConvertFromEpub chokes at 3104 #22

@fraserbennett

Description

@fraserbennett

Running RoseGarden convert on a single local epub file produces an error at line 3104 of RoseGarden.ConvertFromEpub -- specifically, when attempting to extract the META-INF directory.

System configuration:

OS: Windows 11
.NET 4.8
Visual Studio 2022 (Community)

Stack trace:

System.IO.DirectoryNotFoundException
HResult=0x80070003
Message=Could not find a part of the path 'C:\Users\FraserBennett\AppData\Local\Temp\SIL\RoseGarden\EPUB\META-INF'.
Source=mscorlib
StackTrace:
at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
at System.IO.FileStream.Init(String path, FileMode mode, FileAccess access, Int32 rights, Boolean useRights, FileShare share, Int32 bufferSize, FileOptions options, SECURITY_ATTRIBUTES secAttrs, String msgPath, Boolean bFromProxy, Boolean useLongPath, Boolean checkHost)
at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share, Int32 bufferSize, FileOptions options, String msgPath, Boolean bFromProxy)
at System.IO.FileStream..ctor(String path, FileMode mode)
at RoseGarden.ConvertFromEpub.ExtractZippedFiles(String zipFile, String unzipFolder) in C:\Users\FraserBennett\Source\Repos\RoseGarden\src\RoseGarden\ConvertFromEpub.cs:line 3104
at RoseGarden.ConvertFromEpub.InitializeData() in C:\Users\FraserBennett\Source\Repos\RoseGarden\src\RoseGarden\ConvertFromEpub.cs:line 352
at RoseGarden.ConvertFromEpub.RunConvert() in C:\Users\FraserBennett\Source\Repos\RoseGarden\src\RoseGarden\ConvertFromEpub.cs:line 111

This exception was originally thrown at this call stack:
System.IO.__Error.WinIOError(int, string)
System.IO.FileStream.Init(string, System.IO.FileMode, System.IO.FileAccess, int, bool, System.IO.FileShare, int, System.IO.FileOptions, Microsoft.Win32.Win32Native.SECURITY_ATTRIBUTES, string, bool, bool, bool)
System.IO.FileStream.FileStream(string, System.IO.FileMode, System.IO.FileAccess, System.IO.FileShare, int, System.IO.FileOptions, string, bool)
System.IO.FileStream.FileStream(string, System.IO.FileMode)
RoseGarden.ConvertFromEpub.ExtractZippedFiles(string, string) in ConvertFromEpub.cs
RoseGarden.ConvertFromEpub.InitializeData() in ConvertFromEpub.cs
RoseGarden.ConvertFromEpub.RunConvert() in ConvertFromEpub.cs

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions