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

Could not load type 'Choice' from assembly 'Suave #10

Open
decapo01 opened this issue May 20, 2018 · 2 comments
Open

Could not load type 'Choice' from assembly 'Suave #10

decapo01 opened this issue May 20, 2018 · 2 comments

Comments

@decapo01
Copy link

In the section where we are ready to create a new album I am receiving this error

Could not load type 'Choice' from assembly 'Suave, Version=2.2.1.0, Culture=neutral, PublicKeyToken=null'.

System.TypeLoadException: Could not load type 'Choice' from assembly 'Suave, Version=2.2.1.0, Culture=neutral, PublicKeyToken=null'. at Suave.Form.bindForm[a](Form`1 form, HttpRequest req) at Suave.Model.Binding.bind@32-6.Invoke(HttpContext c) at Microsoft.FSharp.Core.FSharpFunc`2.InvokeFast[V](FSharpFunc`2 func, T arg1, TResult arg2) at Microsoft.FSharp.Control.AsyncBuilderImpl.args@506-1.Invoke(a a)

It looks like something is happening during the form binding but I cannot seem to find a fix for it.

@theimowski
Copy link
Owner

What version of Suave are you using? Pinning to an older version might help

@decapo01
Copy link
Author

It was suave 2.2.1. I upgraded to 2.4.0 and the problem stopped. I'm on ubuntu linux 16.04 and I couldn't get the first part of the tutorial to work for me so I was doing if from a plain dotnet console application without the dependencies pinned. Just wanted to add that bit of info in case someone else has the same problem.

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

2 participants