0 Replies Latest reply on Mar 16, 2010 9:24 AM by ab8140

    Opening web help from asp.net app...


      I am trying to open my web help file from an asp.net app in the code behind...


      I make the following call in a button click event...



      CSH_API x = new RoboHelpAPI.CSH_API();


      @"C:\Falcon Help\!SSL!\WebHelp\Falcon_Help.htm", RoboHelpAPI.OptionConstants.CSH_DISPLAY_INDEX, "0");



      However an exception is thrown of...


      ActiveX control '8856f961-340a-11d0-a96b-00c04fd705a2' cannot be instantiated because the current thread is not in a single-threaded apartment.



      Also when debugging it is dying in this method in the ROBOHELP_CSH.cs file...




      private bool ShowHelpURL(string strURL)



      WebBrowser m_browser = new WebBrowser();


      if (m_browser != null)



      m_browser.Visible =



      return true;



      return false;




      Any thoughts???