How do I use SQLite when building web pages with Websharper or Suave?

I am creating a site that works to get data from "input" to update the database from the server side.


For this, of course, I have to use a server side call and then use SQLite to be able to update the data in the database (* .db file).

But feel free, I got unwanted ones:

System.Exception: Could not load method (act : unit -> Microsoft.FSharp.Control.FSharpAsync`1<unit>) candidates: [||]

      

I don't know how to fix this, please help me!


Main.fs: https://gist.github.com/tungandcun/3d0a8c5008343861624d94d3e52c56a4

Client.fs: https://gist.github.com/tungandcun/c43fb92bb9e8956dbd9332779c9bfd72

Remoting.fs: https://gist.github.com/tungandcun/980ecb346f886fd6f710eebe0b160823

sample.fs: https://gist.github.com/tungandcun/465b19b60a64b4b6c578e3704c155a0e


And I installed the following packages from Nuget: SQLProvider System.Data.SQLite.Core

Many thanks!

0
sqlite f # -data suave websharper fsharp.data.sqlclient


source to share


No one has answered this question yet

See similar questions:

3
Websharper makes an asynchronous call return server error 500

or similar:

1031
How can I list tables in a SQLite database file that was opened with ATTACH?
851
How to check SQLite if a table exists?
five
Replacing SQLite database when accessing it
five
Cookie authentication in websharper + suave + OWIN
2
Failed to deserialize WebSharper metadata
2
How to Add SQLite Provider to New Database Wizard for Visual Studio 2012
2
Best way to pass sqlite data to web server from Android group?
0
How to make changes to sqlite database for app installed on multiple devices?
0
Updating Sqlite from a web server?
0
How do I set up a database first with Entity Framework 6.1 and .NET 4.5.1 using Sqlite?



All Articles
Loading...
X
Show
Funny
Dev
Pics