SuaveMusicStore icon indicating copy to clipboard operation
SuaveMusicStore copied to clipboard

Could not load type 'Choice' from assembly 'Suave

Open decapo01 opened this issue 6 years ago • 2 comments

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 [email protected](HttpContext c) at Microsoft.FSharp.Core.FSharpFunc`2.InvokeFast[V](FSharpFunc`2 func, T arg1, TResult arg2) at [email protected](a a)

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

decapo01 avatar May 20 '18 17:05 decapo01

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

theimowski avatar May 22 '18 20:05 theimowski

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.

decapo01 avatar May 23 '18 03:05 decapo01