C# TAPI - ITBasicCallControl -- ERROR-- "SPECIFIED CAST IS NOT VALID"

  • Thread starter Thread starter BizTalk Architect
  • Start date Start date
B

BizTalk Architect

Hello,

I cant get past this error, can anyone help?


ITCallNotificationEvent objCallNotification =
(ITCallNotificationEvent)sender;

ITCallInfo callInfo = objCallNotification.Call;

ITBasicCallControl Call;

Call = (ITBasicCallControl)callInfo; *******ERROR
HERE*******************

I cant get this to cast, does anyone know why?





Thanks!
 
Try:
Call = (ITBasicCallControl) (object) callInfo;

and no; sender is not a reserved word.
 
Don't you have to cast this line too?

ITCallInfo callInfo = (ITCallInfo)objCallNotification.Call;
 
Try casting this line too:

ITCallInfo callInfo = (ITCallInfo) objCallNotification.Call;
 
Try casting this line too:

ITCallInfo callInfo = (ITCallInfo)objCallNotification.Call;
 
Back
Top