无法加载组件System.Configuration.Install - Xamarin / MySQL的 [英] Could not load assemblies System.Configuration.Install - Xamarin / MySql
问题描述
我目前试图建立我的Android首次应用。
它必须有一个数据库,我使用MySQL。 Xamarin和C#为code。
I am currently trying to build my first app on android. It has to have a database, I use Mysql. Xamarin and C# for the code.
我想我的应用程序连接到数据库,我仍然选择这个错误:
I am trying to connect my app to the database, and i still pick this error :
Exception while loadind assemblies : System.IO.FileNotFoundException:Could not load assembly 'System.Configuration.Install, Version=2.0.0.0, Culture = neutral, PublicKey Token = b03f5f7f11d50a3a'.
也许不会在单声道Android的配置文件是否存在?
Perhaps it doesn't exist in the Mono for android profile?
这是什么意思?我也跟着一步一步的教程。
What does that mean? I followed step by step the tutorial.
你能帮助我吗?
谢谢!
推荐答案
System.Configuration *不是一个.NET程序集是为Android单声道的一部分,因此在Xamarin.Android不可用。
System.Configuration.* is not an .NET assembly that is part of Mono for Android and thus isn't available in Xamarin.Android.
可用组件列表可以在这里找到.COM /导游/安卓/ under_the_hood /组件/
A list of available assemblies can be found at: http://developer.xamarin.com/guides/android/under_the_hood/assemblies/
作为一个解决方案,我建议您阅读通过xamarin连接MySQL数据库它解释了为什么这是一个坏主意,一个应用程序直接连接到数据库。相反,你是通过一个Web服务连接的更好。
As a solution I suggest reading Connect to MySql database through xamarin it explains why it is a bad idea to connect an app directly to a DB. Instead you're better of connecting through a webservice.
这篇关于无法加载组件System.Configuration.Install - Xamarin / MySQL的的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!