Advertisement

02.11.2008 at 04:02AM PST, ID: 23152722
[x]
Attachment Details
[x]
The Solution Rating System

With so many solutions, how can you tell which solutions are most likely to help you and which ones are not? To provide you with a tool to use, we rate our solutions based on various elements that most accurately determine if a solution is a quality solution. To explain what factors affect the solution rating, here are the elements we take into consideration when formulating our solution rating.

  • The Grade of the Solution
  • The Zone Rank of the Expert Providing the Solution
  • The Number of Author and Expert Comments
  • The Number of Experts Contributing
  • The Feedback of the Community

Your Input Matters
Because of the way the system is set up, the most important variable in this equation is you. As a member of Experts Exchange, you are able to cast your vote on the quality of the solutions in regard to how complete, accurate, helpful and easy to understand each solution is. When you provide your feedback, each rating is adjusted accordingly. So, if you see a solution that has a poor rating that you think is a good solution, let us know by rating it. As you do, the rating will be adjusted and will become more accurate for other members of our site.

If you have any suggestions that you would like to make for our rating system, please ask a question in the Suggestions Zone of Community Support.

Thank you!

Error in COM (SAPI.dll)

Tags: Microsoft, VC#.Net, 2.0, Retrieving the COM class factory for component with CLSID
Hi,

RecognizerObj = new SpInprocRecognizer(); //Error occured here.
stream = new SpCustomStreamClass();
MyASRStream = new ASRStreamClass();

Retrieving the COM class factory for component with CLSID
{41B89B6B-9399-11D2-9623-00C04F8EE628} failed due to the following error:
80040154.

I am using C#.Net 2.0. How to solve this error please help me.

I tried registering using regsvr32 and tlbimp and regasm tools, but nothing
helped me.

please help me.

Regards,
R. Pandiarajan.

Start your free trial to view this solution
Question Stats
Zone: Programming
Question Asked By: godwindotnet
Solution Provided By: kaylanreilor
Participating Experts: 1
Solution Grade: A
Views: 75
Translate:
Loading Advertisement...
02.11.2008 at 04:41AM PST, ID: 20865765

All comments and solutions are available to Premium Service Members only.

Start your 7 day free trial and see for yourself why Experts Exchange is the easiest and most proven technology resource in the world. Get Started

Already a member? Login to view this solution.

 
02.11.2008 at 04:50AM PST, ID: 20865810

All comments and solutions are available to Premium Service Members only.

Start your 7 day free trial and see for yourself why Experts Exchange is the easiest and most proven technology resource in the world. Get Started

Already a member? Login to view this solution.

 
02.11.2008 at 04:58AM PST, ID: 20865853

All comments and solutions are available to Premium Service Members only.

Start your 7 day free trial and see for yourself why Experts Exchange is the easiest and most proven technology resource in the world. Get Started

Already a member? Login to view this solution.

 
02.11.2008 at 05:14AM PST, ID: 20865955

All comments and solutions are available to Premium Service Members only.

Start your 7 day free trial and see for yourself why Experts Exchange is the easiest and most proven technology resource in the world. Get Started

Already a member? Login to view this solution.

 
02.11.2008 at 01:11PM PST, ID: 20870272

All comments and solutions are available to Premium Service Members only.

Start your 7 day free trial and see for yourself why Experts Exchange is the easiest and most proven technology resource in the world. Get Started

Already a member? Login to view this solution.

 
02.12.2008 at 03:13AM PST, ID: 20873889

All comments and solutions are available to Premium Service Members only.

Start your 7 day free trial and see for yourself why Experts Exchange is the easiest and most proven technology resource in the world. Get Started

Already a member? Login to view this solution.

 
02.12.2008 at 04:59AM PST, ID: 20874311

All comments and solutions are available to Premium Service Members only.

Start your 7 day free trial and see for yourself why Experts Exchange is the easiest and most proven technology resource in the world. Get Started

Already a member? Login to view this solution.

 
02.12.2008 at 05:00AM PST, ID: 20874320

All comments and solutions are available to Premium Service Members only.

Start your 7 day free trial and see for yourself why Experts Exchange is the easiest and most proven technology resource in the world. Get Started

Already a member? Login to view this solution.

 
02.12.2008 at 05:17AM PST, ID: 20874418

All comments and solutions are available to Premium Service Members only.

Start your 7 day free trial and see for yourself why Experts Exchange is the easiest and most proven technology resource in the world. Get Started

