Free Support Forum - groupdocs.com

.doc - Unknown protection type

If I compare any .doc file, it always ends with an “Unknown protection type” error. DocX is fine.

[InvalidOperationException: Unknown protection type.]
.(Object ) +33
.() +42
.(Object , UInt32 ) +400
. (Boolean ) +170
.(Object[] , Type[] , Type[] , Object[] ) +364
.VisitDocumentStart(Document ) +105
Aspose.Words.Document.r3ka8zscesabkstb24kjjv9sml9wq7pw (DocumentVisitor ) +12
Aspose.Words.CompositeNode.AcceptCore(DocumentVisitor visitor) +19
Aspose.Words.Document.Accept(DocumentVisitor visitor) +5
.( ) +666
.() +269
Aspose.Words.Document.UpdatePageLayout() +104
…ctor(Document ) +93
GroupDocs.Comparison.Comparer.(Document , Document , CompareOptions , SaveOptions , ) +160
GroupDocs.Comparison.Comparer.Compare(Stream document, SaveOptions saveOptions, CompareOptions compareOptions) +690
GroupDocs.Comparison.Comparer.Compare(String filePath) +195

@sychra

We cannot reproduce this issue using sample DOC files and API version 20.5. Have a look at the source, target and output files - sample files.zip (12.6 KB).
Please share following details and we’ll investigate your issue:

  • Sample comparison code
  • Problematic files
  • API version (e.g. 19.10, 20.5) that you used for the comparison

I found a problem, one of the files is locked for writing.

1 Like

@sychra

Alright.