OfficeDev / ews-managed-api

Other
584 stars 316 forks source link

InstallApp operation fails in EWS impersonation environment #201

Open pupaxxo opened 6 years ago

pupaxxo commented 6 years ago

Sometimes EWS gives timeout error, sometimes error 500. Without impersonation everything works good. Using exchange version 2013_SP1.

Target=None;Req=Exchange2013_SP1/Exchange2013_SP1;,InstallApp,500,9487,,ErrorInternalServerError,,,,-cb62-48ee-8832-5ba3518e2a09,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,6,,9,7,,26,,,6650,,,BackEndAuthenticator=WindowsAuthenticator;TotalBERehydrationModuleLatency=0;ADIdentityCache=Miss;MailboxTypeCacheSize=1706;Dbl:WLM.TS=6650;I32:ADS.C[]=1;F:ADS.AL[]=4.3428;I32:ATE.C[]=1;F:ATE.AL[]=0,,ServiceDiagnostics_ReportException=System.NullReferenceException: Riferimento a un oggetto non impostato su un'istanza di oggetto.    in Microsoft.Exchange.Services.Wcf.MessageHeaderProcessor.CreateAuthZClientInfoFromConnectingSID(ConnectingSIDType connectingSID  AuthZClientInfo impersonatingClientInfo  IIdentity impersonatingIdentity)    in Microsoft.Exchange.Services.Wcf.MessageHeaderProcessor.ProcessImpersonationHeaders(Message request  AuthZClientInfo proxyClientInfo  AuthZClientInfo impersonatingClientInfo)    in Microsoft.Exchange.Services.Core.Types.CallContext.CreateCallContext(MessageHeaderProcessor headerProcessor  Message request)    in Microsoft.Exchange.Services.Core.Types.CallContext.CreateFromRequest(MessageHeaderProcessor headerProcessor  Message request  Boolean duplicatedActionDetectionEnabled)    in Microsoft.Exchange.Services.Wcf.MessageInspectorManager.<>c__DisplayClass3.<InternalAfterReceiveRequest>b__0()    in Microsoft.Exchange.Diagnostics.RequestDetailsLoggerBase`1.TrackLatency(Enum latencyMetadata  Action method)    in Microsoft.Exchange.Services.Wcf.MessageInspectorManager.InternalAfterReceiveRequest(Message& request  IClientChannel channel  InstanceContext instanceContext  MessageBuffer buffer)    in Microsoft.Exchange.Services.Wcf.MessageInspectorManager.AfterReceiveRequest(Message& request  IClientChannel channel  InstanceContext instanceContext)    in System.ServiceModel.Dispatcher.ImmutableDispatchRuntime.AfterReceiveRequestCore(MessageRpc& rpc)    in System.ServiceModel.Dispatcher.ImmutableDispatchRuntime.ProcessMessage2(MessageRpc& rpc)    in System.ServiceModel.Dispatcher.ImmutableDispatchRuntime.ProcessMessage11(MessageRpc& rpc)    in System.ServiceModel.Dispatcher.MessageRpc.Process(Boolean isOperationContextSet);FaultInnerException=Microsoft.Exchange.Services.Core.Types.InternalServerErrorException: Si è verificato un errore interno. Operazione non riuscita. ---> System.NullReferenceException: Riferimento a un oggetto non impostato su un'istanza di oggetto.    in Microsoft.Exchange.Services.Wcf.MessageHeaderProcessor.CreateAuthZClientInfoFromConnectingSID(ConnectingSIDType connectingSID  AuthZClientInfo impersonatingClientInfo  IIdentity impersonatingIdentity)    in Microsoft.Exchange.Services.Wcf.MessageHeaderProcessor.ProcessImpersonationHeaders(Message request  AuthZClientInfo proxyClientInfo  AuthZClientInfo impersonatingClientInfo)    in Microsoft.Exchange.Services.Core.Types.CallContext.CreateCallContext(MessageHeaderProcessor headerProcessor  Message request)    in Microsoft.Exchange.Services.Core.Types.CallContext.CreateFromRequest(MessageHeaderProcessor headerProcessor  Message request  Boolean duplicatedActionDetectionEnabled)    in Microsoft.Exchange.Services.Wcf.MessageInspectorManager.<>c__DisplayClass3.<InternalAfterReceiveRequest>b__0()    in Microsoft.Exchange.Diagnostics.RequestDetailsLoggerBase`1.TrackLatency(Enum latencyMetadata  Action method)    in Microsoft.Exchange.Services.Wcf.MessageInspectorManager.InternalAfterReceiveRequest(Message& request  IClientChannel channel  InstanceContext instanceContext  MessageBuffer buffer)    in Microsoft.Exchange.Services.Wcf.MessageInspectorManager.AfterReceiveRequest(Message& request  IClientChannel channel  InstanceContext instanceContext)    in System.ServiceModel.Dispatcher.ImmutableDispatchRuntime.AfterReceiveRequestCore(MessageRpc& rpc)    in System.ServiceModel.Dispatcher.ImmutableDispatchRuntime.ProcessMessage2(MessageRpc& rpc)    in System.ServiceModel.Dispatcher.ImmutableDispatchRuntime.ProcessMessage11(MessageRpc& rpc)    in System.ServiceModel.Dispatcher.MessageRpc.Process(Boolean isOperationContextSet)    --- Fine della traccia dello stack dell'eccezione interna ---;ExceptionHandlerBase_ProvideFault_Error=System.NullReferenceException: Riferimento a un oggetto non impostato su un'istanza di oggetto.    in Microsoft.Exchange.Services.Wcf.MessageHeaderProcessor.CreateAuthZClientInfoFromConnectingSID(ConnectingSIDType connectingSID  AuthZClientInfo impersonatingClientInfo  IIdentity impersonatingIdentity)    in Microsoft.Exchange.Services.Wcf.MessageHeaderProcessor.ProcessImpersonationHeaders(Message request  AuthZClientInfo proxyClientInfo  AuthZClientInfo impersonatingClientInfo)    in Microsoft.Exchange.Services.Core.Types.CallContext.CreateCallContext(MessageHeaderProcessor headerProcessor  Message request)    in Microsoft.Exchange.Services.Core.Types.CallContext.CreateFromRequest(MessageHeaderProcessor headerProcessor  Message request  Boolean duplicatedActionDetectionEnabled)    in Microsoft.Exchange.Services.Wcf.MessageInspectorManager.<>c__DisplayClass3.<InternalAfterReceiveRequest>b__0()    in Microsoft.Exchange.Diagnostics.RequestDetailsLoggerBase`1.TrackLatency(Enum latencyMetadata  Action method)    in Microsoft.Exchange.Services.Wcf.MessageInspectorManager.InternalAfterReceiveRequest(Message& request  IClientChannel channel  InstanceContext instanceContext  MessageBuffer buffer)    in Microsoft.Exchange.Services.Wcf.MessageInspectorManager.AfterReceiveRequest(Message& request  IClientChannel channel  InstanceContext instanceContext)    in System.ServiceModel.Dispatcher.ImmutableDispatchRuntime.AfterReceiveRequestCore(MessageRpc& rpc)    in System.ServiceModel.Dispatcher.ImmutableDispatchRuntime.ProcessMessage2(MessageRpc& rpc)    in System.ServiceModel.Dispatcher.ImmutableDispatchRuntime.ProcessMessage11(MessageRpc& rpc)    in System.ServiceModel.Dispatcher.MessageRpc.Process(Boolean isOperationContextSet);ServiceDiagnostics_ReportException=System.NullReferenceException: Riferimento a un oggetto non impostato su un'istanza di oggetto.    in Microsoft.Exchange.Services.Wcf.MessageHeaderProcessor.CreateAuthZClientInfoFromConnectingSID(ConnectingSIDType connectingSID  AuthZClientInfo impersonatingClientInfo  IIdentity impersonatingIdentity)    in Microsoft.Exchange.Services.Wcf.MessageHeaderProcessor.ProcessImpersonationHeaders(Message request  AuthZClientInfo proxyClientInfo  AuthZClientInfo impersonatingClientInfo)    in Microsoft.Exchange.Services.Core.Types.CallContext.CreateCallContext(MessageHeaderProcessor headerProcessor  Message request)    in Microsoft.Exchange.Services.Core.Types.CallContext.CreateFromRequest(MessageHeaderProcessor headerProcessor  Message request  Boolean duplicatedActionDetectionEnabled)    in Microsoft.Exchange.Services.Wcf.MessageInspectorManager.<>c__DisplayClass3.<InternalAfterReceiveRequest>b__0()    in Microsoft.Exchange.Diagnostics.RequestDetailsLoggerBase`1.TrackLatency(Enum latencyMetadata  Action method)    in Microsoft.Exchange.Services.Wcf.MessageInspectorManager.InternalAfterReceiveRequest(Message& request  IClientChannel channel  InstanceContext instanceContext  MessageBuffer buffer)    in Microsoft.Exchange.Services.Wcf.MessageInspectorManager.AfterReceiveRequest(Message& request  IClientChannel channel  InstanceContext instanceContext)    in System.ServiceModel.Dispatcher.ImmutableDispatchRuntime.AfterReceiveRequestCore(MessageRpc& rpc)    in System.ServiceModel.Dispatcher.ImmutableDispatchRuntime.ProcessMessage2(MessageRpc& rpc)    in System.ServiceModel.Dispatcher.ImmutableDispatchRuntime.ProcessMessage11(MessageRpc& rpc)    in System.ServiceModel.Dispatcher.MessageRpc.Process(Boolean isOperationContextSet);,