Click here to Skip to main content
11,701,616 members (68,545 online)
Rate this: bad
Please Sign up or sign in to vote.
See more: COM DLL Errors Microsoft
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
Edited 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 at 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
0 OriginalGriff 324
1 Maciej Los 275
2 Sergey Alexandrovich Kryukov 250
3 Mika Wendelius 189
4 CHill60 110
0 OriginalGriff 8,274
1 Sergey Alexandrovich Kryukov 7,317
2 CPallini 4,912
3 Maciej Los 4,146
4 Mika Wendelius 3,556

Advertise | Privacy | Mobile
Web01 | 2.8.150819.1 | Last Updated 3 Jun 2012
Copyright © CodeProject, 1999-2015
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