ews-managed-api icon indicating copy to clipboard operation
ews-managed-api copied to clipboard

the format of value 'bearer ' is invalid

Open smlemmon opened this issue 1 year ago • 1 comments

Hi,

I have recently migrated our code from Microsoft.Exchange.WebServices.NETStandard to Exchange.WebServices.NET6.

The code that we use to call EWS is pretty much the same with the exception of a couple of method calls being async instead of non-async.

Since changing, I get the the format of value 'bearer ' is invalid error message when trying to call email.Send or email.SaveAndSend.

I went back to Microsoft.Exchange.WebServices.NETStandard and all is once again well.

Please could you advise.

Many thanks

Simon

smlemmon avatar Mar 04 '23 14:03 smlemmon

Since the NET6 fork is 6 commits behind, and one of those commits actueally mentions the token. This commit https://github.com/sherlock1982/ews-managed-api/commit/59fb5faa600ea34bc57566943ea203a43e70f5f9 by @lanfeust69 from June 15, 2020 it might be the problem. So perhaps the NET6 should catch up to this repo first and take in the 6 commits.

jbennink avatar Mar 08 '23 10:03 jbennink