InvalidCastException in outlook 2003

  • Thread starter Thread starter Peter van der Veen
  • Start date Start date
P

Peter van der Veen

Hi

In my VB.net application i got on different times (and not allways) an
System.InvalidCastException.

The line of code is:

objAppointmentItem = objItems.GetFirst

Does anyone know what to do???


Peter
 
Are you testing first for any items in the collection? Are you sure that all
the items you are getting are really AppointmentItem?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top