Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
ViktorTsvetkov opened this issue Mar 26, 2020 · 3 comments

Comments

@ViktorTsvetkov
Copy link

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]

@quintusm quintusm linked a pull request Aug 13, 2021 that will close this issue
@quintusm quintusm removed a link to a pull request Aug 13, 2021
@quintusm
Copy link
Collaborator

quintusm commented Sep 4, 2021

@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.

@OnurGumus
Copy link

I can verify Provider now works fine with docker.

@quintusm
Copy link
Collaborator

quintusm commented May 2, 2023

Thanks for providing your feedback!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants