CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2
  1. #1
    Join Date
    Apr 2014
    Posts
    28

    EWS namespace not recognized?

    I downloaded EWS (Exchange Web Services) 2.1 from Microsoft and installed it. I added a reference to
    Code:
    C:\Program Files (x86)\Microsoft\Exchange\Web Services\2.1\Microsoft.Exchange.WebServices.dll
    and
    Code:
    using Microsoft.Exchange.WebServices.Data;
    It seems to recognize the full path of the using statement, as each part is available in the selectable list, and there are no squigglies. When I attempt to build, it marks the Exchange section and says "the type or namespace name 'Exchange' does not exist in the namespace 'Microsoft' ...". What is missed here?

  2. #2
    Arjay's Avatar
    Arjay is offline Moderator / EX MS MVP Power Poster
    Join Date
    Aug 2004
    Posts
    13,490

    Re: EWS namespace not recognized?

    What code are you using to call into exchange? In other words, besides posting your using statement, post the code that uses exchange.

    I say this because I created a test project, added the reference and the using statement and it compiles fine. Lastly, what target framework version are you building to?

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured