I am Developing a app in cross platform for Android and Windows with visual studio 2015 and xamarin forms.
When I build project i have no problems, however if i run the program in windows and i try to connect with database, i get the next exception:
"System.IO.FileNotFoundException" in System.Data.SqlClient.dll ("Could not load file or assembly 'System.Threading.Thread, Version=220.127.116.11, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies. System could not specific file.") System.IO.FileNotFoundException
I tried to install system.threading.thread with NuGet administrador, and i can show this message:
Error restoring package
The code of program is the next, I can use sqlconnection previously:
DisplayAlert("estado", "estado: " + conn.State, "ok");
catch (System.IO.FileNotFoundException eo)
DisplayAlert("estado", "ERROR1!!!!!!!!!!!!!\n" + eo.Message, "ok");
catch (Exception ex)
DisplayAlert("estado", "ERROR!!!!!!!!!!!!!\n"+ ex.Message, "ok");
Someone could help me please?