473,399 Members | 4,254 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,399 software developers and data experts.

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


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!

Nov 16 '05 #1
5 4192
Isn't "sender" a reserved word??

"BizTalk Architect" <bi***************@gmail.com> wrote in message
news:41***********************@diablo.nl.easynet.n et...

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!

Nov 16 '05 #2
Try:
Call = (ITBasicCallControl) (object) callInfo;

and no; sender is not a reserved word.

--
Regards,
Dennis JD Myrén
Oslo Kodebureau
"BizTalk Architect" <bi***************@gmail.com> wrote in message
news:41***********************@diablo.nl.easynet.n et...

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!

Nov 16 '05 #3
Don't you have to cast this line too?

ITCallInfo callInfo = (ITCallInfo)objCallNotification.Call;

--
Frank Wisniewski MCSE 4.0, MCP+I, A+
f p w 2 3 @ h o t m a i l . c o m
"BizTalk Architect" <bi***************@gmail.com> wrote in message
news:41***********************@diablo.nl.easynet.n et...

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!

Nov 16 '05 #4
Try casting this line too:

ITCallInfo callInfo = (ITCallInfo) objCallNotification.Call;

--
Frank Wisniewski MCSE 4.0, MCP+I, A+
f p w 2 3 @ h o t m a i l . c o m
"BizTalk Architect" <bi***************@gmail.com> wrote in message
news:41***********************@diablo.nl.easynet.n et...

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!

Nov 16 '05 #5
Try casting this line too:

ITCallInfo callInfo = (ITCallInfo)objCallNotification.Call;

--
Frank Wisniewski MCSE 4.0, MCP+I, A+
f p w 2 3 @ h o t m a i l . c o m
"BizTalk Architect" <bi***************@gmail.com> wrote in message
news:41***********************@diablo.nl.easynet.n et...

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!

Nov 16 '05 #6

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: Omavlana | last post by:
Hi, I am getting the above error "specified cast is not valid" while sending the parameter to crystal report through VB.NET. Here is my code.. '*********** Dim paramFields As New...
0
by: Andrew | last post by:
Can someone out there help. I am using Server. Transfer from a user control to a webform and tried to follow many examples exactly as specified but cannot get around the (Specified cast is not...
1
by: Justin | last post by:
Greetings all, I'm receiving this error when I attempt to pull data, in the form of an ArrayList out of a Session. ArrayList al = new ArrayList(); al = (ArrayList)Session; // error here ...
5
by: Alan Silver | last post by:
Hello, I have an ASP.NET page where I am grabbing an SqlDataReader and using it to populate some controls on the form. Amongst the fields pulled out of the table are two integer fields, which I...
4
by: Web Team | last post by:
Hi All, When I run the below code, I get error 'Specified cast is not valid' on line 163 Dim Address As OldInfra.BS7666.Address = BS7666AddressCollection.GetSingleAddress(str_UPRN) 164...
0
by: Genival P.Carvalho | last post by:
Hello folks, First sorry my bad english. I will try to implement a IExtenderProvider + Verbs (Designer). When compile tha follow code its compile fine, but whem drag resulting componet under form...
7
by: Chris Thunell | last post by:
I'm trying to loop through an exchange public folder contact list, get some information out of each item, and then put it into a vb.net datatable. I run though the code and all works fine until i...
2
by: amit | last post by:
Hi guys I am trying to use Access Database with VB .net. In the stock database I have Fields Code and DrugName; Data Type of both is Text. In the following code line marked with *** gives the...
0
by: Hemangi | last post by:
hi friends, I have one problem with VSTO 2005. As I try to open new project using word document in VSTO 2005, I am getting error Specified cast is not valid...and the project is not opening.Please...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.