I'm trying to read Exchange 2007 calendar appointment information using ASP.Net and EWS.
Initially, I'm trying to read my calendar which resides on my company's network to which I can VPN.
EWS is set up properly as far as I can tell. I've set up the Web Reference and the Exchange Service Binding. It seems to go to my company's server with no problems.
Using examples from the web (this one in particular - http://msdn.microsoft.com/en-us/library/bb408521.aspx
-which writes an item to the Sent Items folder on email and works) I'm trying to figure out how to do this. As I say, the example shown by this URL works. However, when I try to use an example to read from my calendar, the whole thing fails and I can't figure out why.
The code example at the bottom of this URL (http://msdn.microsoft.com/en-us/library/exchangewebservices.finditemtype(EXCHG.80).aspx
) fails at line 118 which reads:
object obj = fipt.Item;
The error written to the console is "Object reference not set to an instance of an object". Interrogating "responsemessage" on line 114 shows a messagetext of "The specified value is invalid for property."
Can ANYONE help me with this or show me the way to do this properly from scratch?
I've TRAWLED the internet and Microsoft's site, but cannot find anything which helps.