question

Jackson1990-7147 avatar image
0 Votes"
Jackson1990-7147 asked Jackson1990-7147 commented

Issue to namespace

Hi,
How to resolve issue below?

The type or namespace name 'ExchangeService' could not be found

dotnet-csharpdotnet-cli
· 4
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Hi,
What reference to be added to project for current issue?

0 Votes 0 ·

Hi,
Is it to import/load Microsoft.Exchange.WebServices.dll to VS project? Where to get this dll?

0 Votes 0 ·

> Where to get this dll?

In the link I posted...



0 Votes 0 ·
karenpayneoregon avatar image
0 Votes"
karenpayneoregon answered

There can be several reasons for this

  • You need to include a using statement e.g. using Microsoft.Exchange.WebServices.Data;

  • You need to add a reference for the library

  • Ensure under properties for this library you have it copy to local set to true



5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Castorix31 avatar image
0 Votes"
Castorix31 answered

If you read the doc, there is :

Namespace:
Microsoft.Exchange.WebServices.Data
Assembly:
Microsoft.Exchange.WebServices.dll

So you must add a Reference to Microsoft.Exchange.WebServices.dll

And MSDN gives : Reference the EWS Managed API assembly


5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.