Server Error in '/' Application.

The ICommandText interface is not supported by the 'Microsoft.Jet.OLEDB.4.0' provider. Use CommandType.TableDirect instead.

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.InvalidOperationException: The ICommandText interface is not supported by the 'Microsoft.Jet.OLEDB.4.0' provider. Use CommandType.TableDirect instead.

Source Error:


[No relevant source lines]

Source File: c:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\root\ce5e842b\dd801b2a\App_Web_news_show.aspx.1165e6f5.sjil7lce.0.cs    Line: 0

Stack Trace:


[InvalidOperationException: The ICommandText interface is not supported by the 'Microsoft.Jet.OLEDB.4.0' provider. Use CommandType.TableDirect instead.]
   System.Data.OleDb.OleDbCommand.PropertiesOnCommand(Boolean throwNotSupported) +1068405
   System.Data.OleDb.OleDbCommand.InitializeCommand(CommandBehavior behavior, Boolean throwifnotsupported) +68
   System.Data.OleDb.OleDbCommand.ExecuteCommand(CommandBehavior behavior, Object& executeResult) +16
   System.Data.OleDb.OleDbCommand.ExecuteReaderInternal(CommandBehavior behavior, String method) +106
   System.Data.OleDb.OleDbCommand.ExecuteScalar() +116
   DTcms.DBUtility.DbHelperOleDb.GetSingle(String SQLString, OleDbParameter[] cmdParms) in D:\NET\双中实验校源码\DTcms.DBUtility\DbHelperOleDb.cs:515
   DTcms.DBUtility.DbHelperOleDb.Exists(String strSql, OleDbParameter[] cmdParms) in D:\NET\双中实验校源码\DTcms.DBUtility\DbHelperOleDb.cs:82
   DTcms.DAL.article.Exists(Int32 id) in D:\NET\双中实验校源码\DTcms.DAL\article.cs:53
   DTcms.BLL.article.Exists(Int32 id) in D:\NET\双中实验校源码\DTcms.BLL\article.cs:27
   DTcms.Web.UI.Page.article_show.ShowPage() in D:\NET\双中实验校源码\DTcms.Web.UI\Page\article_show.cs:27
   DTcms.Web.UI.BasePage..ctor() in D:\NET\双中实验校源码\DTcms.Web.UI\BasePage.cs:31
   DTcms.Web.UI.Page.article_show..ctor() in D:\NET\双中实验校源码\DTcms.Web.UI\Page\article_show.cs:14
   ASP.aspx_main_news_show_aspx..ctor() in c:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\root\ce5e842b\dd801b2a\App_Web_news_show.aspx.1165e6f5.sjil7lce.0.cs:0
   __ASP.FastObjectFactory_app_web_news_show_aspx_1165e6f5_sjil7lce.Create_ASP_aspx_main_news_show_aspx() in c:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\root\ce5e842b\dd801b2a\App_Web_news_show.aspx.1165e6f5.sjil7lce.1.cs:0
   System.Web.Compilation.BuildResultCompiledType.CreateInstance() +49
   System.Web.Compilation.BuildManager.CreateInstanceFromVirtualPath(VirtualPath virtualPath, Type requiredBaseType, HttpContext context, Boolean allowCrossApp, Boolean noAssert) +115
   System.Web.UI.PageHandlerFactory.GetHandlerHelper(HttpContext context, String requestType, VirtualPath virtualPath, String physicalPath) +31
   System.Web.UI.PageHandlerFactory.System.Web.IHttpHandlerFactory2.GetHandler(HttpContext context, String requestType, VirtualPath virtualPath, String physicalPath) +40
   System.Web.HttpApplication.MapHttpHandler(HttpContext context, String requestType, VirtualPath path, String pathTranslated, Boolean useAppConfig) +139
   System.Web.MapHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +120
   System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +155


Version Information: Microsoft .NET Framework Version:2.0.50727.42; ASP.NET Version:2.0.50727.42