zoukankan      html  css  js  c++  java
  • .Net Remoting 排错笔记:System.ArgumentNullException: No message was deserialized prior to calling the DispatchChannelSink.

    异常提示:
    System.ArgumentNullException: No message was deserialized prior to calling the DispatchChannelSink.
    Parameter name: requestMsg


    场景:
    1.用IIS作宿主。
    2.使用BinaryFomatter。
    3.客户端订阅服务器端事件后,服务器端激活事件时产生。

    解决措施:

    在配置文件中将单通道改为双向通道
    原配置文件:

    <system.runtime.remoting>
      
    <application>
        
    <service>
        
    </service>
        
    <channels>
          
    <channel ref="http">
            
    <serverProviders>
              
    <provider ref="binary" typeFilterLevel="Full"/>
            
    </serverProviders>
          
    </channel>
        
    </channels>
      
    </application>
    </system.runtime.remoting>

    新配置文件:
    <system.runtime.remoting>
      
    <application>
        
    <service>
        
    </service>
        
    <channels>
          
    <channel ref="http">
            
    <serverProviders>
              
    <provider ref="binary" typeFilterLevel="Full"/>
            
    </serverProviders>
            
    <clientProviders>
              
    <provider ref="binary"></provider>
            
    </clientProviders>
          
    </channel>
        
    </channels>
      
    </application>
    </system.runtime.remoting>

    测试通过。
  • 相关阅读:
    struts2的核心和工作原理
    Java操作redis【二十】
    优化【十九】
    管线【十八】
    服务器管理【十七】
    虚拟内存【十六】
    Eclipse:使用findBugs预先检测错误
    linux命令学习(1)
    Android中Linux suspend/resume流程
    Ubuntu12.04下eclipse提示框黑色背景色的修改方法
  • 原文地址:https://www.cnblogs.com/chinadhf/p/958656.html
Copyright © 2011-2022 走看看