Created attachment 120494 [details] The sample project. Using C# and visual studio 2013 to convert office files to PDF. Trying to create an object of service manager to use it later to convert office files to PDF. When execute these lines of code var oServiceManagerType = Type.GetTypeFromProgID("com.sun.star.ServiceManager", true); var oServiceManager = Activator.CreateInstance(oServiceManagerType); But i got this exception: COMException was caught. Creating an instance of the COM component with CLSID {82154420-0FBF-11D4-8313-005004526AB4} from the IClassFactory failed due to the following error: 80010105 The server threw an exception. (Exception from HRESULT: 0x80010105 (RPC_E_SERVERFAULT)). Stack Trace: at System.RuntimeTypeHandle.CreateInstance(RuntimeType type, Boolean publicOnly, Boolean noCheck, Boolean& canBeCached, RuntimeMethodHandleInternal& ctor, Boolean& bNeedSecurityCheck) at System.RuntimeType.CreateInstanceSlow(Boolean publicOnly, Boolean skipCheckThis, Boolean fillCache, StackCrawlMark& stackMark) at System.RuntimeType.CreateInstanceDefaultCtor(Boolean publicOnly, Boolean skipCheckThis, Boolean fillCache, StackCrawlMark& stackMark) at System.Activator.CreateInstance(Type type, Boolean nonPublic) at System.Activator.CreateInstance(Type type) at DocumentViewer.LiberOfficeManager.OfficeToPdf.ConvertToPdf(String filePath, String& outputfile) in d:\TestApps\DocumentViewer\LiberOfficeManager\OfficeToPdf.cs:line 34
i need to mention this too. bug happens with 64 bit processor and 64 bit LibreOffice. it doesn't happen with 64 bit processor and 32 bit LibreOffice.
Can you provide the steps to reproduce it?
(In reply to DavidO from comment #2) > Can you provide the steps to reproduce it? System Requirements: - Windows 8.1 x64 - LiberOffice 5.0.2.2 x64 run the project in the attachment. u will get the error.
** Please read this message in its entirety before responding ** To make sure we're focusing on the bugs that affect our users today, LibreOffice QA is asking bug reporters and confirmers to retest open, confirmed bugs which have not been touched for over a year. There have been thousands of bug fixes and commits since anyone checked on this bug report. During that time, it's possible that the bug has been fixed, or the details of the problem have changed. We'd really appreciate your help in getting confirmation that the bug is still present. If you have time, please do the following: Test to see if the bug is still present on a currently supported version of LibreOffice (5.1.6 or 5.2.3 https://www.libreoffice.org/download/ If the bug is present, please leave a comment that includes the version of LibreOffice and your operating system, and any changes you see in the bug behavior If the bug is NOT present, please set the bug's Status field to RESOLVED-WORKSFORME and leave a short comment that includes your version of LibreOffice and Operating System Please DO NOT Update the version field Reply via email (please reply directly on the bug tracker) Set the bug's Status field to RESOLVED - FIXED (this status has a particular meaning that is not appropriate in this case) If you want to do more to help you can test to see if your issue is a REGRESSION. To do so: 1. Download and install oldest version of LibreOffice (usually 3.3 unless your bug pertains to a feature added after 3.3) http://downloadarchive.documentfoundation.org/libreoffice/old/ 2. Test your bug 3. Leave a comment with your results. 4a. If the bug was present with 3.3 - set version to "inherited from OOo"; 4b. If the bug was not present in 3.3 - add "regression" to keyword Feel free to come ask questions or to say hello in our QA chat: http://webchat.freenode.net/?channels=libreoffice-qa Thank you for helping us make LibreOffice even better for everyone! Warm Regards, QA Team MassPing-UntouchedBug-20170103
I'm trying to reproduce it on my home made build with 2017 RC 64bit. After installing the LO including ActiveX bits, and runnig the project attachede to this issue, this line is already failing here: var oServiceManagerType = Type.GetTypeFromProgID("com.sun.star.ServiceManager", true); with this exception: + exception {"Ungültige Klassenzeichenfolge (Ausnahme von HRESULT: 0x800401F3 (CO_E_CLASSSTRING))"} System.Exception {System.Runtime.InteropServices.COMException}
(In reply to DavidO from comment #5) > I'm trying to reproduce it on my home made build with 2017 RC 64bit. > > After installing the LO including ActiveX bits, and runnig the project > attachede to this issue, this line is already failing here: > > var oServiceManagerType = > Type.GetTypeFromProgID("com.sun.star.ServiceManager", true); > Turns out it doesn't hurt to pass WRITE_REGISTRY=1 to the installer: msiexec /i LibreOfficeDev_5.4.0.0.alpha0_Win_x64.msi WRITE_REGISTRY=1 /L*v install.log After re-installing with the command above and building the attached project in 64 bit mode, it works here as expected: ODT file can be comverted to PDF without any issue. I can open the result PDF just fine.