![](/img/trans.png)
[英]The ADO.NET provider with invariant name 'MySql.Data.MySqlClient' is either not registered in the machine or application config file
[英]Error 175: The ADO.NET provider with invariant name 'MySql.Data.MySqlClient' is either not registered in the machine or application config file
我的一位客戶給了我一個VS2015解決方案文件,我應該繼續使用它。 但是,我無法編譯它。 我也在使用VS2015。
它使用實體框架,我不太了解它。
給出的錯誤是:錯誤175:具有不變名稱“MySql.Data.MySqlClient”的ADO.NET提供程序未在計算機或應用程序配置文件中注冊,或者無法加載。 有關詳細信息,請參閱內部異常
該錯誤指向EDMX文件,如下所示:
我不知道從哪里開始或如何解決這個問題。 有幫助嗎? 謝謝
<?xml version="1.0" encoding="utf-8"?>
<edmx:Edmx Version="3.0" xmlns:edmx="http://schemas.microsoft.com/ado/2009/11/edmx">
<!-- EF Runtime content -->
<edmx:Runtime>
<!-- SSDL content -->
<edmx:StorageModels>
<Schema Namespace="NFMTestModel.Store" Provider="MySql.Data.MySqlClient" ProviderManifestToken="5.7" Alias="Self" xmlns:store="http://schemas.microsoft.com/ado/2007/12/edm/EntityStoreSchemaGenerator" xmlns:customannotation="http://schemas.microsoft.com/ado/2013/11/edm/customannotation" xmlns="http://schemas.microsoft.com/ado/2009/11/edm/ssdl">
<!--Errors Found During Generation:
warning 6002: The table/view 'def.nfm.air' does not have a primary key defined. The key has been inferred and the definition was created as a read-only table/view.-->
<EntityType Name="air">
<Key>
<PropertyRef Name="DateAndTime" />
</Key>
<Property Name="DateAndTime" Type="datetime" Precision="0" Nullable="false" />
<Property Name="Air_System_Air_line_1_Service_Pressure_Value" Type="double" />
<Property Name="Air_System_Air_line_2_emergency_Pressure_Value" Type="double" />
<Property Name="Air_System_Air_Manlock_point_11_Pressure_Value" Type="double" />
<Property Name="Air_System_Air_Manlock_point_12_Pressure_Value" Type="double" />
<Property Name="Air_System_Air_Manlock_point_21_Pressure_Value" Type="double" />
<Property Name="Air_System_Air_Manlock_point_22_Pressure_Value" Type="double" />
<Property Name="Air_System_Air_Manlock_regulation_Pressure_Value" Type="double" />
<Property Name="Air_System_Air_System_Pressure_Value" Type="double" />
</EntityType>
<!--Errors Found During Generation:
warning 6002: The table/view 'def.nfm.articulation' does not have a primary key defined. The key has been inferred and the definition was created as a read-only table/view.-->
<EntityType Name="articulation">
<Key>
<PropertyRef Name="DateAndTime" />
</Key>
<Property Name="DateAndTime" Type="datetime" Precision="0" Nullable="false" />
<Property Name="Articulation_Angle_Horizontal_Value" Type="double" />
<Property Name="Articulation_Angle_Vertical_Value" Type="double" />
<Property Name="Articulation_Force_Value" Type="double" />
<Property Name="Articulation_Pushing_in_X_Value" Type="double" />
<Property Name="Articulation_Pushing_in_Y_Value" Type="double" />
<Property Name="Articulation_Speed_Value" Type="double" />
<Property Name="Articulation_Bottom_Side_Delta_Pressure_Value" Type="double" />
<Property Name="Articulation_Bottom_Side_Elongation_LH_Value" Type="double" />
<Property Name="Articulation_Bottom_Side_Elongation_RH_Value" Type="double" />
<Property Name="Articulation_Bottom_Side_Elongation_Setpoint_Value" Type="double" />
<Property Name="Articulation_Bottom_Side_Elongation_Start_point_Value" Type="double" />
<Property Name="Articulation_Bottom_Side_Elongation_Virtual_Value" Type="double" />
<Property Name="Articulation_Bottom_Side_Extend_Pressure_Value" Type="double" />
<Property Name="Articulation_Bottom_Side_Force_Value" Type="double" />
<Property Name="Articulation_Bottom_Side_High_Limit_Value" Type="double" />
<Property Name="Articulation_Bottom_Side_Low_Limit_Value" Type="double" />
<Property Name="Articulation_Bottom_Side_Retract_Pressure_Value" Type="double" />
我想你錯過了MySql.Data包。 嘗試從Nuget包管理器重新安裝包。 不確定,但這可能解決了你的問題。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.