N
Nicolas
Hi,
I have a big problem trying to call an activeX class into a web service.
When I'm instanciating a class everything seems ok, but as soon as I'm
trying to set some properties. I get the following error "catastrophic
failure".
That's the string that the exception had:
System.Runtime.InteropServices.COMException (0x8000FFFF): Catastrophic
failure at System.RuntimeType.ForwardCallToInvokeMember(String memberName,
BindingFlags flags, Object target, Int32[] aWrapperTypes, MessageData&
msgData) at LwAccessLib.LwAccessClass.set_PortName(enumCommPort ) at
HelloService.HelloService.TestLwAccess() in
c:\inetpub\wwwroot\firstwebservice\main.asmx.cs:line 82
This is the code:
[WebMethod(true)]
public string TestLwAccess()
{
LwAccessClass oLonAccess = new LwAccessClass();
try
{
oLonAccess.PortName = LwAccessLib.enumCommPort.cpLon1;
return "yess!";
}
catch (Exception e)
{
return e.ToString();
}
}
Can someone help me?
Thanx
I have a big problem trying to call an activeX class into a web service.
When I'm instanciating a class everything seems ok, but as soon as I'm
trying to set some properties. I get the following error "catastrophic
failure".
That's the string that the exception had:
System.Runtime.InteropServices.COMException (0x8000FFFF): Catastrophic
failure at System.RuntimeType.ForwardCallToInvokeMember(String memberName,
BindingFlags flags, Object target, Int32[] aWrapperTypes, MessageData&
msgData) at LwAccessLib.LwAccessClass.set_PortName(enumCommPort ) at
HelloService.HelloService.TestLwAccess() in
c:\inetpub\wwwroot\firstwebservice\main.asmx.cs:line 82
This is the code:
[WebMethod(true)]
public string TestLwAccess()
{
LwAccessClass oLonAccess = new LwAccessClass();
try
{
oLonAccess.PortName = LwAccessLib.enumCommPort.cpLon1;
return "yess!";
}
catch (Exception e)
{
return e.ToString();
}
}
Can someone help me?
Thanx