fsprojects / SQLProvider

A general F# SQL database erasing type provider, supporting LINQ queries, schema exploration, individuals, CRUD operations and much more besides.
https://fsprojects.github.io/SQLProvider
Other
570 stars 144 forks source link

The type provider 'FSharp.Data.Sql.SqlTypeProvider' reported an error: Unable to load one or more of the requested types #672

Closed nesteg closed 4 years ago

nesteg commented 4 years ago

Description

"module QW open FSharp.Data.Sql [] let resPath = @"C:/Users//.nuget/packages/mysqlconnector/0.62.0-beta7/lib/netstandard2.0" type Sql = SqlDataProvider< Common.DatabaseProviderTypes.MYSQL, "server=localhost;database=*;port=3306;uid=;pwd=*", ResolutionPath = resPath

let ctx = Sql.GetDataContext()" Get Error The type provider 'FSharp.Data.Sql.SqlTypeProvider' reported an error: Unable to load one or more of the requested types. Retrieve the LoaderExceptions property for more information.Details: Could not load file or assembly 'System.Memory, Version=4.0.1.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' or one of its dependencies. The system cannot find the file specified.Could not load file or assembly 'System.Threading.Tasks.Extensions, Version=4.1.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' or one of its dependencies. The system cannot find the file specified.

Exe netcoreapp3.1 preview
nesteg commented 4 years ago

"NetCore 3.1" "FSharp.Data" Version="3.3.3" "MySqlConnector" Version="0.62.0-beta7" "SQLProvider" Version="1.1.84" "FSharp.Core" Version="4.7.0" OS WINDOWS 10