ExcelProvider icon indicating copy to clipboard operation
ExcelProvider copied to clipboard

System.Text.Encoding.CodePages dependency error in docker container

Open ViktorTsvetkov opened this issue 4 years ago • 3 comments

Description

I have prepared a sample app which I can run successfully, but once I try to build a linux docker container using the provided Dockerfile I get the following error:

/src/Program.fs(3,22): error FS3033: The type provider 'FSharp.Interop.Excel.ExcelProvider.ProviderImplementation+ExcelProvider' reported an error: Could not load file or assembly 'System.Text.Encoding.CodePages, Version=4.1.1.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a'. Could not find or load a specific file. (Exception from HRESULT: 0x80131621) [/src/ConsoleApp.fsproj]

Repro steps

ConsoleApp.zip Extract the project and try to build a linux docker container using the provided Dockerfile.

Expected behavior

Successfully build the project inside the docker container.

Actual behavior

Docker build fails with error:

/src/Program.fs(3,22): error FS3033: The type provider 'FSharp.Interop.Excel.ExcelProvider.ProviderImplementation+ExcelProvider' reported an error: Could not load file or assembly 'System.Text.Encoding.CodePages, Version=4.1.1.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a'. Could not find or load a specific file. (Exception from HRESULT: 0x80131621) [/src/ConsoleApp.fsproj]

ViktorTsvetkov avatar Mar 26 '20 17:03 ViktorTsvetkov

@ViktorTsvetkov, you have probably moved on with your life, but I have just released version 2.0.0 of this provider, which I believe will solve this issue. I would appreciate it if you or someone else using the provider in Docker can provide confirmation that it is working now.

quintusm avatar Sep 04 '21 15:09 quintusm

I can verify Provider now works fine with docker.

OnurGumus avatar May 02 '23 09:05 OnurGumus

Thanks for providing your feedback!

quintusm avatar May 02 '23 09:05 quintusm