J
Jeevan
Hi,
I am creating a Window Service in C-Sharp. The Window Service has a
reference to an OCX file created in VC++. In OnStart method I have created
an instance of the class, of the OCX file and called a method of the class.
Compilation was successful.
I created a Windows installer setup(.MSI), for installing the service. The
installation was successful. I started my service from the Services
Management Console. It started and stopped immediately, throwing the below
Exception in the System Application Log:
_______________________________________________________
Service cannot be started. System.Runtime.InteropServices.COMException
(0x8000FFFF): Catastrophic failure
at System.RuntimeType.ForwardCallToInvokeMember(String memberName,
BindingFlags flags, Object target, Int32[] aWrapperTypes, MessageData&
msgData)
at FOCCLib.FOCCClass.Connect(String serverAddr, String port)
at WindowsService1.Service1.OnStart(String[] args)
at System.ServiceProcess.ServiceBase.ServiceQueuedMainCallback(Object
state)
_______________________________________________________
Please help me in resolving this issue.
Thanks in advance,
Jeevan
I am creating a Window Service in C-Sharp. The Window Service has a
reference to an OCX file created in VC++. In OnStart method I have created
an instance of the class, of the OCX file and called a method of the class.
Compilation was successful.
I created a Windows installer setup(.MSI), for installing the service. The
installation was successful. I started my service from the Services
Management Console. It started and stopped immediately, throwing the below
Exception in the System Application Log:
_______________________________________________________
Service cannot be started. System.Runtime.InteropServices.COMException
(0x8000FFFF): Catastrophic failure
at System.RuntimeType.ForwardCallToInvokeMember(String memberName,
BindingFlags flags, Object target, Int32[] aWrapperTypes, MessageData&
msgData)
at FOCCLib.FOCCClass.Connect(String serverAddr, String port)
at WindowsService1.Service1.OnStart(String[] args)
at System.ServiceProcess.ServiceBase.ServiceQueuedMainCallback(Object
state)
_______________________________________________________
Please help me in resolving this issue.
Thanks in advance,
Jeevan