none
EWS Error Can not get Exchange 2010 to connect to Outlook 2011 for Mac

    Question

  • Everything else works. OWA works. Activesync works. I read that Macs use EWS to connect. attempted to access localhost/ews/exchange.asmx and received the following message. Any assistance is greatly appreciated.

    Server Error in '/EWS' Application.

    Could not load file or assembly 'Microsoft.Exchange.Data.Directory, Version=14.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its dependencies. The system cannot find the file specified.

    Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

    Exception Details: System.IO.FileNotFoundException: Could not load file or assembly 'Microsoft.Exchange.Data.Directory, Version=14.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its dependencies. The system cannot find the file specified.

    Source Error:

    An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.

    Assembly Load Trace:The following information can be helpful to determine why the assembly 'Microsoft.Exchange.Data.Directory, Version=14.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' could not be loaded.

    WRN: Assembly binding logging is turned OFF.
    To enable assembly bind failure logging, set the registry value [HKLM\Software\Microsoft\Fusion!EnableLog] (DWORD) to 1.
    Note: There is some performance penalty associated with assembly bind failure logging.
    To turn this feature off, remove the registry value [HKLM\Software\Microsoft\Fusion!EnableLog].
    

    Stack Trace:

    [FileNotFoundException: Could not load file or assembly 'Microsoft.Exchange.Data.Directory, Version=14.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its dependencies. The system cannot find the file specified.]
       System.Signature._GetSignature(SignatureStruct& signature, Void* pCorSig, Int32 cCorSig, IntPtr fieldHandle, IntPtr methodHandle, IntPtr declaringTypeHandle) +0
       System.Signature..ctor(RuntimeMethodHandle methodHandle, RuntimeTypeHandle declaringTypeHandle) +236
       System.Reflection.RuntimeMethodInfo.get_Signature() +91
       System.Reflection.RuntimeMethodInfo.get_ReturnType() +19
       System.Web.HttpApplicationFactory.ReflectOnMethodInfoIfItLooksLikeEventHandler(MethodInfo m) +30
       System.Web.HttpApplicationFactory.ReflectOnApplicationType() +223
       System.Web.HttpApplicationFactory.Init() +11343600
       System.Web.HttpApplicationFactory.EnsureInited() +55
       System.Web.Compilation.BuildManager.CompileGlobalAsax() +70
       System.Web.Compilation.BuildManager.EnsureTopLevelFilesCompiled() +676
    
    [HttpException (0x80004005): Could not load file or assembly 'Microsoft.Exchange.Data.Directory, Version=14.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its dependencies. The system cannot find the file specified.]
       System.Web.Compilation.BuildManager.ReportTopLevelCompilationException() +76
       System.Web.Compilation.BuildManager.EnsureTopLevelFilesCompiled() +1012
       System.Web.Hosting.HostingEnvironment.Initialize(ApplicationManager appManager, IApplicationHost appHost, IConfigMapPathFactory configMapPathFactory, HostingEnvironmentParameters hostingParameters) +1025
    
    [HttpException (0x80004005): Could not load file or assembly 'Microsoft.Exchange.Data.Directory, Version=14.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its dependencies. The system cannot find the file specified.]
       System.Web.HttpRuntime.FirstRequestInit(HttpContext context) +11335894
       System.Web.HttpRuntime.EnsureFirstRequestInit(HttpContext context) +88
       System.Web.HttpRuntime.ProcessRequestNotificationPrivate(IIS7WorkerRequest wr, HttpContext context) +4355316
    


    Version Information: Microsoft .NET Framework Version:2.0.50727.5448; ASP.NET Version:2.0.50727.5456 


    Tuesday, February 28, 2012 6:39 PM

Answers

All replies

  • Seems like you're using RTM, I'd upgrade to SP2 and then test again.

    Sukh

    Tuesday, February 28, 2012 11:57 PM
  • Hi

    Reset the EWS Virtual Directory from EMS

    Remove-WebServicesVirtualDirectory -Identity "server\ews (Default Web Site)"

    New-WebServicesVirtualDirectory -WebsiteName "Default Web Site" -InternalUrl "https://Sites/EWS/Exchange.asmx" -basicauthentication 1 -windowsauthentication 1

    After that, please perform IISreset /noforce on the server and try again


    Thanks Mouzzam Hussain Visit to my Blog mouzzamh.wordpress.com

    Wednesday, February 29, 2012 5:29 PM
  • Hi there,

    This is Exchange server forum, for Outlook 2011 for Mac configuration related question, please feel free to pose in the following forums:

    Office for MAC

    http://www.microsoft.com/mac/support

    Support for Microsoft Office for Mac 2011 and 2008

    http://support.microsoft.com/gp/cp_macoffice2008_master

    How to obtain support for Microsoft Outlook for Mac 2011 connectivity problems with Exchange Server

    http://support.microsoft.com/kb/2353366

    Your understanding would be appreciated.

    Fiona Liao

    TechNet Community Support

    Thursday, March 01, 2012 12:52 PM
    Moderator
  • Hi everyone,

    I have been searching on the web for over 3 months now for an answer to this issue. I will describe my issue a bit, since we all know the causes could be different in every case.

    Feel free to skip this part and skip to the solution!!!

    I migrated one client from Windows SBS2003 Server to Windows 2010 SBS.. The migration went not smooth, but it did complete and most function works. However, I've been noticing that there are several left-over references to the previous server, but as long as the services worked we were really to jsut let it slide. Afterall it was a huge jump from 2003 to 2010. Well our customer wanted Out of Office to work from Outlook, and OOF depends on Web Services in order for Outlook to commnicate to Exchange and set it up. For the time being we had OOF working if setup from the OWA. After reading many forums I knew that in order for me to get OOF working I had to first be able to access the https://server/ews/exchange.asmx. which basicaly gave me the same error message as the question in this post. So I focused on trying to fix this issue and I tried everything the suggested on the blogs/forums.. nothing worked.

    Solution:
    I found out that my web.config file had references to the wrong folder. All the Dlls were linked to ...Exchange Server\bin\.... well this folder did not exist.. instead the bin folder was inside a V14 folder.. so i tested it by fixing the path for the file references on the question 
    On line 888. the link is "file:///C:\Progarm Files\Microsoft\Exchange Server\bin\Microsoft.Exchange.Data.Directory.dll" So i changed it to "file:///C:\Progarm Files\Microsoft\Exchange Server\V14\bin\Microsoft.Exchange.Data.Directory.dll" and sure enough the error message went on to another Dll. So I did a replace all and changed all the directories and restarted IIS. and it worked. 

    I hope this helps others!

    Cheers

    Jean Silva

    • Proposed as answer by JeanMSilva89 Wednesday, February 27, 2013 6:22 AM
    Tuesday, February 26, 2013 12:26 AM