Could not load file or assembly 'Parquet, Version=3.0.0.0, Culture=neutral, PublicKeyToken=d380b3dee6d01926'. The located assembly's manifest definition does not match the assembly reference. (0x80131040) File name: 'Parquet, Version=3.0.0.0, Culture=neutral, PublicKeyToken=d380b3dee6d01926'
Version: Parquet.Net v3.7.7
.NET Core SDK (reflecting any global.json): Version: 3.1.402 Commit: 9b5de826fd
Runtime Environment: OS Name: Windows OS Version: 10.0.18363 OS Platform: Windows RID: win10-x64 Base Path: C:\Program Files\dotnet\sdk\3.1.402\
Host (useful for support): Version: 3.1.8 Commit: 9c1330dedd
.NET Core SDKs installed: 3.1.402 [C:\Program Files\dotnet\sdk]
.NET Core runtimes installed: Microsoft.AspNetCore.App 3.1.8 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App] Microsoft.NETCore.App 3.1.8 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App] Microsoft.WindowsDesktop.App 3.1.8 [C:\Program Files\dotnet\shared\Microsoft.WindowsDesktop.App]
Expected behavior
I tried to use the ParquetReader.OpenFromFile(filepath), i never manipulated .parquet files, and i was playing around, trying to understand better the benefits of using .parquet files on my .net core projects.
Actual behavior
When calling the line: ParquetReader.OpenFromFile(filepath);
Unhandled exception. System.IO.FileLoadException: Could not load file or assembly 'Parquet, Version=3.0.0.0, Culture=neutral, PublicKeyToken=d380b3dee6d01926'. The located assembly's manifest definition does not match the assembly reference. (0x80131040) File name: 'Parquet, Version=3.0.0.0, Culture=neutral, PublicKeyToken=d380b3dee6d01926' at parquet.Program.Main(String[] args)
Steps to reproduce the behavior
Simply add parquet-dotnet package to the project
Code snippet reproducing the behavior
using System;
using System.Collections.Generic;
using Newtonsoft.Json;
using Parquet;
namespace parquet
{
class Program
{
static void Main(string[] args)
{
// Console.WriteLine(tat2.RowGroupCount);
Console.WriteLine("OI");
JsonConvert.SerializeObject("ahhh");
var tat2 = ParquetReader.OpenFromFile("userdata1.parquet");
}
}
}
I´m using VS Code with OmniSharp, idk if i´m doing something wrong.
It's due to your namespace/project being named parquet. So when it builds it will create a mismatch Parquet.dll and your project's output dll(also parquet.dll). Try renaming the project to something else and it should work.