When you see DispatchRuntime.AutomaticInputSessionShutdown? error in atom log

Document created by ruchika_yadav Employee on May 15, 2015Last modified by vreddy on Mar 1, 2016
Version 2Show Document
  • View in full screen mode
When you see the following error in the atom logs or customer may have question about this error.

 

Error Message : This channel can no longer be used to send messages as the output session was auto-closed due to a server-initiated shutdown. Either disable auto-close by setting the DispatchRuntime.AutomaticInputSessionShutdown to false, or consider modifying the shutdown protocol with the remote server.; ExceptionDetail.Message=This channel can no longer be used to send messages as the output session was auto-closed due to a server-initiated shutdown. Either disable auto-close by setting the DispatchRuntime.AutomaticInputSessionShutdown to false, or consider modifying the shutdown protocol with the remote server.; ExceptionDetail.StackTrace=Server stack trace:
at System.ServiceModel.Channels.ServiceChannel.PrepareCall(ProxyOperationRuntime operation, Boolean oneway, ProxyRpc& rpc)
DispatchRuntime.AutomaticInputSessionShutdown is a property in.NET framework which is used by microsoft.

 

https://msdn.microsoft.com/en-us/library/system.servicemodel.dispatcher.dispatchruntime.automaticinputsessionshutdown(v=vs.110).aspx

 

Based on my search on google this is more about an exception on the server. Most of the time we see this error  when you use microsoft service, if there is an exception the server goes to fault state.
There are 2 ways to handle that: make sure that the process has no erros in getting/setting data,if not then it can make this session property to go sessionless and hence the exeption.
You can also make sure on the server that if an exception occurs(for any reason) ,its handled by the session without automatically closing the session and haulting the process.

 

If you want to understand more then there is lot of information that can be found on google how to deal with this exception.

Attachments

    Outcomes