DotNet · 2008年9月27日

Remoting找不到请求的服务RemotingException

当使用http协议时,经过一段时间以后事件回调就会产生此错误,错误未解决
 临时解决方案,服务端向客户端定时传递一下事件,就可以防止产生此错误,如一分钟传递一次(只要在失效时间内调用一次,即可)。
  

未处理 System.Runtime.Remoting.RemotingException
 
Message=”找不到请求的服务”
  Source=”System.Runtime.Remoting”
 
StackTrace:
    Server stack trace:

       在
System.Runtime.Remoting.Channels.SoapServerFormatterSink.ProcessMessage(IServerChannelSinkStack
sinkStack, IMessage requestMsg, ITransportHeaders requestHeaders, Stream
requestStream, IMessage& responseMsg, ITransportHeaders&
responseHeaders, Stream& responseStream)
    Exception
rethrown at [0]:
       在
System.Runtime.Remoting.Proxies.RealProxy.HandleReturnMessage(IMessage reqMsg,
IMessage retMsg)
       在
System.Runtime.Remoting.Proxies.RealProxy.PrivateInvoke(MessageData&
msgData, Int32 type)
       在
MMS.Remoting.Example.FrmBackup._Server_stateChanged(Object sender,
RemotingStateEventArgs e)
       在
MMS.RemotingBackupServer.setStatus(StatusEnum pStatus) 位置
D:\Wene.Study\Wene.Source\.Net Remoting for
MMS\MMS\MMS\RemotingBackupServer.vb:行号
57
       在
MMS.Remoting.Example.FrmHost.xRun_CheckedChanged(Object sender, EventArgs e) 位置
D:\Wene.Study\Wene.Source\.Net Remoting for
MMS\MMS\MMS.Remoting.Example\FrmHost.vb:行号
34
       在
System.Windows.Forms.RadioButton.OnCheckedChanged(EventArgs
e)
       在
System.Windows.Forms.RadioButton.set_Checked(Boolean
value)
       在
System.Windows.Forms.RadioButton.OnClick(EventArgs
e)
       在
System.Windows.Forms.RadioButton.OnMouseUp(MouseEventArgs
mevent)
       在
System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button,
Int32 clicks)
       在
System.Windows.Forms.Control.WndProc(Message&
m)
       在
System.Windows.Forms.ButtonBase.WndProc(Message&
m)
       在
System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message&
m)
       在
System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message&
m)
       在
System.Windows.Forms.NativeWindow.DebuggableCallback(IntPtr hWnd, Int32 msg,
IntPtr wparam, IntPtr lparam)
       在
System.Windows.Forms.UnsafeNativeMethods.DispatchMessageW(MSG&
msg)
       在
System.Windows.Forms.Application.ComponentManager.System.Windows.Forms.UnsafeNativeMethods.IMsoComponentManager.FPushMessageLoop(Int32
dwComponentID, Int32 reason, Int32
pvLoopData)
       在
System.Windows.Forms.Application.ThreadContext.RunMessageLoopInner(Int32 reason,
ApplicationContext context)
       在
System.Windows.Forms.Application.ThreadContext.RunMessageLoop(Int32 reason,
ApplicationContext context)
       在
System.Windows.Forms.Application.Run(ApplicationContext
context)
       在
Microsoft.VisualBasic.ApplicationServices.WindowsFormsApplicationBase.OnRun()
      

Microsoft.VisualBasic.ApplicationServices.WindowsFormsApplicationBase.DoApplicationModel()
      

Microsoft.VisualBasic.ApplicationServices.WindowsFormsApplicationBase.Run(String[]
commandLine)
       在
MMS.Remoting.Example.My.MyApplication.Main(String[] Args) 位置
17d14f5c-a337-4978-8281-53493378c1071.vb:行号
81
       在
System.AppDomain._nExecuteAssembly(Assembly assembly, String[]
args)
       在
System.AppDomain.ExecuteAssembly(String assemblyFile, Evidence assemblySecurity,
String[] args)
       在
Microsoft.VisualStudio.HostingProcess.HostProc.RunUsersAssembly()
      
在 System.Threading.ThreadHelper.ThreadStart_Context(Object
state)
       在
System.Threading.ExecutionContext.Run(ExecutionContext executionContext,
ContextCallback callback, Object state)
      
在 System.Threading.ThreadHelper.ThreadStart()

最新电影,电视剧,尽在午夜剧场

电影电视剧午夜不寂寞