With the following code: static void Main() { try { var context = uno.util.Bootstrap.bootstrap(); } catch (Exception ex) { Console.WriteLine(ex.toString()); } } I can start Writer of LibreOffice. This works fine with Version 4.4.4 but after installing version 5 and with new SDK, Bootstrap.bootstrap() throws the exception: "External component has thrown an exception" Has anyone faced the same problem or some solution? (.NET 4.0, Windows 7 64-bit, LibreOffice 5.0 Lite) Stack Trace System.Runtime.InteropServices.SEHException (0x80004005): Eine externe Komponente hat eine Ausnahme ausgelöst. bei cppu.bootstrap(Reference<com::sun::star::uno::XComponentContext>* ) bei uno.util.Bootstrap.bootstrap()
I have tried to set UNO_PATH to LibreOffice 5 folder but still it won't work.
Can confirm this bug also -- these problems with .NET are really a product add-on stopper. Even with 5.0.2.2 it is not working - this happens with all new versions (4.x in the beginning had also these problems).
(In reply to marten from comment #2) > Can confirm this bug also -- these problems with .NET are really a product > add-on stopper. > > Even with 5.0.2.2 it is not working - this happens with all new versions > (4.x in the beginning had also these problems). Here I have Windows 8.1 (64 Bit) with .NET 4.x ... the latest version working here is 4.4.5
'Version' field should indicate the earliest affected release.
Seems a duplicate bug of https://bugs.documentfoundation.org//show_bug.cgi?id=94265 Right?
I can confirm that the bug is present on version Fresh 5.0.4.2 Fresh and that this is a duplicate of https://bugs.documentfoundation.org//show_bug.cgi?id=94265 I've found a workaround adding C:\Program Files (x86)\LibreOffice 5\program to PATH environment variable or by setting it via code in this way Environment.SetEnvironmentVariable("PATH", Environment.GetEnvironmentVariable("PATH") + @";" + unoPath, EnvironmentVariableTarget.Process); Ref: http://stackoverflow.com/questions/31856025/bootstrap-uno-api-libreoffice-exception P.S.: UNO_PATH variable seems useless. *** This bug has been marked as a duplicate of bug 94265 ***