我正在使用VS2017在Xamarin中创建一个多平台应用程序,我从我的UWP应用程序中收到此错误。
System.IO.FileNotFoundException: Could not load file or assembly 'System.Threading.Thread, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a'.
The system cannot find the file specified.
File name: 'System.Threading.Thread, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a'
at System.Data.ProviderBase.DbConnectionFactory.TryGetConnection(DbConnection owningConnection, TaskCompletionSource`1 retry, DbConnectionOptions userOptions, DbConnectionInternal oldConnection, DbConnectionInternal& connection)
at System.Data.ProviderBase.DbConnectionInternal.TryOpenConnectionInternal(DbConnection outerConnection, DbConnectionFactory connectionFactory, TaskCompletionSource 1 retry, DbConnectionOptions userOptions)
at System.Data.SqlClient.SqlConnection.TryOpen(TaskCompletionSource`1 retry)
at System.Data.SqlClient.SqlConnection.Open()
at SS12.DataServices.SendScalar(String qString)
at SS12.ItemsPage.CheckUserLogin(String User, String Pwd)
at SS12.ItemsPage.<Login_Clicked>d__3.MoveNext()
有没有人见过这个?可能是什么原因?
答案 0 :(得分:0)
如果您可以定位构建16299,那么这就消失了magicamagica。
答案 1 :(得分:0)
UWP和Xamarin最近都支持该库。
https://docs.microsoft.com/en-us/windows/uwp/data-access/sql-server-databases
请确保为秋季创作者更新设置最低支持