HomeRecipesAPI ReferenceChangelogDiscussions
Log In
Discussions

Discussions

Ask a Question
Back to All

Facing this issue intermittently - Unable to cast object of type 'generatedProxy_2' to type 'Abm.Corrigo.SoapApi.CorrigoService'.

"Microsoft.Azure.WebJobs.Host.FunctionInvocationException : Exception while executing function: publish ---> System.InvalidCastException : Unable to cast object of type 'generatedProxy_2' to type 'Abm.Corrigo.SoapApi.CorrigoService'.
at System.Runtime.CompilerServices.CastHelpers.ChkCastAny(Void* toTypeHnd,Object obj)
at System.Reflection.DispatchProxy.CreateT,TProxy
at System.ServiceModel.Channels.ServiceChannelProxy.CreateProxy[TChannel](MessageDirection direction,ServiceChannel serviceChannel)
at System.ServiceModel.Channels.ServiceChannelFactory.CreateProxy[TChannel](MessageDirection direction,ServiceChannel serviceChannel)
at System.ServiceModel.Channels.ServiceChannelFactory.CreateChannel[TChannel](EndpointAddress address,Uri via)
at System.ServiceModel.ChannelFactory1.CreateChannel(EndpointAddress address,Uri via) at System.ServiceModel.ClientBase1.get_Channel()
at Abm.Corrigo.SoapApi.CorrigoServiceClient.Abm.Corrigo.SoapApi.CorrigoService.LogInStatusAsync(LogInStatusRequest request) at e:\azagent\A1_work\62\s\src\building-blocks\corrigo-api-service\Connected Services\Abm.Corrigo.SoapApi\Reference.cs : 27731
at async Abm.Corrigo.Integration.BuildingBlocks.ApiService.CorrigoService.IsLoggedIn() at e:\azagent\A1_work\62\s\src\building-blocks\corrigo-api-service\CorrigoService.cs : 234
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at async Abm.Corrigo.Integration.BuildingBlocks.ApiService.CorrigoService.TryLogin() at e:\azagent\A1_work\62\s\src\building-blocks\corrigo-api-service\CorrigoService.cs : 249