Already a member? Login to view this solution.

 
02.13.2008 at 01:50AM PST, ID: 20882893

All comments and solutions are available to Premium Service Members only.

Start your 7 day free trial and see for yourself why Experts Exchange is the easiest and most proven technology resource in the world. Get Started

Already a member? Login to view this solution.

 
02.13.2008 at 01:51AM PST, ID: 20882897

All comments and solutions are available to Premium Service Members only.

Start your 7 day free trial and see for yourself why Experts Exchange is the easiest and most proven technology resource in the world. Get Started

Already a member? Login to view this solution.

 
02.13.2008 at 05:35AM PST, ID: 20883974

All comments and solutions are available to Premium Service Members only.

Start your 7 day free trial and see for yourself why Experts Exchange is the easiest and most proven technology resource in the world. Get Started

Already a member? Login to view this solution.

 
02.14.2008 at 11:06PM PST, ID: 20899873

All comments and solutions are available to Premium Service Members only.

Start your 7 day free trial and see for yourself why Experts Exchange is the easiest and most proven technology resource in the world. Get Started

Already a member? Login to view this solution.

 
02.15.2008 at 08:13AM PST, ID: 20903051

All comments and solutions are available to Premium Service Members only.

Start your 7 day free trial and see for yourself why Experts Exchange is the easiest and most proven technology resource in the world. Get Started

Already a member? Login to view this solution.

 
02.19.2008 at 10:18PM PST, ID: 20935497

All comments and solutions are available to Premium Service Members only.

Start your 7 day free trial and see for yourself why Experts Exchange is the easiest and most proven technology resource in the world. Get Started

Already a member? Login to view this solution.

 
 
Loading Advertisement...
Microsoft
  • Internet Protocols
  • Applications
  • Development
  • OS
  • Hardware
  • Windows Security
Apple
  • Operating Systems
  • Hardware
  • Programming
  • Networking
  • Software
Internet
  • Search Engines
  • File Sharing
  • WebTrends / Stats
  • Spy / Ad Blockers
  • Web Browsers
  • New Net Users
  • Web Development
  • Chat / IM
  • Anti Spam
  • Web Servers
  • Anti-Virus
  • Email Clients
Gamers
  • Tips
  • Online / MMORPG
  • Puzzle
  • Emulators
  • Action / Adventure
  • Role Playing
  • Consoles
  • Game Programming
  • Strategy
  • Sports
  • Misc
  • Computer Games
Digital Living
  • Hardware
  • New Net Users
  • New Users
  • Software
  • Digital Music
  • Gaming World
  • Home Security
  • Apple
  • Networking Hardware
Virus & Spyware
  • Vulnerabilities
  • IDS
  • Encryption
  • Anti-Virus
  • Operating Systems Security
  • Software Firewalls
  • WebApplications
  • Cell Phones
  • Operating Systems
  • Internet
  • Hardware Firewalls
Hardware
  • Handhelds / PDAs
  • Displays / Monitors
  • Components
  • Networking Hardware
  • Peripherals
  • Laptops/Notebooks
  • Storage
  • Servers
  • Desktops
  • New Users
  • Misc
  • Apple
Software
  • System Utilities
  • Industry Specific
  • Network Management
  • Photos / Graphics
  • Page Layout
  • VMWare
  • Misc
  • Web Development
  • OS
  • CYGWIN
  • Voice Recognition
  • Message Queue
  • Quality Assurance
  • Security
  • Firewalls
  • MultiMedia Applications
  • Development
  • Database
  • Office / Productivity
  • Business Management
  • OS/2 Apps
  • Server Software
  • Internet / Email
ITPro
  • OS
  • Storage
  • Encryption
  • Operating Systems Security
  • Apple Hardware
  • Laptops & Notebooks
  • Servers
  • Networking Hardware
  • Peripherals
  • Devices
  • Displays / Monitors
  • WebTrends / Stats
  • Search Engines
  • Firewalls
  • WebApplications
  • IDS
  • Vulnerabilities
  • Email Clients
  • File Sharing
  • Spy / Ad Blockers
  • Web Browsers
  • Web Servers
  • Networking
  • Anti-Virus
  • Chat / IM
  • Anti Spam
Developer
  • Web Servers
  • Web Browsers
  • Game Programming
  • Dev Tools
  • Industry Specific
  • Office / Productivity
  • Database
  • CYGWIN
  • Web Development
  • Search Engines
  • File Sharing
  • WebTrends / Stats
  • Programming
  • Content Management
  • Application Servers
  • Protocols
