日期:2014-05-18  浏览次数:20441 次

小妹 跪求解决办法!
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.EntityClient.EntityConnection.GetFactory(String providerString) +251

[ArgumentException: The specified store provider cannot be found in the configuration, or is not valid.]
  System.Data.EntityClient.EntityConnection.GetFactory(String providerString) +10983191
  System.Data.EntityClient.EntityConnection.ChangeConnectionString(String newConnectionString) +641
  System.Data.Objects.ObjectContext..ctor(String connectionString, String defaultContainerName) +84
  CCTOnlineBusPro.TJ_2007Entities1..ctor() in D:\TravelOnlineWeb\CCTOnlineBusPro\tj2007.Designer.cs:34
  CCTOnlineBusPro.AdvertProcess.FirAdvertTwolist(String no, String noo) in D:\TravelOnlineWeb\CCTOnlineBusPro\AdvertProcess.cs:61
  TravelOnlineWeb.Index.Page_Load(Object sender, EventArgs e) in D:\TravelOnlineWeb\TravelOnlineWeb\Index.aspx.cs:19
  System.Web.Util.CalliHelper.EventArgFunctionCaller(IntPtr fp, Object o, Object t, EventArgs e) +25
  System.Web.UI.Control.LoadRecursive() +71
  System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +3048

 


--------------------------------------------
Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.0.30319.1

------解决方案--------------------
System.Data.EntityClient.EntityConnection.GetFactory(String providerString)
------------------
web.config中与providerString相关的配置没有或无效
------解决方案--------------------
你这个系统中是根据web.config中的配置来选择数据库提供服务的,里面的反射工厂找不到正确的配置信息,无法正确创建数据库操作实例,这个可能性比较大,我想你不至于忘记安装sqlsever了吧。
------解决方案--------------------
学会自己搜索。
web.config中:
 
<system.data>
<DbProviderFactories>
<remove invariant="System.Data.SQLite"/>
<add name="SQLite Data Provider" invariant="System.Data.SQLite" description=".Net Framework Data Provider for SQLite" type="System.Data.SQLite.SQLiteFactory, System.Data.SQLite, Version=1.0.57.0, Culture=neutral, PublicKeyToken=db937bc2d44ff139" />
</DbProviderFactories>
</system.data>
记得引用System.Data.SQLite.Linq