30
Không thể tải tệp hoặc lắp ráp 'Newtonsoft.Json' hoặc một trong các phụ thuộc của nó. Định nghĩa kê khai không khớp với tham chiếu lắp ráp
Những điều tôi đã thử sau khi tìm kiếm: trong Web.Config đặt một ràng buộc trên phiên bản cũ: <dependentAssembly> <assemblyIdentity name="Newtonsoft.Json" publicKeyToken="30ad4fe6b2a6aeed" culture="neutral" /> <bindingRedirect oldVersion="0.0.0.0-6.0.0.0" newVersion="6.0.1.0" /> </dependentAssembly> Chỉnh sửa tệp .csproj của tôi để đảm bảo chỉ có một tham chiếu Newtonsoft <Reference Include="Newtonsoft.Json, Version=6.0.0.0, Culture=neutral, PublicKeyToken=30ad4fe6b2a6aeed, …