我想在 ISS-Server (Windows Server 2008) 上运行 ASP.Net 应用程序。
我已经安装了“MySQL-Connector”和 MySQL-DB。我发布了 ASP.Net 应用程序并将结果复制到 wwwroot 文件夹中。
当我尝试运行该应用程序时,出现以下错误消息:
Unable to find the requested .Net Framework Data Provider. It may not be installed.
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
Exception Details: System.ArgumentException: Unable to find the requested .Net Framework Data Provider. It may not be installed.
Source Error:
An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.
Stack Trace:
[ArgumentException: Unable to find the requested .Net Framework Data Provider. It may not be installed.]
System.Data.Common.DbProviderFactories.GetFactory(String providerInvariantName) +1402071
System.Data.EntityClient.EntityConnection.GetFactory(String providerString) +34
我无法弄清楚为什么会抛出这个错误,因为我肯定安装了连接器。我应该在 Web.Config 或其他地方添加一些东西吗?