Click here to Skip to main content
13,195,564 members (63,913 online)
Rate this:
Please Sign up or sign in to vote.
Hi everyone!

Looking for a good TTS system, I discovered the Microsoft Speech SDK, currently at version 11.
So I've downloaded and installed it, and after that the redist pack.

In the SDK there is the Microsoft.Speech.dll, which I've imported in VB.NET and used it as is suggested in the manual.

When I try the app, this exception is thrown:

80040154 Class not registered. (Exception from HRESULT: 0x80040154 (REGDB_E_CLASSNOTREG)).

I tryed so to run Regsvr32.exe and it say "DLL registered", but the error still appearing.

What's wrong?

I'm using Win 7 Home Premium x64 - VB.NET in Visual Studio 2010.
Posted 2-Jun-12 5:12am
Updated 2-Jun-12 6:05am

1 solution

Rate this: bad
Please Sign up or sign in to vote.

Solution 1

Looks like a 32/64 issue.
If you're running a .NET program compiled to 'any processor', it will be jitted into a 64-bit executable at run time (in a 64-bit machine).
It will not be able to load a 32-bit DLL.
Try targeting your program to 32 bits.

Hope this helps,

vijay8529 11-Aug-13 2:21am
I have developed a windows application in Visual studio 2010.....But while executing i am getting error like "class is not registered(exception from hresult)...

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
Top Experts
Last 24hrsThis month

Advertise | Privacy |
Web02 | 2.8.171019.1 | Last Updated 3 Jun 2012
Copyright © CodeProject, 1999-2017
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100