Storage
  • Removable Backup Media
  • Storage Technology
  • Servers
  • Grid
  • Remote Access
  • Backup / Restore
  • Misc
  • Hard Drives
OS
  • Miscellaneous
  • Security
  • Development
  • Linux
  • VMWare
  • MainFrame OS
  • Unix
  • Apple
  • OS / 2
  • AS / 400
  • BeOS
  • Microsoft
  • VMS / OpenVMS
Database
  • Oracle
  • Miscellaneous
  • MySQL
  • Software
  • Sybase
  • Contact Management
  • PostgreSQL
  • Data Manipulation
  • Clarion
  • InterSystems Cache
  • Siebel
  • MUMPS
  • OLAP
  • SQLBase
  • SAS
  • GIS & GPS
  • 4GL
  • Berkeley DB
  • DB2
  • Informix
  • Interbase / Firebird
  • FoxPro
  • Reporting
  • LDAP
  • Filemaker Pro
  • MS SQL Server
  • dBase
  • MS Access
Security
  • Misc
  • Web Browsers
  • Software Firewalls
  • Operating Systems Security
  • File Sharing
  • Spy / Ad Blockers
  • Vulnerabilities
  • WebApplications
  • IDS
  • Anti-Virus
  • Encryption
  • Anti Spam
  • Email Clients
  • VPN
  • Chat / IM
Programming
  • Editors IDEs
  • Installation
  • Handhelds / PDAs
  • Multimedia Programming
  • System / Kernel
  • Algorithms
  • Game
  • Signal Processing
  • Project Management
  • Open Source
  • Database
  • Misc
  • Languages
  • Processor Platforms
  • Theory
Web Development
  • Scripting
  • Blogs
  • Web Servers
  • Software
  • Search Engines
  • Web Graphics
  • Images
  • Internet Marketing
  • Images and Photos
  • Components
  • Document Imaging
  • Web Languages/Standards
  • Illustration
  • WebApplications
  • Fonts
  • WebTrends / Stats
  • Authoring
  • Digital Camera Software
  • Miscellaneous
Networking
  • Protocols
  • Apple Networking
  • Network Management
  • Message Queue
  • Application Servers
  • Content Management
  • File Servers
  • Email Servers
  • Misc
  • Java Editors & IDEs
  • Wireless
  • Networking Hardware
  • Backup / Restore
  • System Utilities
  • ISPs & Hosting
  • Web Servers
  • Storage Technology
  • Removable Backup Media
  • Servers
  • Broadband
  • Grid
  • OS / 2
  • Novell Netware
  • Unix Networking
  • Windows Networking
  • Security
  • Telecommunications
  • Operating Systems
  • Linux Networking
Other
  • Community Advisor
  • Lounge
  • Community Support
  • New Net Users
  • Philosophy / Religion
  • Math / Science
  • Miscellaneous
  • URLs
  • Expert Lounge
  • Politics
  • Puzzles / Riddles
Community Support
  • Suggestions
  • New to EE
  • New Topics
  • Community Advisor
  • CleanUp
  • Announcements
  • General
  • Feedback
  • Input
  • EE Bugs
 
02.11.2008 at 04:41AM PST, ID: 20865765
The error means that the class is not registered, so when you use regsvr32 what is the message ?
 
02.11.2008 at 04:50AM PST, ID: 20865810
I suppose that when you use tlbimp you write something like this:
tlbimp sapi.dll /out:NETSapi.dll
And then in your .Net project you add a reference on NETSapi.dll ?
 
02.11.2008 at 04:58AM PST, ID: 20865853
Hi thanks for your quick response.

I got this message. When I register the com component regsvr32 sapi.dll
"DllRegisterServer in sapi.dll succeeded." appears at messagebox.
I tried your second suggestion also.
TlbImp sapi.dll /out:speechlib.dll ,
but that also not worked for me. Somebody is telling that I should register as DCOM object I tried that by dcomcnfg tool but I don't know how register as DCOM object. And also I tried installing as COM+ service in dcomcnfg tool.
Please tell help me out.
 
02.11.2008 at 05:14AM PST, ID: 20865955
You have to register it if it is supposed to be used from another machine.

I just realize that you don't need any Type Library Importer tool because SpeechLib.dll should already exist on your machine.

If I add a reference on SpeechLib.dll and I do something like the following, it works for me :
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
13:
14:
15:
16:
17:
18:
using SpeechLib;
 
namespace UseAxImp
{
    public partial class SampleControl : Form
    {
        public SampleControl()
        {
            InitializeComponent();
        }
 
