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>

    测试通过。
  • 相关阅读:
    Nim or not Nim? HDU
    邂逅明下 HDU
    4.1.8 巴什博弈
    4.1.7 Cutting Game(POJ 2311)
    0.1.2 max_element和min_element的用法
    bzoj 2152 聪聪可可 树形dp
    hdu 5976 Detachment 脑洞题 猜结论
    hdu 5974 A Simple Math Problem gcd(x,y)=gcd((x+y),lcm(x,y))
    hdu 5971 Wrestling Match 二分图染色
    Codeforces 842C Ilya And The Tree 树上gcd
  • 原文地址:https://www.cnblogs.com/chinadhf/p/958656.html
Copyright © 2011-2022 走看看