question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

FSharp.Control.AsyncSeq error

See original GitHub issue

.Net Version: .Net Core 3.1 OS: Mac OS Packages: nuget Equinox.Core 2.0.0 nuget Equinox.SqlStreamStore 2.0.0 nuget Equinox.SqlStreamStore.MsSql 2.0.0 nuget FsCodec 2.0.2-alpha.0.8 alpha nuget SQLStreamStore 1.2.0-beta.8 nuget SQLStreamStore.MsSql 1.2.0-beta.8

When trying to Transact on a stream I am getting this error:

Cause: System.AggregateException: One or more errors occurred. (Could not load file or assembly 'FSharp.Control.AsyncSeq, Version=2.0.21.0, Culture=neutral, PublicKeyToken=null'. The located assembly's manifest definition does not match the assembly reference. (0x80131040))
 ---> System.IO.FileLoadException: Could not load file or assembly 'FSharp.Control.AsyncSeq, Version=2.0.21.0, Culture=neutral, PublicKeyToken=null'. The located assembly's manifest definition does not match the assembly reference. (0x80131040)
File name: 'FSharp.Control.AsyncSeq, Version=2.0.21.0, Culture=neutral, PublicKeyToken=null'
   at Equinox.SqlStreamStore.Read.loadForwardsFrom@220.Invoke(Unit unitVar)
   at Microsoft.FSharp.Control.AsyncPrimitives.CallThenInvoke[T,TResult](AsyncActivation`1 ctxt, TResult result1, FSharpFunc`2 part2) in E:\A\_work\130\s\src\fsharp\FSharp.Core\async.fs:line 398
   at Microsoft.FSharp.Control.Trampoline.Execute(FSharpFunc`2 firstAction) in E:\A\_work\130\s\src\fsharp\FSharp.Core\async.fs:line 109
--- End of stack trace from previous location where exception was thrown ---
   at Ply.TplPrimitives.TaskAwaiterMethods`1.Ply-TplPrimitives-IAwaiterMethods`2-GetResult(TaskAwaiter`1& awt)
   at Ply.TplPrimitives.TplAwaitable`4.GetNext()
   at Ply.TplPrimitives.ContinuationStateMachine`1.System-Runtime-CompilerServices-IAsyncStateMachine-MoveNext()


   --- End of inner exception stack trace ---

I also added FSharp.Control.AsyncSeq to my project to see if that would resolve any issues and it didn’t appear to.

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:9 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
fluxlifecommented, May 7, 2020

Deleting paket.lock, making suggested modifications to paket, and reinstalling/restoring everything seemed to fix this specific issue. Will close.

0reactions
bartelinkcommented, May 10, 2020

cc @fnipo From looking around, it seems the confusion here stems from a mix of things

  • v 3.0.0-alpha.3 uses AsyncSeq v 2.0.23 (required as Equinox.Cosmos uses the Cosmos V4 SDK which requires IAsyncEnumerable)
  • v 1/2.x all use 2.0.21

=> For avoidance of doubt 1. Don’t pin AsyncSeq 2. use git clean

@fluxlife A secondary confusion which probably landed you in this loop is the fact that there was a manual incomplete version of Equinox.SqlStreamStore.MsSql - a 2.0.1 was released, but no accompanying other packages

=> I’m releasing a 2.0.2 and unlisting 2.0.1 to reduce the likelihood of others running into similar issues

Read more comments on GitHub >

github_iconTop Results From Across the Web

FSharp.Control.AsyncSeq
FSharp.Control.AsyncSeq is a collection of asynchronous programming utilities for F#. An AsyncSeq is a sequence in which individual elements are retrieved using ...
Read more >
F# Async: FSharp.Control.AsyncSeq
An AsyncSeq is a sequence in which individual elements are retrieved using an Async computation. It is similar to seq<'a> in that subsequent...
Read more >
Presence of return is misleading · Issue #38
member Return : unit -> AsyncSeq<'T> gives the error Module 'FSharp.Control.AsyncSeq' requires a value 'member AsyncSeq.AsyncSeqBuilder.Return : ...
Read more >
fsprojects/FSharp.Control.AsyncSeq
AsyncSeq is a collection of asynchronous programming utilities for F#. See the home page for details. The home page can be edited, forked...
Read more >
Unordered F# AsyncSeq.mapParallel with throttling
If I'm understanding your requirements then something like this will work. It effectively combines the iter unordered with a channel to ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found