关于vs2013 mysql Ef框架中提示版本不兼容问题的解决办法

<runtime>
    <assemblyBinding>
      <dependentAssembly>
        <assemblyIdentity name= "EntityFramework" culture= "neutral" publicKeyToken= "b77a5c561934e089" Retargetable= "Yes"/>
        <bindingRedirect oldVersion= "4.4.0.0" newVersion= "6.0.0.0"/>    <!--oldverison 旧版本是多少我这里是4.4 新版本时候6.0-->
      </dependentAssembly>
 
    </assemblyBinding>
 
  </runtime>
</configuration>

在web.config中 加入红色部分. name="你引用dll的名字"
publicKeyToken="你现dll的唯一token";
哎,百度了好多就是不开窍.
还有说加一个app.config的试了多少次都不行.
posted @ 2016-02-29 14:22  笨笨鱼~  阅读(968)  评论(0编辑  收藏  举报