zoukankan      html  css  js  c++  java
  • signalR常见问题

    一、安装signalR会对应安装自己的NewJson包,如果引用了含有不同NewJson包的dll组件,会造成版本不一致。必须在运行环境中指出使用目标版本。

    问题截图:

    解决方式:

    <runtime>
    <assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
    <dependentAssembly>
    <assemblyIdentity name="Newtonsoft.Json"
    publicKeyToken="30ad4fe6b2a6aeed"
    culture="neutral" />
    <bindingRedirect oldVersion="0.0.0.0-6.0.0.0" newVersion="6.0.0.0" />
    </dependentAssembly>
    </assemblyBinding>
    </runtime>
     
    二、要使用signalR,必须net版本要在4.0及以上,以下版本是不支持websocket的。
    signalR1.0以上版本对应net4.0
    signalR2.0以上版本对应net4.5
     
    三、要开启websocket使用,webconfig的配置也十分重要,需要在system.web中进行配置。目标框架根据使用signalR的版本来定,不能低于net4.0。
    问题截图:
    解决办法:
    <httpRuntime targetFramework="4.5" />
     
     
     
     
  • 相关阅读:
    Matlab norm 用法小记
    C51存储器类型 MCS51单片机物理存储器区域
    MATLAB 中NORM运用
    Matlab norm 用法小记
    C51存储器类型 MCS51单片机物理存储器区域
    MATLAB 中NORM运用
    poj2031
    poj1039
    poj3122
    poj3980
  • 原文地址:https://www.cnblogs.com/myLeisureTime/p/10592990.html
Copyright © 2011-2022 走看看