Tuesday 2 September 2008

Fixing Errors When Using BibOrder

I'm having a quick play with BibOrder for Office 2007 to see if it'll do what I want. Problems overcome so far...

********* Error #1 *********

C:\Documents and Settings\Saffy\Desktop>BibOrder.exe /d:test.docx

Unhandled Exception: System.IO.FileNotFoundException: Could not load file or assembly 'WindowsBase, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its dependencies. The system cannot find the file specified.
File name: 'WindowsBase, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35'
at BibWord.BibOrder.TransformDocument(String docx, String styledir, String stylesheet)
at BibWord.BibOrder.Main(String[] args)

Solution: Install Microsoft .NET Framework 3.0 Redistributable Package

********* Error #2 *********
C:\Documents and Settings\Saffy\Desktop>BibOrder.exe /d:"test.docx"

Unhandled Exception: System.IO.IOException: The process cannot access the file 'C:\Documents and Settings\Saffy\Desktop\test.docx' because it is being used by another process.
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)
at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share, Int32 bufferSize, Boolean useAsync)
at MS.Internal.IO.Zip.ZipArchive.OpenOnFile(String path, FileMode mode, FileAccess access, FileShare share, Boolean streaming)
at System.IO.Packaging.ZipPackage..ctor(String path, FileMode mode, FileAccess access, FileShare share, Boolean streaming)
at System.IO.Packaging.Package.Open(String path, FileMode packageMode, FileAccess packageAccess, FileShare packageShare, Boolean streaming)
at System.IO.Packaging.Package.Open(String path, FileMode packageMode, FileAccess packageAccess)
at BibWord.BibOrder.TransformDocument(String docx, String styledir, String stylesheet)
at BibWord.BibOrder.Main(String[] args)

Solution: Close the file in Office before you try running BibOrder on it.

***

And those not overcome :(

C:\Documents and Settings\Saffy\Desktop>BibOrder.exe /d:"test.docx"

Unhandled Exception: System.Xml.XmlException: Root element is missing.
at System.Xml.XmlTextReaderImpl.Throw(Exception e)
at System.Xml.XmlTextReaderImpl.ThrowWithoutLineInfo(String res)
at System.Xml.XmlTextReaderImpl.ParseDocumentContent()
at System.Xml.XmlTextReaderImpl.Read()
at System.Xml.XmlLoader.Load(XmlDocument doc, XmlReader reader, Boolean preserveWhitespace)
at System.Xml.XmlDocument.Load(XmlReader reader)
at System.Xml.XmlDocument.LoadXml(String xml)
at BibWord.BibOrder.TransformDocument(String docx, String styledir, String stylesheet)
at BibWord.BibOrder.Main(String[] args)

*sigh* - nothing obvious so far :(

1 comment:

LinkWithin

Related Posts Plugin for WordPress, Blogger...