F
Frank Sharp
Running XP OL2003, VS 2002 pro, I wrote an Outlook Addin.. worked fine.
Did something like: process AppointmentItems based on a Custom Form
(MessageClass= IPM.Appointment.Reservation) like:
Dim objAppts As Items
Dim objAppt As AppointmentItem
objNS = objApplication.GetNamespace("MAPI")
objAppts =
objNS.GetDefaultFolder(OlDefaultFolders.olFolderCalendar).Folders.Item("Reservations").Items
objAppts.IncludeRecurrences = True
objAppt = objAppts.Item(1)
(just an example.. I know how to write AddIns..everything worked fine..)
Then: Installed VS 2005 Pro. From this moment on I got an
InvalidCastException at this line:
objAppt = objAppts.Item(1)
(still running this AddIn under VS 2002.. did nothing with VS 2005, just
installed it)
Wrote a Win.exe to test this; found out: after installing VS2005 I get the
InvalidCastException in VS2002 if the messageclass is not exactly
“IPM.Appointment”; before it also worked with “IPM.Appointment.Reservation”.
To prevent some answers that won’t help:
This AddIn uses Framework 1.1:
'DefaultDomain': 'c:\windows\microsoft.net\framework\v1.1.4322\mscorlib.dll'
geladen, keine Symbole geladen.
'Domain2': 'c:\windows\microsoft.net\framework\v1.1.4322\mscorlib.dll'
geladen, keine Symbole geladen.
...and so on..(german version..)
TypeName(objAppts.Item(1)) is "AppointmentItem" (no distribution list in
this folder..just AppointmentItems with messageclass
IPM.Appointment.Reservation.. I know all this standard answers..and it
worked fine before installing VS2005)
What I tried so far: uninstalled VS 2005, uninstalled Framework 2.0.. no
luck.. same result..
Uninstalled Framework 1.1, 1.0; reinstalled Framework 1.0, 1.1..Setup repair
of VS 2002.. no luck..
Please help.
Thank you, Frank
Did something like: process AppointmentItems based on a Custom Form
(MessageClass= IPM.Appointment.Reservation) like:
Dim objAppts As Items
Dim objAppt As AppointmentItem
objNS = objApplication.GetNamespace("MAPI")
objAppts =
objNS.GetDefaultFolder(OlDefaultFolders.olFolderCalendar).Folders.Item("Reservations").Items
objAppts.IncludeRecurrences = True
objAppt = objAppts.Item(1)
(just an example.. I know how to write AddIns..everything worked fine..)
Then: Installed VS 2005 Pro. From this moment on I got an
InvalidCastException at this line:
objAppt = objAppts.Item(1)
(still running this AddIn under VS 2002.. did nothing with VS 2005, just
installed it)
Wrote a Win.exe to test this; found out: after installing VS2005 I get the
InvalidCastException in VS2002 if the messageclass is not exactly
“IPM.Appointment”; before it also worked with “IPM.Appointment.Reservation”.
To prevent some answers that won’t help:
This AddIn uses Framework 1.1:
'DefaultDomain': 'c:\windows\microsoft.net\framework\v1.1.4322\mscorlib.dll'
geladen, keine Symbole geladen.
'Domain2': 'c:\windows\microsoft.net\framework\v1.1.4322\mscorlib.dll'
geladen, keine Symbole geladen.
...and so on..(german version..)
TypeName(objAppts.Item(1)) is "AppointmentItem" (no distribution list in
this folder..just AppointmentItems with messageclass
IPM.Appointment.Reservation.. I know all this standard answers..and it
worked fine before installing VS2005)
What I tried so far: uninstalled VS 2005, uninstalled Framework 2.0.. no
luck.. same result..
Uninstalled Framework 1.1, 1.0; reinstalled Framework 1.0, 1.1..Setup repair
of VS 2002.. no luck..
Please help.
Thank you, Frank