Click here to Skip to main content
15,892,072 members
Home / Discussions / C#
   

C#

 
AnswerRe: registry handling Pin
JacquesDP21-Aug-06 22:44
JacquesDP21-Aug-06 22:44 
QuestionApplication.CurrentCulture Pin
M Riaz Bashir21-Aug-06 20:36
M Riaz Bashir21-Aug-06 20:36 
AnswerRe: Application.CurrentCulture Pin
Andrei Ungureanu21-Aug-06 21:02
Andrei Ungureanu21-Aug-06 21:02 
QuestionHow to Extend Datagrid Pin
sanah s21-Aug-06 19:16
sanah s21-Aug-06 19:16 
QuestionDataGrid control scrolls unexpectedly when you use the arrow keys to move (Visual Studio .NET 2003) [modified] Pin
Kiterq21-Aug-06 18:08
Kiterq21-Aug-06 18:08 
QuestionArrayList & Sub ArrayList Import CSV? Pin
gman4421-Aug-06 17:15
gman4421-Aug-06 17:15 
AnswerRe: ArrayList & Sub ArrayList Import CSV? Pin
leppie21-Aug-06 17:54
leppie21-Aug-06 17:54 
Questionerror 80040154 at instantiation of COM object Pin
mkrelli21-Aug-06 13:21
mkrelli21-Aug-06 13:21 
Hello everybody.

I'm actually working on a service for phone call notification... However, to achieve that I downloaded a library called CapiThread (this is a sort of wrapper for the capi2032.dll). This is an "old" Win32 dll that exports 5 methods. (InitCapiThread, CloseCapiThread, RegisterNotifyMessage, SetRequest, GetIndication).

To use that dll within a C# Windows-Service project i've written a COM wrapper (COM Object ISDNCapi). The ISDNCapi object retrieves the notifications thrown by the CapiThread dll if an indication is pending and fires an event (OnCapiIndication). There are some other classes to hold the data of the indications and requests.

Okay...
Now i've build a metadata-dll with TLBIMP that i use in my program. (As descripted in "COM Interoperability in .NET Framework: Part I"). The code compiles without any problems, but during the instantiation of my class ISDNCapi the following error raises:

Retrieving the COM class factory for component with CLSID {3A5119AE-E5CC-406F-8F62-FFC340C424CE} failed due to the following error: 80040154.

The component is definetly registered and can access it's dependecies, because instantiation it in VB6 causes no error and the regsvr32 succeeds also.

So what i'm doing wrong?
(While writing this article i'd an idea: I'm using WinXP x64 platform. Could that be the cause of the error? - But i'm definetly compiling for Win32)

I've uploaded the sources of my projects to my server:
CapiWrapperSln
ISDNMonServer

And here are the complete exception details:
System.Runtime.InteropServices.COMException was unhandled<br />
  Message="Retrieving the COM class factory for component with CLSID {3A5119AE-E5CC-406F-8F62-FFC340C424CE} failed due to the following error: 80040154."<br />
  Source="ISDNMonServer"<br />
  ErrorCode=-2147221164<br />
  StackTrace:<br />
       at ISDNMonServer.ISDNMonServer..ctor() in E:\Entwicklungsumgebung\Projekte\Office\ISDNMon\ISDNMonServer\ISDNMonServer.cs:line 20<br />
       at ISDNMonServer.Program.Main() in E:\Entwicklungsumgebung\Projekte\Office\ISDNMon\ISDNMonServer\Program.cs:line 22<br />
       at System.AppDomain.nExecuteAssembly(Assembly assembly, String[] args)<br />
       at Microsoft.VisualStudio.HostingProcess.HostProc.RunUsersAssembly()<br />
       at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)<br />
       at System.Threading.ThreadHelper.ThreadStart()<br />


thanks.
Martin.
AnswerRe: error 80040154 at instantiation of COM object Pin
mav.northwind21-Aug-06 23:30
mav.northwind21-Aug-06 23:30 
GeneralRe: error 80040154 at instantiation of COM object Pin
mkrelli25-Aug-06 14:03
mkrelli25-Aug-06 14:03 
QuestionThe ConnectionString property has not been initialized ! Pin
mostafa_h21-Aug-06 13:11
mostafa_h21-Aug-06 13:11 
AnswerRe: The ConnectionString property has not been initialized ! Pin
Nader Elshehabi21-Aug-06 13:21
Nader Elshehabi21-Aug-06 13:21 
GeneralRe: The ConnectionString property has not been initialized ! Pin
mostafa_h21-Aug-06 13:32
mostafa_h21-Aug-06 13:32 
GeneralRe: The ConnectionString property has not been initialized ! Pin
Steve :)21-Aug-06 14:36
Steve :)21-Aug-06 14:36 
GeneralRe: The ConnectionString property has not been initialized ! Pin
mostafa_h21-Aug-06 20:26
mostafa_h21-Aug-06 20:26 
GeneralRe: The ConnectionString property has not been initialized ! Pin
Nader Elshehabi22-Aug-06 3:47
Nader Elshehabi22-Aug-06 3:47 
GeneralRe: The ConnectionString property has not been initialized ! Pin
Steve :)22-Aug-06 12:42
Steve :)22-Aug-06 12:42 
AnswerRe: The ConnectionString property has not been initialized ! Pin
Coding C#21-Aug-06 20:26
Coding C#21-Aug-06 20:26 
QuestionmouseMove event Pin
jamsiro21-Aug-06 12:49
jamsiro21-Aug-06 12:49 
AnswerRe: mouseMove event Pin
Shy Agam21-Aug-06 13:06
Shy Agam21-Aug-06 13:06 
AnswerRe: mouseMove event Pin
Nader Elshehabi21-Aug-06 13:18
Nader Elshehabi21-Aug-06 13:18 
QuestionRepresent CSS in C# [modified] Pin
Goebel21-Aug-06 12:32
Goebel21-Aug-06 12:32 
QuestionError: "Call was rejected by callee" Pin
Goalie3521-Aug-06 11:49
Goalie3521-Aug-06 11:49 
AnswerRe: Error: "Call was rejected by callee" Pin
bradsnobar21-Aug-06 12:13
bradsnobar21-Aug-06 12:13 
QuestionHow to paint embedded controls. Pin
bradsnobar21-Aug-06 11:48
bradsnobar21-Aug-06 11:48 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.