This project has moved. For the latest updates, please go here.

Error with System.IO.Packaging on Mono 3.3

Oct 31, 2013 at 6:51 PM
Edited Oct 31, 2013 at 8:05 PM
When trying to load a document, I get this error:
System.Uri.Parse (kind=System.UriKind.Relative, uriString="http://lunarline.com") in C:\cygwin\sources\mono\mcs\class\System\System\Uri.cs:1344
System.Uri.ParseUri (kind=System.UriKind.Relative) in C:\cygwin\sources\mono\mcs\class\System\System\Uri.cs:1206
System.Uri..ctor (uriString="http://lunarline.com", uriKind=System.UriKind.Relative) in C:\cygwin\sources\mono\mcs\class\System\System\Uri.cs:152
System.IO.Packaging.PackagePart.LoadRelationships (relationships=Count=5, stream={System.IO.Packaging.ZipPartStream}) in C:\cygwin\sources\mono\mcs\class\WindowsBase\System.IO.Packaging\PackagePart.cs:168
System.IO.Packaging.PackagePart.get_Relationships () in C:\cygwin\sources\mono\mcs\class\WindowsBase\System.IO.Packaging\PackagePart.cs:50
System.IO.Packaging.PackagePart.GetRelationships () in C:\cygwin\sources\mono\mcs\class\WindowsBase\System.IO.Packaging\PackagePart.cs:192
Novacode.DocX.PopulateDocument (document={Novacode.DocX}, package={System.IO.Packaging.ZipPackage}) in 
Novacode.DocX.PostLoad (package={System.IO.Packaging.ZipPackage}) in 
Novacode.DocX.Load (filename="sar.docx")
The document in question contains a link to http://lunarline.com.
(https://dl.dropboxusercontent.com/u/103972/docx/sar.docx)

I tried to remove the link from the document, and the exception was not thrown anymore.
(https://dl.dropboxusercontent.com/u/103972/docx/sar-nolink.docx)
However, the output file seems truncated.
(https://dl.dropboxusercontent.com/u/103972/docx/output.docx)
All I did was
Docx doc = DocX.Load("input.docx");
doc.SaveAs("output.docx");