0

{"Could not load file or assembly 'Newtonsoft.Json, Version=4.5.0.0, Culture=neutral, PublicKeyToken=30ad4fe6b2a6aeed' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)":"Newtonsoft.Json, Version=4.5.0.0, Culture=neutral, PublicKeyToken=30ad4fe6b2a6aeed"}

I get the above error when loading a page with Fluent Automation in Visual studio. The error happens when I execute the following assertion : I.Expect.Exists("#sampleId").
I am using latest versions of Newtonsoft Json and Fluent Automation. Has anyone been able to solve this recently?

4

1 に答える 1

3

Fluent Automation 自体が古いバージョンの Newtonsoft.Json (4.5.0.0) を参照しているように思えますが、最新バージョンを使用しているとのことですが、これは 6.0.1 だと思います。

例を次に示します。web.config/app.config に入れます。

<runtime>
    <assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
        <!-- Any other dependentAssembly bindings you need -->
        <dependentAssembly>
            <assemblyIdentity name="Newtonsoft.Json" publicKeyToken="30ad4fe6b2a6aeed" culture="neutral" />
            <bindingRedirect oldVersion="0.0.0.0-6.0.1.0" newVersion="6.0.0.0" />
        </dependentAssembly>
    </assemblyBinding>
</runtime>
于 2014-03-04T16:23:03.007 に答える