Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

Reading Calendar information from Exchange 2007 using Exchange Web Services and ASP.Net

Posted on 2010-08-26
4
Medium Priority
?
894 Views
Last Modified: 2012-05-10
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.

Thanks,

Tony
0
Comment
Question by:capnross
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
  • 2
4 Comments
 
LVL 32

Expert Comment

by:Robberbaron (robr)
ID: 33541042
not worked with appointments at all myself but have been trying out  notifications and there is a long article with full code by an Exchange  MVP that monitors users calendars.  Ive run the example and it does work, though I was just using it for learning.

http://exchangenotification.codeplex.com/
http://www.infinitec.de/category/Exchange-articles.aspx
0
 

Author Comment

by:capnross
ID: 33541140
Thanks for that, but it's not really what I'm after.  I can actively now push things into my calendar using EWS, but it's still not clear how to read/parse the calendar data.
0
 
LVL 32

Accepted Solution

by:
Robberbaron (robr) earned 1500 total points
ID: 33541360
ignoring the notifications focus, one of those examples reads a number of user calendars  and displays results within the c# app.
0
 

Author Closing Comment

by:capnross
ID: 33568762
Thanks for your help RobberBaron, I got there in the end.
0

Featured Post

What is SQL Server and how does it work?

The purpose of this paper is to provide you background on SQL Server. It’s your self-study guide for learning fundamentals. It includes both the history of SQL and its technical basics. Concepts and definitions will form the solid foundation of your future DBA expertise.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Ready to get certified? Check out some courses that help you prepare for third-party exams.
As much as Microsoft wants to kill off PST file support, just as they tried to do with public folders, there are still times when it is useful or downright necessary to export Exchange mailboxes to PST files. Thankfully, it is still possible to e…
The video tutorial explains the basics of the Exchange server Database Availability groups. The components of this video include: 1. Automatic Failover 2. Failover Clustering 3. Active Manager
This tutorial will teach you the core code needed to finalize the addition of a watermark to your image. The viewer will use a small PHP class to learn and create a watermark.
Suggested Courses

598 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question