Server Error in '/' Application.

Internal .Net Framework Data Provider error 12.

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: Internal .Net Framework Data Provider error 12.

Source Error:


Line 71:             cmd = new OleDbCommand(cmdText, dbconn());
Line 72:             cmd.CommandType = ct;
Line 73:             res = cmd.ExecuteScalar().ToString();
Line 74:         }
Line 75:         catch (OleDbException ex)

Source File: d:\Program Files\woot\tokei365com\App_Code\mdb.cs    Line: 73

Stack Trace:


[InvalidOperationException: Internal .Net Framework Data Provider error 12.]
   System.Data.ProviderBase.DbConnectionInternal.CreateReferenceCollection() +16
   System.Data.ProviderBase.DbConnectionInternal.AddWeakReference(Object value, Int32 tag) +49
   System.Data.OleDb.OleDbConnection.AddWeakReference(Object value, Int32 tag) +16
   System.Data.OleDb.OleDbCommand.ExecuteReaderInternal(CommandBehavior behavior, String method) +386
   System.Data.OleDb.OleDbCommand.ExecuteScalar() +116
   mdb.ExecuteScalar(String cmdText, CommandType ct) in d:\Program Files\woot\tokei365com\App_Code\mdb.cs:73
   brandgoods.GetBread(Int32 p, Int32 p_2, String pr) in d:\Program Files\woot\tokei365com\brandgoods.aspx.cs:104
   brandgoods.GetProdDetail(Int32 id) in d:\Program Files\woot\tokei365com\brandgoods.aspx.cs:72
   brandgoods.Page_Load(Object sender, EventArgs e) in d:\Program Files\woot\tokei365com\brandgoods.aspx.cs:34
   System.Web.Util.CalliHelper.EventArgFunctionCaller(IntPtr fp, Object o, Object t, EventArgs e) +14
   System.Web.Util.CalliEventHandlerDelegateProxy.Callback(Object sender, EventArgs e) +35
   System.Web.UI.Control.OnLoad(EventArgs e) +91
   System.Web.UI.Control.LoadRecursive() +74
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +2207


Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.0.30319.1031