theimowski / SuaveMusicStore

Sample application written in Suave.IO
https://www.gitbook.com/book/theimowski/suave-music-store
Apache License 2.0
70 stars 20 forks source link

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

Open decapo01 opened 6 years ago

decapo01 commented 6 years ago

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 commented 6 years ago

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

decapo01 commented 6 years ago

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.