Microsoft Speech .dll in webforms application RRS feed

  • Question

  • Hello,

    Two days ago I installed the Microsoft Speech Platform on a Win7 x64.

    I have installed the correct x64 version of all these components:
        Microsoft Speech Platform SDK v11.0
        Microsoft Speech Platform Runtime v11.0

    I have successfully build Winforms application that uses Text to Speech functions (i.e. SpeechSynthesizer class).

    However, when I try to build a website (web forms) or web service application with the same code, the following error appears when executing the constructor of the SpeechSynthesizer class (SpeechSynthesizer synth = new SpeechSynthesizer()):

    System.Runtime.InteropServices.COMException: Retrieving the COM class factory for component with CLSID
    {D941651C-44E6-4C17-BADF-C36826FC3424} failed due to the following error: 80040154.

    Can someone please help me?

    Wednesday, February 13, 2013 10:53 AM


  • 80040154 error is "class not registered".

    This typically happens when the bitness between component and calling code is different. For example, you have a 64-bit version of dll, but your IIS worker (or development web server) is a 32-bit process, or vice versa.

    Wednesday, February 13, 2013 8:19 PM