I have a need to retrieve data of an email address from Exchange Server (our company Exchange Server version is 2007). I have tried to connect to Exchange Server by using Exchange Web Service but I get this error "The expected XML node type was XmlDeclaration,
but the actual type is Element." at the line :
ews.AutodiscoverUrl(txtEmailAccount.Text);
Please tell what it is and how to solve this issue.
This normally indicates that the server is unavailable or under stress, and as a result is returning unexpected XML content when accessed using the EWS (Exchange Web Services) API.
phuc pham
Member
16 Points
24 Posts
Error when using Exchange Web Service ?
Feb 24, 2012 05:27 AM|LINK
Hi all,
I have a need to retrieve data of an email address from Exchange Server (our company Exchange Server version is 2007). I have tried to connect to Exchange Server by using Exchange Web Service but I get this error "The expected XML node type was XmlDeclaration, but the actual type is Element." at the line :
ews.AutodiscoverUrl(txtEmailAccount.Text);
Please tell what it is and how to solve this issue.
Thanks for your help.
Frank Jiang ...
All-Star
16006 Points
1728 Posts
Microsoft
Re: Error when using Exchange Web Service ?
Feb 28, 2012 02:39 AM|LINK
Hi,
This normally indicates that the server is unavailable or under stress, and as a result is returning unexpected XML content when accessed using the EWS (Exchange Web Services) API.
You can try this solution:
http://migrationwiz.wiki.zoho.com/Expected-XML-node-type-was-XmlDeclaration-but-actual-type-is-Element.html
Hope it helps
Feedback to us
Develop and promote your apps in Windows Store
phuc pham
Member
16 Points
24 Posts
Re: Error when using Exchange Web Service ?
Mar 01, 2012 01:32 AM|LINK
Thanks Frank Jiang,
I got a problem with domain name. Now it's OK