Re: Outlook 2003 PIA Question

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance



kwc5811@xxxxxxxxx <kwc5811@xxxxxxxxx> wrote:

The original question as quoted from Richard Waterson posted on Dec
27, 2004:

I am trying to run this sample code but keep getting an "Invalid Cast"
exception when calling oItems.GetFirst and assigning the resulting
object to a ContactItem. The ItemsClass object has a count of 208
items, so I'm confident the collection contains all my contacts. Where
am I going wrong?

Ask in the programming newsgroup news://msnews.microsoft.com/microsoft.public.outlook.program_vba
--
Brian Tillman

.



Relevant Pages

  • Outlook 2003 PIA Question
    ... exception when calling oItems.GetFirst and assigning the resulting ... object to a ContactItem. ...
    (microsoft.public.outlook.interop)
  • RE: .NET Runtime 2.0 Error - I need more details...
    ... so if you can not use this event to handle the exception. ... The default event logging behavior of console application is built into ... ConsoleException.Program.Main), calling mscorwks!JIT_Throw ... Microsoft Online Community Support ...
    (microsoft.public.dotnet.framework)
  • Re: Assertion on Type conversion
    ... The author states that "if a method has specified some pre-condition then the failure of that condition is the responsibility of the ... depends on the caller's ability to check for conditions, and assure them to be correct, prior to the calling of the method. ... An overlooked exception that could be handled gracefully. ... Implement a method like "IsValid" to do a runtime check first if your concerned about the ArgumentException being thrown. ...
    (microsoft.public.dotnet.languages.csharp)
  • RE: Microsoft.XLANGs.RuntimeTypes.InvalidPropertyTypeException
    ... Trying to access a data property on a message for which it has not ... Yes the exception is of significant concern; it is a major user error. ... Any exception thrown could delay the cleanup of resources, ... System.Text.StringBuilder.Append), calling mscorsvr!Ordinal76+0x1d925 ...
    (microsoft.public.biztalk.server)
  • Microsoft.XLANGs.RuntimeTypes.InvalidPropertyTypeException
    ... they still occur when we turn tracking off. ... Is this 'exception' of a significant concern? ... System.Text.StringBuilder.Append), calling mscorsvr!Ordinal76+0x1d925 ...
    (microsoft.public.biztalk.server)