“Object has been disconnected or does not exist at the server” exception

后端 未结 7 810
孤街浪徒
孤街浪徒 2020-12-04 19:31

I need to use cross-appdomain calls in my app, and sometimes I have this RemotingException:

Object \'/2fa53226_da41_42ba_b185_ec7d9c454712/ygiw+xfegmk

相关标签:
7条回答
  • 2020-12-04 20:03

    This question has been answered in great detail already on StackOverflow. TL/DR:

    1. If you want Singleton semantics override InitializeLifetimeService to return null
    2. Use ClientSponsor to keep you object alive longer.
    0 讨论(0)
提交回复
热议问题