How to Troubleshoot EWS Connection Issues by using EWS Editor

How to troubleshoot EWS connection Issues by using EWS Editor

Problem:

You get errors when you use any application to connect to (or execute a specific action upon) a mailbox or public folder via the Exchange Web Services (EWS) protocol.

Solution:

To verify if an error is related to application or to your environment, you can use a tool called EWS Editor to connect to the mailbox or public folder that causes errors and check if the error appears. This can be very useful in scenarios when:

· An application cannot establish connection to a mailbox or upload/download required data

· An application cannot access public folders

· An application cannot impersonate a mailbox –

Connecting to a mailbox via EWSEditor

1. Go to the EWSEditor page on GitHub and download the bin package.

2. Copy the downloaded file to the machine where application is installed and extract it.

3. Open the program and click File > New Exchange Service (Fig. 1.).


Fig. 1. Creating a new EWS connection to a mailbox in EWSEditor.

4. Use the Autodiscover Email option or manually provide the Service URL by using the FQDN of the machine you are connecting to (CAS server). If you use Office 365, click the 365 Default button (Fig. 2.).

Note :

The Service URL for EWS should be as follows:
https://<your machine FQDN>/EWS/Exchange.asmx
for example: https://exchange.example.com/EWS/Exchange.asmx


Fig. 2. Configuring the EWS connection.

5. Configure the authentication options:

o Direct access: If you want to access your mailbox directly, select Use the following credentials instead of the default Windows credentials and provide the user name and password for that mailbox account (Fig. 3.).


Fig. 3. Configuring a direct connection to a mailbox.

o Mailbox impersonation: If you want to connect to another mailbox by using the admin’s credentials, click Use the following credentials instead of the default Windows credentials and provide the administrator’s credentials. After that, select the Check if using EWS Impersonation checkbox and provide the primary SMTP address of the mailbox you want to access.


Fig. 4. Configuring a connection to a mailbox as an administrator, by using impersonation.

6. When the configuration is complete, click OK.

o If the connection is successful, you will see a confirmation in the program.

o If the connection is not successful, the software will throw an error. The appearance of any errors means that the mailbox connection problem is not related to your application and the problem relates to your environment.

If you are getting Error 500, then probably your XML configuration file for web services (including EWS) is corrupted. Please consider reverting any recent changes made to that file.

Browsing a mailbox

Directly after you finish configuring the connection, you get a prompt asking if you want to add the mailbox root to the tree view. Please confirm by clicking Yes (Fig. 5.).


Fig. 5. The prompt that allows you to browse the mailbox content in EWSEditor.

After the addition is complete, you can browse the content of your mailbox under Root\Top of Information Store (Fig. 6.). If you are getting any errors while accessing any of the folders within that container, it means that the mailbox is corrupted.


Fig. 6. Browsing the content of a mailbox.

Browsing public folders

To browse public folders of a mailbox account that you added to the EWSEditor’s tree view, right-click the name (email address) of the mailbox at the very top of the tree, and select Add Root Folder. After selecting Identify folder by well known name, choose PublicFoldersRoot (Fig. 7.) and click OK.


Fig. 7. Adding public folders to the mailbox tree view.

If you are getting any errors when accessing public folders, this might mean that public folders are not yet created or their creation is still pending. However, if you are getting trouble accessing some particular public folders, it means that you are missing some of the required permissions.

11 thoughts on “How to Troubleshoot EWS Connection Issues by using EWS Editor

  1. There are some attention-grabbing time limits in this article but I don抰 know if I see all of them middle to heart. There’s some validity but I will take maintain opinion until I look into it further. Good article , thanks and we wish extra! Added to FeedBurner as nicely

  2. My brother recommended I might like this web site. He was totally right. This post truly made my day. You cann’t imagine just how much time I had spent for this info! Thanks!|

  3. You actually make it seem so easy with your presentation but I find this matter to be actually something which I think I would never understand. It seems too complex and extremely broad for me. I’m looking forward for your next post, I will try to get the hang of it!|

  4. Attractive part of content. I simply stumbled upon your weblog and in accession capital to assert that I acquire actually loved account your weblog posts. Anyway I’ll be subscribing on your feeds or even I achievement you access persistently rapidly.|

  5. Hello, Neat post. There is an issue along with your website in internet explorer, might test this? IE nonetheless is the marketplace leader and a good element of other folks will miss your fantastic writing due to this problem.|

  6. Youre so cool! I dont suppose Ive learn something like this before. So good to search out any individual with some original thoughts on this subject. realy thanks for beginning this up. this website is something that’s wanted on the net, somebody with just a little originality. useful job for bringing something new to the internet!

  7. I’m usually to blogging and i really appreciate your content. The article has really peaks my interest. I am going to bookmark your website and keep checking for new information.

Leave a Reply

Your email address will not be published. Required fields are marked *