TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
mahesh kumar B M
NA
44
1.1m
server cannot process this request error by EWS using c#
Mar 8 2015 2:51 PM
I'm getting the below error when i try to read the email using exchange web service.
The error message is " server cannot process this request now"
The error exactly pops at this line of code shown below:
var
email = EmailMessage.Bind(_service, findItemsResult.Id, emailProps);
where the actual code is given below:
_service is an exchange service
var view = new ItemView(100);
var userMailbox = new Mailbox(userMailbox);
var folderId = new FolderId(WellKnownFolderName.Inbox, userMailbox);
SearchFilter sf = new SearchFilter.SearchFilterCollection(LogicalOperator.And,
new SearchFilter.IsEqualTo(EmailMessageSchema.IsRead, false));
var findResults = _service.FindItems(folderId, sf, view);
var emailProps = new PropertySet(ItemSchema.MimeContent, ItemSchema.Body,
ItemSchema.InternetMessageHeaders);
Parallel.ForEach(findResults, findItemsResult =>
{
var email = EmailMessage.Bind(_service, findItemsResult.Id, emailProps);
// do some other activity here
}
Reply
Answers (
0
)
I have a report viewer and a dataset with 4 tables, i would
How to iterate through different node levels in a treeview