        private void SampleControl_Load(object sender, EventArgs e)
        {
            SpeechLib.SpInprocRecognizer rec = new SpInprocRecognizer();
            SpeechLib.SpCustomStreamClass sp = new SpCustomStreamClass();
        }
    }
}
Open in New Window
 
02.11.2008 at 01:11PM PST, ID: 20870272
Just a small correction:
"You have to register it if it is supposed to be used from another machine." => I meant registering AS DCOM OBJECT.
 
02.12.2008 at 03:13AM PST, ID: 20873889
Hi,
No I don't find any dll speechLib.dll in my system.
I know normal regsv32 registration, How do I register as DCOM object?
Thanks,
R. Pandiarajan.
 
02.12.2008 at 04:59AM PST, ID: 20874311
Open Visual Studio 2005 Command Prompt. Navigate to where sapi.dll is located.
Then execute this line:
tlbimp sapi.dll

=> tell me what's happen but the principal result is that the last line displayed should be "Type Library imported to SpeechLib.dll"
 
02.12.2008 at 05:00AM PST, ID: 20874320
I don't understand why your interested in DCOM.  Is the sapi.dll supposed to used on another machine ?
 
02.12.2008 at 05:17AM PST, ID: 20874418
Lauch OleView. In Object Classes expand "All Objects". Look for the object you want to set its properties. I've taken the example of SpCustomStreamClass.
Check the box "Use Surrogate Process" => will allowed this object to be instanciated from another process and this will be loaded in dllhost.

But really, I still don't understand why you want to register anything as a "DCOM" object.
 
How I set the "Use Surrogate Process" option on a COM object
How I set the "Use Surrogate Process" option on a COM object
 
Accepted Solution
 
02.13.2008 at 01:50AM PST, ID: 20882893
Hi,
When I click the class, Its showing "Unsupported operation was attempted". Whatever the concept it is I am needing to run the component. I am stick to DCOM.

I installed sapi via "C:\WINDOWS\inf\sapi5.inf" but now it shows different errors.

Creating an instance of the COM component with CLSID {3BEE4890-4FE9-4A37-8C1E-5E7E12791C1F} from the IClassFactory failed due to the following error: 80004027.

Thanks Again Please help me.
1:
2:
3:
4:
RecognizerObj = new SpSharedRecognizer(); // error occurs here.
            stream = new SpCustomStreamClass();
            MyASRStream = new ASRStreamClass();
            objRecoContext = new SpSharedRecoContext();
Open in New Window
 
02.13.2008 at 01:51AM PST, ID: 20882897
>> I am stick to DCOM.
Sorry I am not stick to DCOM, whatever the concept it is What I need is a solution.
 
02.13.2008 at 05:35AM PST, ID: 20883974
Your error means : The Component or application containing the component has been disabled.
I don't know what happenned on your machine but I would like to talk about this later if needed.

But anyway, did you exactly do what I've said in my post #20874311 ?
Open Visual Studio 2005 Command Prompt. Navigate to where sapi.dll is located.
Then execute this line:
tlbimp sapi.dll
=> tell me what's happen but the principal result is that the last line displayed should be "Type Library imported to SpeechLib.dll"

If you have a SpeechLib.dll generated on your machine you can then go back to the post #20865955.
 
02.14.2008 at 11:06PM PST, ID: 20899873
Hi,
How can I get 20874311  post and 20865955 posts. I searched in experts-exchange it shows my current post only. Please Help me.

Regards,
R. Pandiarajan.
 
02.15.2008 at 08:13AM PST, ID: 20903051
This is in THIS discussion, just above. I wrote :
Open Visual Studio 2005 Command Prompt. Navigate to where sapi.dll is located.
Then execute this line:
tlbimp sapi.dll
=> tell me what's happen but the principal result is that the last line displayed should be "Type Library imported to SpeechLib.dll"

Please, for the third time, just do that and tell me if you got the newly created SpeechLib.dll.

If yes, do what I post in #20865955 (in THIS thread) four days ago.
 
02.19.2008 at 10:18PM PST, ID: 20935497
Thanks for response.
I tried by using tlbimp that didn't help me. Again the same problem. Actually I  formatted and reinstalled everything , now it is working.  I installed DirectX SDK, Platform SDK and then Speech SDK. That fixes this problem, But I don't know how it is working...!

Regards,
R. Pandiarajan.
 
 
20080236-EE-VQP-29 / EE_QW_2_20070628