Exchange Web Services (EWS) client doesn't work on server, but works locally

787 views Asked by At

We have a simple service that uses EWS 2.0 to connect to an Outlook mailbox and process email in a shared mailbox (yup, I know :))... so...

We created a domain user and gave it full rights to the mailbox. I'm specifying the WebCredentials, and for accessing the shared mailbox, I new up a Folder object with the mailbox name and using StreamingNotifications to watch the inbox.

All works fine on my PC.

We tried installing it on a server and we get a 401 access denied. If I go to that machine and telnet to the EWS server on 443, it lets me in, so its not a firewall issue. Like I said, I can run the app on my PC, so the mailbox and exchange are configured to let me connect.

Do I need anything else open? Any ideas what's generating the 401?

I can post code if necessary, but like I said, it works on my PC and on the server I can telnet to the EWS on 443.

On the server, I'm running the app with my domain account logged in and a command prompt.

How do I debug further?

0

There are 0 answers