當試圖訪問我的數據庫的實時Web應用程序,我得到的錯誤:配置錯誤 - 無法識別的屬性「名稱」/無法找到請求的.Net Framework數據提供程序。它可能沒有安裝
Server Error in '/' Application.
Configuration Error
Description: An error occurred during the processing of a configuration file required to service this request. Please review the specific error details below and modify your configuration file appropriately.
Parser Error Message: Unrecognized attribute 'name'.
Source Error:
An application error occurred on the server. The current custom error settings for this application prevent the details of the application error from being viewed remotely (for security reasons). It could, however, be viewed by browsers running on the local server machine.
Source File: C:\home\site\wwwroot\web.config Line: 115
我的web配置,其中線路115位於:
<entityFramework>
<defaultConnectionFactory type="System.Data.Entity.Infrastructure.LocalDbConnectionFactory, EntityFramework">
<parameters>
<parameter value="mssqllocaldb" />
</parameters>
</defaultConnectionFactory>
<providers>
<provider invariantName="System.Data.SqlClient" type="System.Data.Entity.SqlServer.SqlProviderServices, EntityFramework.SqlServer" />
<provider invariantName="MySql.Data.MySqlClient" type="MySql.Data.MySqlClient.MySqlProviderServices, MySql.Data.Entity.EF6, Version=6.8.3.0, Culture=neutral, PublicKeyToken=c5687fc88969c44d"></provider>
</providers>
</entityFramework>
<system.data>
<DbProviderFactories>
<remove invariant="MySql.Data.MySqlClient" name="MySQL Data Provider" /> // Line: 115
<add name="MySQL Data Provider" invariant="MySql.Data.MySqlClient" description=".Net Framework Data Provider for MySQL" type="MySql.Data.MySqlClient.MySqlClientFactory, MySql.Data, Version=6.9.9.0, Culture=neutral, PublicKeyToken=c5687fc88969c44d" />
<add name="MySQL Data Provider" invariant="MySql.Data.MySqlClient" description=".Net Framework Data Provider for MySQL" type="MySql.Data.MySqlClient.MySqlClientFactory, MySql.Data, Version=6.8.3.0, Culture=neutral, PublicKeyToken=c5687fc88969c44d" /></DbProviderFactories>
</system.data>
當我刪除: name="MySQL Data Provider"
從那一行開始,我只是得到另一個錯誤,並繞着圈子走。
此外,當我刷新頁面,並刪除部分name
我得到:
Unable to find the requested .Net Framework Data Provider. It may not be installed.
任何幫助是極大的讚賞。
您可以登錄到數據庫,你的'roomauditsystem'和'omitted' manyally? –
爲什麼你有'add name = ...'兩個條目? –
@GertArnold我不知道,我以爲自己知道自己在做什麼,但是我在很多圈子裏走來走去,我迷惑了自己。在安裝不同的軟件包之後,我想我結束了一個較老的版本,所以我相信我可以刪除第一個'add name = ...'。 – James