Click here to Skip to main content
Rate this: bad
good
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 6:12am
forno340
Edited 2-Jun-12 7:05am
v2

1 solution

Rate this: bad
good
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,
 
Pablo.
  Permalink  
Comments
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 7,903
1 Sergey Alexandrovich Kryukov 7,127
2 DamithSL 5,604
3 Manas Bhardwaj 4,986
4 Maciej Los 4,820


Advertise | Privacy | Mobile
Web03 | 2.8.1411023.1 | Last Updated 3 Jun 2012
Copyright © CodeProject, 1999-2014
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