none
Getting Exception : Could not load type 'Microsoft.Exchange.WebServices.Data.ServerBusyException' from assembly 'Microsoft.Exchange.WebServices'

    Question

  • I have created sample application in which i am getting EmailMessages from Sharepoint online.

    Everything is working. However, I have added Throttling Exception handling for that I have added ServerBusyException.

    After that I am getting below exception when i am going to run the application. If  i remove ServerBusyException exception handling then after everything is working fine.

    Application details:

    Platform: .Net framework 4.5.2

    EWS service 2.0

    .Net framework installed in the system 4.6.1

    Note : Same code is working in some environment where 4.6.2 is installed ( It might be another factor make it work.. this is what i am guessing :) )

    An unhandled exception of type 'System.TypeLoadException' occurred in System.Windows.Forms.dll


    Additional information: Could not load type 'Microsoft.Exchange.WebServices.Data.ServerBusyException' from assembly 'Microsoft.Exchange.WebServices, Version=15.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35'.

    Saturday, May 26, 2018 1:40 PM

All replies

  • I would check the version of the EWS Managed API assembly Microsoft.Exchange.WebServices.dll sounds like it maybe trying to use an older version where that type didn't exist

    Cheers
    Glen

    Monday, May 28, 2018 5:10 AM