title: OpenOffice uno.util.Bootstrap.bootstrap() hangs and does not return
body: <p>Windows Server 2003 - IIS 6.0</p>
  
  <p>I have an Asp.Net 4.0 (C#) web application that uses OpenOffice to convert microsoft office documents into PDFs so they could be displayed on the web.</p>
  
  <p>Everything was working fine.</p>
  
  <p>Then I upgraded OpenOffice from 3.2.1 to 3.4.1 on the web server and now it doesn't work.
  The problem occurs on the bootstrapping call. </p>
  
  <pre><code>private static XComponentLoader LoadOO()
  { 
      XComponentContext OO = uno.util.Bootstrap.bootstrap(); // this will either start OOo or Find one that's running. (The code hangs here)
      XMultiServiceFactory oServMan = (XMultiServiceFactory)OO.getServiceManager(); // Get Service Manager
      XComponentLoader aLoader = (XComponentLoader)oServMan.createInstance("com.sun.star.frame.Desktop"); // Get a CompontLoader
      return aLoader;
  }
  </code></pre>
  
  <p>uno.util.Bootstrap.bootstrap(); hangs and doesn't return anything.</p>
  
  <p>The call does start OpenOffice under the Network Service user name, but the call never returns. Every time the method is called it opens another instance of OpenOffice instead of attaching to the already opened instance.</p>
  
  <p>I've tried downgrading to 3.2.1 again, but the same thing happens.</p>
  
  <p>I've tried solution 3 outlined <a href="http://www.codeproject.com/Questions/64686/OpenOFFICE-BOOTSTRAP-PROBLEM" rel="nofollow">here</a> with no success.</p>
  
  <p>I've tried restarting IIS and recycling the application pool and various things having to do with user permissions.  I'm getting no where and need some help.</p>
  
  <p>I was not the person who originally got this working on the web server so don't know if there were any special steps taken.  I have no problem getting it to work on my development machine with either version of OpenOffice.</p>