当试图访问我的数据库的实时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