Warning: file_get_contents(/data/phpspider/zhask/data//catemap/4/fsharp/3.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Visual studio 2012 System.MissingMethodException:未找到方法:';Microsoft.FSharp.Core.FSharpFunc`2_Visual Studio 2012_F#_Missingmethodexception_Canopy Web Testing - Fatal编程技术网

Visual studio 2012 System.MissingMethodException:未找到方法:';Microsoft.FSharp.Core.FSharpFunc`2

Visual studio 2012 System.MissingMethodException:未找到方法:';Microsoft.FSharp.Core.FSharpFunc`2,visual-studio-2012,f#,missingmethodexception,canopy-web-testing,Visual Studio 2012,F#,Missingmethodexception,Canopy Web Testing,在Windows机箱中启动树冠测试时,我遇到了一个问题: Unhandled Exception: System.MissingMethodException: Method not found: 'Microsoft .FSharp.Core.FSharpFunc`2<System.String,System.String> canopy.core.get_xpath()'. at <StartupCode$UITest>.$Program.main@() 如何准确添

在Windows机箱中启动树冠测试时,我遇到了一个问题:

Unhandled Exception: System.MissingMethodException: Method not found: 'Microsoft
.FSharp.Core.FSharpFunc`2<System.String,System.String> canopy.core.get_xpath()'.
at <StartupCode$UITest>.$Program.main@()

如何准确添加此重新映射以解决此问题?

已成功使其与此App.config一起工作:

<?xml version="1.0" encoding="utf-8"?>
<configuration>
  <runtime>
    <assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
      <dependentAssembly>
        <assemblyIdentity name="FSharp.Core" publicKeyToken="b03f5f7f11d50a3a" culture="neutral"/>
        <bindingRedirect oldVersion="4.3.0.0" newVersion="4.4.0.0"/>
      </dependentAssembly>
    </assemblyBinding>
  </runtime>
</configuration>


这一定是因为我从未安装过F#,所以我使用的是VS2012(v3.0)附带的版本。我知道我知道,我应该升级到3.1,甚至4.0。

可能重复的可能重复的可能重复的为其他人找到这个
misigMethodException
非常常见,它有自己的特点。请先阅读这些内容,然后再询问新内容。另外,请查看app.config中与程序集绑定重定向相关的F#。
<?xml version="1.0" encoding="utf-8"?>
<configuration>
  <runtime>
    <assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
      <dependentAssembly>
        <assemblyIdentity name="FSharp.Core" publicKeyToken="b03f5f7f11d50a3a" culture="neutral"/>
        <bindingRedirect oldVersion="4.3.0.0" newVersion="4.4.0.0"/>
      </dependentAssembly>
    </assemblyBinding>
  </runtime>
</configuration>