Click here to Skip to main content
11,805,035 members (60,202 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 315
1 CPallini 210
2 Richard Deeming 200
3 Sergey Alexandrovich Kryukov 168
4 CHill60 150
0 OriginalGriff 3,255
1 Maciej Los 1,990
2 KrunalRohit 1,907
3 CPallini 1,855
4 Richard MacCutchan 1,227

Advertise | Privacy | Mobile
Web02 | 2.8.151002.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