Issue to namespace

Peter_1985 2,586 Reputation points
2021-06-25T13:53:28.237+00:00

Hi,
How to resolve issue below?

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

.NET CLI
.NET CLI
A cross-platform toolchain for developing, building, running, and publishing .NET applications.
326 questions
C#
C#
An object-oriented and type-safe programming language that has its roots in the C family of languages and includes support for component-oriented programming.
10,582 questions
{count} votes

1 additional answer

Sort by: Most helpful
  1. Castorix31 82,846 Reputation points
    2021-06-26T05:12:59.737+00:00

    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

    0 comments No comments