在服务器上运行MVC3应用程序的问题

时间:2013-05-05 11:21:18

标签: asp.net-mvc-3

我已将网站发布到sitecloud.cytanium.com(ASP.net MVC3 + MYSQL + EntityFramework)。请帮帮我。

我在登录时遇到的错误是:

Server Error in '/' Application.

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) +1425695
   System.Data.EntityClient.EntityConnection.GetFactory(String providerString) +27

[ArgumentException: The specified store provider cannot be found in the configuration, or is not valid.]
   System.Data.EntityClient.EntityConnection.GetFactory(String providerString) +92
   System.Data.EntityClient.EntityConnection.ChangeConnectionString(String newConnectionString) +246

..............................

1 个答案:

答案 0 :(得分:0)

Unable to find the requested .Net Framework Data Provider.  It may not be installed.

您应该在服务器上安装MYSQL的提供程序。 Connector/Net或其他一些。

同样的问题:

C# MySQL Connector works in IDE, not after publish?